• Resolved eimulex

    (@eimulex)


    Hi,

    For some reason “add to cart” button does not add the product.
    Is it just me with this issue?
    When on cart page:
    On clicking the “<button id=”dgfw-gift-link-27240″ name=”update_cart” class=”button dgfw-add-gift-button” data-gift=”27240″>Add to cart</button>” button, a loading animation appears on cart, but it does not add the product. Neither the product appears when going to checkout page.

    Tried disabling plugins, and etc, nothing seems to help :/
    Any ideas?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author DecomTeam

    (@decomteam)

    Hi @eimulex, most of the time, issue is theme
    1. Try with StoreFront theme
    2. Chrome (There could be console errors / conflicts)
    – dont use cache on CART page
    3. WordPress (debug_log) ?


    Minimum requirements:
    PHP 5.6+
    WooCommerce 3.1+

    Thread Starter eimulex

    (@eimulex)

    Hi,

    My environment:
    php 7.2
    WC 3.5.1
    Woodmart theme 3.2.0
    WP 4.9.8
    Memory limit 2300M
    WP Rocket 3.2.2

    Disabled cache for cart page, disabled some of the plugins which might interfere (WC Drain Repair).
    Still after pressing “add to cart” it just refreshes the cart and thats it… :/

    Plugin Author DecomTeam

    (@decomteam)

    Hi @eimulex, I think that your theme isn’t using AJAX on a CART page?
    – we require ajax (page should not be reloaded – just part where products are)

    1. Try with different theme: StoreFront and report back, could be that’s just an theme issue
    2. Record a video of the issue
    – to be able to help, we need to debug_log informations (you can use WP_DEBUG… and also check Chrome DevTools console for red errors)

    Hi All, ??

    I have the same problem with my https://www.ggstuff.co.uk website.
    I haven’t tested it with another theme because I don’t want to mess up the website. ??
    I used to test things using the plugin WP Staging, but it doesn’t seem to work at the moment so I’m stuck.??
    Is there a way to fix this problem without changing the theme?
    I’m using Shopkeeper child.

    Thank you. ??

    Plugin Author DecomTeam

    (@decomteam)

    Hi @ggstuff, please post a new topic – and don’t use old ones – you could hire a developer to fix your issues, changing theme will help discover what is the issue.
    – add SKU and prices (all info) to you variations
    – have in mind people will be able to re-order items if you don’t change product ID-s
    – CACHE must be removed from Cart page
    **you are getting Error 500 (that’s something you can investigate – maybe your server is blocking AJAX or similar thing)

    • This reply was modified 6 years, 3 months ago by DecomTeam.
    Thread Starter eimulex

    (@eimulex)

    Hi,

    Sorry for late reply.
    In my case it was just due to caching on cart page in my opinion.
    Also I’ve modified some of the files by disabling clicking to the product itself, and just making sure all the time they click on any item provided as gift it just ads to cart with regular wc “?add-to-cart=’ID'” link.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘“add to cart” button does not do anything’ is closed to new replies.