• Hi there,

    Many thanks for the great plugin, it was quite simple to configure.

    I am having one issue however with the product quantity selector for new products that are loaded on the page. The quantity is not passed to the cart correctly, with a quantity of 1 always passed regardless of whether it is changed to a different value.

    Please see the following page as an example:
    https://www.dineamic.com.au/product-category/mains/

    Any help will be greatly appreciated. Many thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author RazyRx

    (@razyrx)

    Hi,

    Your site has some custom JavaScript function, that work only for products on page load.
    Unfortunately we can’t find what the function is it.

    Regards,
    Oleg

    Thread Starter sonicadvisor

    (@sonicadvisor)

    I think it might be the below code. I have tried adding it to the scripts area, but i get an error. Should I perhaps need to change the syntax?

    <script>
    jQuery(function($) {
    $("form.cart").on("change", "input.qty", function() {
    $(this.form).find("button[data-quantity]").data("quantity", this.value);
    });
    $(document.body).on("adding_to_cart", function() {
    $("a.added_to_cart").remove();
    });
    });
    </script>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Quantity issue for new loaded products’ is closed to new replies.