Redirect Not working
-
Hi
I am struggling to get the ‘Add to Cart’ button is not redirecting to the checkout page.
I am using the Divi theme (4.6.2) hosted on a Godaddy Managed WordPress Servers.The Solutions that I have already have tried are the following plugins and code snipets:
– Direct Checkout for WooCommerce (Plugin)
– Direct checkout, WooCommerce Single page checkout , WooCommerce One page checkout (Plugin)
– Woocommerce Add-to-Cart Custom Redirect (Plugin)Then I also tried this code snippet but also didn’t work that was added to the child the functions.php file:
add_filter('add_to_cart_redirect', 'lw_add_to_cart_redirect'); function lw_add_to_cart_redirect() { global $woocommerce; $lw_redirect_checkout = $woocommerce->cart->get_checkout_url(); return $lw_redirect_checkout; }I have tried this by disabling the AJAX in the Woo-Commerce Settings but that didn’t help either.
The only way I got it to work is by opening the page in a incognito tab (Chrome) but only worked once.
Any assistance will be greatly appreciated.
The page I need help with: [log in to see the link]
The topic ‘Redirect Not working’ is closed to new replies.