• Resolved domjespo

    (@domjespo)


    Hi,
    Love this plugin! We use the following checkout plugin which enables us to show the user their cart in real-time and not have to reload the page : https://ww.wp.xz.cn/plugins/woo-floating-cart-lite/. It uses Ajax to update the cart.

    When I have advanced find and replace plugin installed it forces a page refresh every time an item is added to a cart. How can I prevent this? I would really like to keep using the plugin 🙂

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Marios Alexandrou

    (@marios-alexandrou)

    Are you sure you’re using this plugin? You mentioned “advanced find and replace plugin” which isn’t the name of this plugin.

    Thread Starter domjespo

    (@domjespo)

    Hi Marios – Yes, my apologies. I’m using your tool Real-Time Find and Replace. I’m also using :

    https://ww.wp.xz.cn/plugins/woo-floating-cart-lite/
    and https://barn2.co.uk/wordpress-plugins/woocommerce-product-table/

    Plugin Author Marios Alexandrou

    (@marios-alexandrou)

    That’s a strange finding and I’m not sure why it would force a reload. The plugin runs at the server so once the page is in the browser the plugin is done doing what it does and has no way to know what’s happening on the page. So when you turn off the plugin, things work correctly? And then when you turn on the plugin, the reload happens? Have you tried having the plugin active, but with no rules?

    Thread Starter domjespo

    (@domjespo)

    Marios – Good debugging. It only happens when I replace : “Cart” with “Bag”. Any ideas on the solve?

    Plugin Author Marios Alexandrou

    (@marios-alexandrou)

    No idea. I wonder if the cart is looking for a special value and when it doesn’t find it, it reloads. I’m guessing the reload, because it’s AJAX, corrects the issue and Cart appears instead of Bag. Is that what you see?

    If yes, there’s no solution I know of. My plugin isn’t compatible with changing AJAX-generated content. It should work elsewhere on the site, just not with any parts that are AJAX.

    Plugin Author Marios Alexandrou

    (@marios-alexandrou)

    One other thought. It may be that you’re changing something other than visible text. Make sure your rule isn’t changing ID or name attributes in the HTML tags. It’s those that are often more important than visible text for AJAX functionality. I say this because visible text is often translated into other languages and works fine because those translations are done to visible text not behind-the-scenes values.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Plugin Forces Reload on Ajax Cart’ is closed to new replies.