• Resolved alfredo1216

    (@alfredo1216)


    Hello,

    I am adding the currency exchange widgets through the shortcodes that are generated.

    When adding it to the content of the page it shows without problems, but when adding it to the woocommerce minicart through the hook (woocommerce_before_mini_cart) it presents some errors:

    • When adding a product, it remains in a loading loop.
    • When deleting a product, it remains in a loading loop.
    • When changing currency, it remains in a loading loop.

    What could cause this error?

    I share a video where you can better appreciate.

    https://app.screencast.com/3koVBSnrs7Lcs

    I stay tuned and thank you.

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support mediawebster

    (@mediawebster)

    Hello

    This will not work in the mini cart. Because the cart is redrawn in ajax mode and after that it is necessary to initialize JS scripts

    Thread Starter alfredo1216

    (@alfredo1216)

    Hello,

    I understand, but isn’t there a way to fix it? For example:

    • That the widget shortcode can be excluded from the AJAX request.
    • That the loading loop of the widget can be eliminated.

    It seems to me that the widget would be perfect in the mini cart. But with this error it is impossible.

    I hope you can help me and it can be solved.

    Thanks,

    Plugin Support mediawebster

    (@mediawebster)

    Hello

    In this case, you need code customization.

    Move the switcher out of a container that is being redrawn

    OR

    initialize switcher JS script after mini cart redraw event

    Thread Starter alfredo1216

    (@alfredo1216)

    Hello,

    I understand, in this case I’ll move the switch to another location, while we evaluate the custom code.

    Thank you very much for your excellent attention.

    Plugin Support mediawebster

    (@mediawebster)

    Hello

    Welcome;)

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Widget loading problem via shortcode’ is closed to new replies.