Support » Plugin: WooCommerce Side Cart (Ajax) » AJAX not working as expected

  • Jack

    (@argentumfx)


    Hey,

    I’ve installed woo side cart and got it configured as I want it to be, it seems that adding and removing the product ‘works’ in the background (i.e if I click ‘add to cart/select & continue browsing’ on the product or ‘remove’ from the side cart and refresh the page, it does add and remove the item.

    However, it doesn’t do this via AJAX, the cart total doesn’t update to 1 when the product is added nor can it be seen in the cart panel, and if I click on remove in the cart panel the loading icon shows but it doesn’t appear to remove the item (until I refresh the page).

    Any ideas why the AJAX isn’t working? Was really happy with the plugin until I ran into this 🙁

    Thanks,
    J

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Jack

    (@argentumfx)

    Actuallyyyy, it’s a conflict with ‘Insert Headers & Footers’, do you know of a work around for this/why this might be conficting? Here is the code that’s being added by the other plugin:

    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
    <script type="text/javascript" src="//fast.fonts.net/jsapi/a3cf4e82-88cb-4a13-acef-e10a95fa66e6.js"></script>
    <script src="/wp-content/javascript/anime/lib/anime.min.js"></script>
    <script src="https://kit.fontawesome.com/a076d05399.js"></script>
    <script>
    function activateSearch() {
      setTimeout(function(){
        jQuery(".search-icon a").click();
      }, 500);
    }
    activateSearch();
    
    jQuery(".post-link").text("View Item");
    </script>
    Jack

    (@argentumfx)

    Sorry should have done this before I wrote the original request, it seems to be the inclusion of jQuery via CDN that is breaking the AJAX, any idea why?

    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>

    Plugin Author xootix

    (@xootix)

    Hi @argentumfx

    Looks fine now. Have you managed to fix it?
    Also why are you including jquery? WordPress itself has jquery included

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