woocommerce add to cart issue with child theme (2 posts)

  1. ugurkirbac
    Posted 2 years ago #

    Hello everyone,
    I have set up woocommerce plugin on Responsive theme and made some changes under its child. However, I am having some problem with "Add to Cart" function. I have checked "Enable AJAX add to cart buttons on archives" and "Redirect to the cart page after successful addition".

    When I click on the Add to Cart button on Products page, js makes its trick and shows a spinning effect. When it is redirected to Cart page, there is a big surprise "Your cart is currently empty.". However it works fine when I add the item on Single Product page but this time at the bottom of Checkout page, the payment options division freezes. The same spinning effect never disappears.

    I made some experiment and tore my hair off and finally I realised that it works fine when I switch to the original theme. I presume the child theme causes a AJAX problem. Is there anyone who can come up with a solution.

    P.s :I am working on my localhost.

  2. argdev
    Posted 2 years ago #

    Hi! Don't know if you have already get that to work but if you don´t, here's what happened to me and what makes the "Your cart is currently empty." message appear.

    The problem is generated by the product cart template page, so make sure that:

    - You don´t have a file called "page.php" within your child theme folder (that will cause that all the pages, including the cart page take that as template)

    - The page is created and has the shortcode, go to: pages > cart, open it, it must contain the shortcode:


    Only that is needed! You don´t have to put anything more inside the page.

    Hope you can fix your problem, if it has not yet fixed, and sorry about my english, it's my native one!

Topic Closed

This topic has been closed to new replies.

About this Topic