Advanced AJAX Page Loader
Woocommerce Reloaded Code (2 posts)

  1. uili
    Posted 3 years ago #

    Anyone know the reloaded code for woocommerce?

    The way im doing is to reload every script like this:

    jQuery.getScript("/wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart.min.js", function(data) { eval(data); });
    jQuery.getScript("/wp-content/plugins/woocommerce/assets/js/prettyPhoto/jquery.prettyPhoto.min.js", function(data) { eval(data); });
    jQuery.getScript("/wp-content/plugins/woocommerce/assets/js/prettyPhoto/jquery.prettyPhoto.init.min.js", function(data) { eval(data); });
    jQuery.getScript("/wp-content/plugins/woocommerce/assets/js/frontend/single-product.min.js", function(data) { eval(data); });
    jQuery.getScript("/wp-content/plugins/woocommerce/assets/js/jquery-blockui/jquery.blockUI.min.js", function(data) { eval(data); });
    jQuery.getScript("/wp-content/plugins/woocommerce/assets/js/frontend/woocommerce.min.js", function(data) { eval(data); });
    jQuery.getScript("/wp-content/plugins/woocommerce/assets/js/jquery-cookie/jquery.cookie.min.js", function(data) { eval(data); });
    jQuery.getScript("/wp-content/plugins/woocommerce/assets/js/frontend/cart-fragments.min.js", function(data) { eval(data); });
    jQuery.getScript("/wp-content/plugins/woocommerce/assets/js/jquery-placeholder/jquery.placeholder.min.js", function(data) { eval(data); });
    jQuery.getScript("/wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart-variation.min.js", function(data) { eval(data); });

    But css files are not been loaded! the css i had to copy to my theme dir and enqueue the styles in my function.. i would prefer to call the style from the plugins dir, so it could be automatically updated later on!

    or, is there i simpler way to call every woocommerce's stuffs?!


  2. Courtney Fantinato
    Posted 3 years ago #

    I haven't seen a way to reload CSS. I haven't had problems with CSS from plugins not being loaded.

    Have you gotten any errors in the console?

    Maybe something from here could help: http://stackoverflow.com/questions/9195287/losing-css-after-jquery-ajax-load

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Advanced AJAX Page Loader
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic