Support » Plugin: Ajax Cart AutoUpdate for WooCommerce » Auto Refresh CART ONC after loading

  • Resolved KoolPal

    (@koolpal)


    Hi,

    I have merged my cart and checkout into a single page.

    Your plugin removing the Update Cart button and updating quantity on change is brilliant! Thanks

    Can you please guide me on what changes do I need to for one peculiar issue that I am facing?

    I am using a multi currency & a Quote plugin.

    In case I visit the Quote Checkout from another country, I need to do a page refresh (or Quantity change in cart) to view the correct currency.

    How can I auto refresh page ONCE as soon I land on checkout?

    Thanks a lot!

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

    (@taisho)

    Hello,

    I’m happy that you like the plugin. I would need website link to check how it exactly works on top of some additional information.

    If I understood correctly, cart and checkout are now one php template file. What do you mean by landing on checkout? Does quote lead to some other URL than checkout and user returns to checkout page after?

    Kind Regards

    • This reply was modified 1 year, 1 month ago by taisho.
    • This reply was modified 1 year, 1 month ago by taisho.
    Plugin Author taisho

    (@taisho)

    Since I haven’t heard from you for a while, I will close this topic. You may change its status to “not resolved” and respond here whenever you like.

    I can only provide general advice based on what I understood so far. Always refreshing cart totals 1 time after visiting checkout/cart is highly discouraged from user experience point of view.

    If any plugin requires cart totals being refreshed after some action is performed, it should be the same plugin calling for cart totals update. For example using jQuery, which can be done with a single line in enqueued js file or generated with PHP within <script> tag. This assumes that current page has a default WooCommerce update cart button (doesn’t matter whether visible or hidden):

    jQuery('[name="update_cart"]').trigger('click');

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Auto Refresh CART ONC after loading’ is closed to new replies.