magapascansky
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Woocommerce order received pageUpdate: this code worked but I want to send the purchase id as a parameter.
add_action( ‘template_redirect’, ‘woo_custom_redirect_after_purchase’ );
function woo_custom_redirect_after_purchase() {
global $wp;
if ( is_checkout() && !empty( $wp->query_vars[‘order-received’] ) ) {
wp_redirect(home_url() . “/thank-you”);
exit;
}
}
Forum: Plugins
In reply to: [WooCommerce] Woocommerce order received pageI also tried with this code in my functions.php but it didn’t work either.
function wc_custom_thank_you_page( $order_id ) {
$order = wc_get_order( $order_id );
wp_redirect( ‘https://localhost:8888/dacre/thank-you/’ );
}
add_action( ‘woocommerce_thankyou’, ‘wc_custom_thank_you_page’ );
?>
Forum: Plugins
In reply to: [WooCommerce] Woocommerce order received pageHello! That is what I tried but my theme isn’t even redirecting to the original template. It just goes to my index.php with the url https://localhost:8888/dacre/finalizar-comprar/order-received/119/?key=wc_order_FsNx6ZpbfAO4d.
Forum: Plugins
In reply to: [WooCommerce] Woocommerce order received pageHello and thanks for your quick response! I tried saving changes in permalink and also copying your code in my thankyou.php that is located under mytheme/woocommerce/checkout but neither worked ??
Forum: Plugins
In reply to: [WooCommerce] Category templatethat worked!! thank you very much ??
Forum: Plugins
In reply to: [WooCommerce] Woocommerce checkout labelsHello! I tried with Loco Translate and editing the .pot but nothing seems to work! I also tried to force it with JS but it shows one second and the other it’s back in english. Could it have something to do with the Awesome Checkout Templates plugin I am using?
Forum: Plugins
In reply to: [WooCommerce] Add to cart button for variable productsHello! thanks for the quick response ??
That works for adding the product but my problem is that is refreshes the page and I don’t want it to.
I am using a Side Cart plugin with the ajax option enabled and it worked just fine with the add to cart shortcut! I don’t know why it isn’t working with the add to cart url.
Hello again! Now it’s working but it opens in random moments without the user clicking…
that fixed it! Thank you so much ??