• Resolved yunliangzhu

    (@yunliangzhu)


    Hi, i have installed plug in, at product page it works fine, but if i add a product to cart and view cart, i can see the above the quantity box has over write the original quantity box, and there’s a “Quantity” shows up and the – and + sign doesn’t work . how to fix it.? i only want to fix it in cart page. i’ll send you a product link and you can add and view it in cart, then you will know what I’m talking about.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Yes, it has the issue in the cart page. It doesn’t work there.

    tdechangy

    (@tdechangy)

    Indeed, same issue here. First good surprise and then so disappointed.
    What says the author of the plugin to solve this ? Isn’t it of any importance on the cart page anjanphukan ?

    Are you willing to solve this soon ? any delay ?

    I truly hope I’ll be able to thank you sincerely for you full job when done, otherwise wrong reviews will start raining I think.

    Waiting for your reply 🙂

    anjanphukan

    (@anjanphukan)

    Hi @tdechangy,

    As I didn’t find a fix for it so I hide the quantity change buttons in the cart page with CSS. Instead I used the woocommerce’s default quantity box in that page.

    tdechangy

    (@tdechangy)

    Well that’s what I thought to do if you didn’t fix it. But it’s quite frustrating to allowing it on the Cart page !

    I hope you’ll search for a working solution soon. Maybe declaring JS later or so..

    Thanks at least for quick reply.
    Oh, and don’t forget to update this topic when resolved so we can remove the particular CSS !

    anjanphukan

    (@anjanphukan)

    Hi @tdechangy,

    I was wondering, if you are mistaken me as the plugin author! Actually I am an user who is having the same issue like you people. I just solved the issue in the website where I used the plugin. I have no right to modify the plugin code.

    tdechangy

    (@tdechangy)

    Niels Lange is the author in fact and he should answer this important topic here. No answer = unsupported plugin.

    Sorry for the mistake.

    So, what can we expect Niels Lange ?

    umeeshh

    (@umeeshh)

    Hi everyone! this is because of the jQuery script set up to work only on single product page. I’ve added almost same code to with class woocommerce-cart, and now it works fine.

    You need to add code below to custom.js before closing “});”

    $(‘.woocommerce-cart .quantity .minus’).each(function(){
    $(this).on(‘click’, function () {
    var qty = $(this).parent().find(‘input.qty’);
    var val = parseInt(qty.val());
    var step = qty.attr(‘step’);
    step = ‘undefined’ !== typeof(step) ? parseInt(step) : 1;
    if (val > 0) {
    qty.val(val – step).change();
    }
    });
    });
    $(‘.woocommerce-cart .quantity .minus’).each(function(){
    $(this).on(‘click’, function () {
    var qty = $(this).parent().find(‘input.qty’);
    var val = parseInt(qty.val());
    var step = qty.attr(‘step’);
    step = ‘undefined’ !== typeof(step) ? parseInt(step) : 1;
    qty.val(val + step).change();
    });
    });

    Hope it helps 🙂 Of course you need to clear browser page to make it work 🙂

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘cart page’ is closed to new replies.