• Resolved ilaria_roglieri

    (@ilaria_roglieri)


    Hello, I’m working locally on MAMP.
    I enabled the function “Make cart works on shop page when using [woocommerce_cart] shortcode” that is working fine with adding and reducing items number.
    Calculate shipping however doesn’t respond to click, it doesn’t show the menu for choosing the country.
    Also removing an item with the X triggers a page refresh.
    Can you help me improving this?

Viewing 15 replies - 1 through 15 (of 23 total)
  • Plugin Author moiseh

    (@moiseh)

    Hello,
    This items will be added with priority to be fixed on next version.
    Thanks for reporting.

    Thread Starter ilaria_roglieri

    (@ilaria_roglieri)

    Can I ask when it will be? Or if you have a temporary patch? I’m really in a hurry to close this site and I bought the pro version only for this.
    Hope you can help!

    Plugin Author moiseh

    (@moiseh)

    Patch shared with you on e-mail.

    Thread Starter ilaria_roglieri

    (@ilaria_roglieri)

    Thank you very much!
    The patch is working, I just have to refine it visually.
    Ilaria

    Thread Starter ilaria_roglieri

    (@ilaria_roglieri)

    Sorry to bother again, but the patch has broken the change quantity function, both with number field and +/- buttons…

    Thread Starter ilaria_roglieri

    (@ilaria_roglieri)

    Let me be more precise:

    Selecting the option: Make custom ajax:
    On the page freshly loaded everything works fine.
    But whenever I add a new item on the cart, and than I click to change the quantity the cart breaks completely, it duplicates itself esponentially.

    Selecting the option: Simulate click on update button:
    the cart breaks completely from the beginning, creating multiple duplicates.

    Moreover clicking on remove an item still triggers a refresh.

    Plugin Author moiseh

    (@moiseh)

    Hello, shared new patch on dropbox.

    I can’t reproduce the remove item refreshing page, please check if it’s fixed with new code, and set to use “Make custom ajax” option.

    Please tell me if it’s less buggy now.

    Thread Starter ilaria_roglieri

    (@ilaria_roglieri)

    Hello,
    I tested the new patch, there are still major issues to solve.
    I think it is better if you have a look at my situation so I set up a test environment.
    Link: https://www.ilarianicolettaroglieri.com/nsh-test/shop
    The cart is absolutely positioned on the bottom, add to cart an item to see it.

    So basically the issues are:
    – is it possible to avoid the grey background when updating something?
    – removing an item still causes a refresh;
    – adding an item to cart causes a refresh;
    – as you see i have a title “Cart” on top that get erased probably by the load function used to update the cart… can we find a way to avoid this?

    Plugin Author moiseh

    (@moiseh)

    Hello,

    – is it possible to avoid the grey background when updating something?
    – The only way to do this is rewrite the woocommerce core add-to-cart.js file or make custom code that force remove this opacity, if you see this script apply “opacity: 0.6” on element while updating causing the gray effect. This is a custom work.

    – removing an item still causes a refresh;
    – Fixed please test

    – adding an item to cart causes a refresh;
    – Fixed please test

    – as you see i have a title “Cart” on top that get erased probably by the load function used to update the cart… can we find a way to avoid this?
    – Sorry can’t reproduce this, the “CART” title always showing to me can you tell the steps to reproduce? ( i tried change quantity, remove item, update cart and still show… )

    I’ve shared the new patch on dropbox [ dont forget to press Ctrl+Shift+R on Chrome to reload all JS files ].

    Thread Starter ilaria_roglieri

    (@ilaria_roglieri)

    Hello,
    sorry for my late reply, I’ve tried the new patch which works better but there are still some issues:
    – after adding a new item to cart, plus/minus buttons do not work anymore (clicking on calculate shipping or on update cart make them work again);
    – same thing with removing an item from cart.

    Hope you can solve it, than I think we’re done.

    ps. there will be a box in the header of site showing the total number of items in the cart. If I want to intercept all these actions for keeping the total number of items always updated, what are the functions you used to hook?

    Plugin Author moiseh

    (@moiseh)

    Hello,
    Sent new version. I think this issue with +/- was fixed please test.

    You can intercept when cart updated using this JS code:

    $(document).on('updated_wc_div', function(){
       // your code here
    });
    Thread Starter ilaria_roglieri

    (@ilaria_roglieri)

    Hello there,
    I tested it and now it’s working perfectly with the options “Simulate cart update”.
    With “custom ajax” there’s an issue: when adding a new item it messes with the quantity of the item.
    Anyway, I will use the other option for now, it was just to inform you of the bug.
    Thanks for everything, hope we’re done here!

    Thread Starter ilaria_roglieri

    (@ilaria_roglieri)

    Sorry to bother again.
    The issue persists also on “Simulate cart update”.

    Plugin Author moiseh

    (@moiseh)

    Hello, just to confirm, you have updated to the version shared on dropbox (woo-better-usability-pro-1.0.8.zip) ?

    Because i look into JS script and seems that is the previous version.

    Thread Starter ilaria_roglieri

    (@ilaria_roglieri)

    yes i did it locally.
    Anyway I moved everything to the actual domain, you can see it live here: https://www.neueserie.net
    Hope you can help fast, client wants to go live!

Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘Calculate shipping and removing items with X do not work in shop page’ is closed to new replies.