After ADD TO CART option i can see the items are getting updated to CART but when moving to cart page it is redirecting back to homepage.
The cart page shortcode is also provided.
Please help out!I'm new to woocommerce.
After that, you'll need to change the cart URL in the WooCommerce settings. Simply go to WooCommerce » Settings and then click on the 'Advanced' tab. After that, open the 'Cart page' dropdown and start typing in the URL for your custom page.
The WooCommerce cart not working issue may occur if you restrict access to this file. Temporarily deactivate any security plugins or server security settings that you may be using, and then retest the cart's functionality to see whether it's working properly.
You can change the “change-quantity-on-checkout-woocommerce. php” file and in that, after below line, you can add the page refresh code: jQuery( 'body' ). trigger( 'update_checkout' );
Be sure you have page.php setup in your theme to get the content. Something like:
<?php while (have_posts()) : the_post(); ?>
<?php the_content(); ?>
<?php endwhile; ?>
So I fixed mine, here is how I did it, seems woocommerce does not create all the pages in the newest version, you are missing the 'cart page'.. create a page name it 'cart' then place this short code on the page.. [woocommerce_cart] save..Tada.. ;o)
Shop – No content required. Cart – Contains [woocommerce_cart] shortcode and shows the cart contents Checkout – Contains [woocommerce_checkout] shortcode and shows information such as shipping and payment options My Account – Contains [woocommerce_my_account] shortcode and shows each customer information related to their account, orders, etc.
In wordpress 5.4.x it is here like in this image:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With