• Resolved Renz_r

    (@renz_r)


    Hi,

    looking for some help here – I did have add to cart buttons under the shop page but they have since been removed and not sure why.

    I have enabled ajax add to cart in the setting>products section

    I currently have the ultimate ATC buttons active as plugin.

    At a loss for what happened

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • I can see them now so it looks like you fixed it.

    Plugin Support Fernando a11n

    (@fhaps)

    Automattic Happiness Engineer

    As @lorro mentioned above, the Add to cart buttons are now showing on the store you linked. So, I’m assuming this was fixed.

    I’ll mark the thread as solved, but it’d be helpful if you are able to comment here on what was causing the issue and what solved it; as that might help other users facing the same problem in the future.

    Thread Starter Renz_r

    (@renz_r)

    Hey all

    I did manage to fix it. This was my issue:

    I had implemented some code into my functions.php file, ran the divi update which overran the code change hence why it was removed (literal face palm)

    In hindsight, I should’ve done the following:

    1. Create child theme (this project was done in a rush and I neglected this in my haste)
    2. Went to that child themes functions.php
    2. the code snippet I used to make the buttons appear was:

    // Add "Add to Cart" buttons into a page displaying shop loop
    add_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 20 );

    This is how I solved it.

    • This reply was modified 4 years, 11 months ago by Renz_r.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘add to cart buttons missing’ is closed to new replies.