Home Forums WoodMart support forum update product quantity live on single product page afterAdd to Cart

update product quantity live on single product page afterAdd to Cart

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #686545

    ksheersagar.vinod
    Participant

    I’m using WoodMart 8.2 and on my single product pages, when I click “Add to Cart” multiple times, the product is correctly added to the cart (and shown in the mini-cart), but the quantity field on the product page itself does not update — it always stays at 1.

    I would like it to work like large grocery stores (for example Morrisons):

    When a customer clicks Add to Cart again for the same product,

    The quantity field on the product page should instantly update to show the current quantity already in the cart, without reloading the page.

    Could you please tell me how to implement this behaviour using the built-in WoodMart AJAX cart system or provide a recommended code snippet?

    Attachments:
    You must be logged in to view attached files.
    #686647

    Hello,

    The behavior you’re describing isn’t part of WoodMart’s built-in AJAX “Add to Cart” feature — by default, the quantity field on the single product page doesn’t sync with what’s already in the cart when you click Add to Cart multiple times. It will always display the value you entered before adding the product. This is the way it works.

    Best Regards,

    #686704

    ksheersagar.vinod
    Participant

    Thanks for your response. Could you please provide instructions on how to implement this? Kindly provide a code snippet or any code modification suggestions

    #686746

    Hello,

    Sorry, but there is no option in Theme Settings available for that.
    It requires customization, and this is beyond our limitations and support policy.

    Best Regards,

Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)