• Resolved ariaza

    (@ariaza)


    website: https://shorturl.at/rXzUO

    Can someone please help me understand why my cart icon link is pointing to /?wc-ajax=get_refreshed_fragments instead of /cart?

    This happens on the cart, checkout, shop and product category pages. On the actual product pages it points correctly to the correct /cart url. However when you add a product to cart, it then points to /?wc-ajax=get_refreshed_fragments.

    This issue does not occur on any other pages.

    Is there a conflict JavaScript or AJAX on these pages?

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support EastOfWest a11n

    (@eastofwest)

    Hi @ariaza! It seems like it’s down to your theme, which seems to be Divi, which is not one of our themes and as such not something we can help troubleshoot. But, you can test that theory by temporarily switching to a standard theme like Storefront Theme.

    If that works as expected, it would seem likely that the theme is the culprit, in which case, refer to Divi’s Support for how to configure that theme’s cart icon properly. If you have a lot of other plugins active, you may also want to consider testing for plugin conflicts.

    Let us know what you find!

    Thread Starter ariaza

    (@ariaza)

    Hi,

    Thank you for your reply.

    I have disabled all plugins and also tried StoreFront theme with the same issue.

    Is there a way to see what is causing the issue one the page code?

    • This reply was modified 1 month ago by ariaza.
    Plugin Support EastOfWest a11n

    (@eastofwest)

    Hi @ariaza, thanks for the effort! wc-ajax=get_refreshed_fragments is usually loaded in the background to update the mini-cart without refreshing the page, and shouldn’t be a destination link.

    There’s a good explanation of what “cart fragments” is and how it works here, and even a code snippet for how to disable it in certain circumstances.

    Is there a way to see what is causing the issue one the page code?

    I can see on your site that the cart icon sits in your menu bar, and it links directly to that URL – which it shouldn’t – but it’s not clear how it ended up that way. I do also see that that menu item code contains referenced to “bc”, like bc-menu-cart-icon and bc-mnc__cart-link-count-circle. The rest of your menu items do not contain similar references, which may be a clue as to its origin.

    Looking at your site’s source for anything that matches, I see reference to bc-menu-cart-woo, which leads me to this plugin – it has a notice that says it was closed in March due to security issues. So, regardless of whether or not this is the culprit, for the sake of your site’s security, you may want to consider removing it completely from your site (not just deactivate it, but also delete it).

    When you disable that plugin, what happens to the Cart menu item?

    If the issue persists:

    1. With only Storefront and WooCommerce enable this should definitely not happen, and may indicate that it’s an artificially added menu item with an absolute link (one that is not programmatically added and/or updates). To check your menu items will depend on the active theme, but start by going to WP Admin > Appearance > Menus, find the Cart menu item, and check if its destination URL. If you can remove it, it might be good to try and see the results.
    2. If the issue persist, share the site’s System Status Report. Follow the instructions, find the Copy for GitHub button, click it, then paste your device’s clipboard contents in your next reply.

    Let us know how it turns out.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.