Support » Plugins » varaitions js not loading

  • Resolved cjc1867


    I can’t get the add-to-cart-variation.js to load, I can load it manually into the header but it should load via the plugin.

    I have checked other threads and came up with this but slightly modified:

    function mv_my_theme_scripts() {
    wp_enqueue_script('add-to-cart-variation', plugins_url('/woocommerce/assets/js/frontend/add-to-cart-variation.js'),array('jquery'),'1.0',true);

    Why doesn’t this load as it should? At the moment I have no ‘add to cart’ button and this file needs to be loaded.

    Looking at the html page the button is there but switched off via the style sheet.


Viewing 1 replies (of 1 total)
  • I took over a WordPress website with a custom theme with all kinds missing and have been steadily fixing bits and pieces.

    I replaced the original header with TwentyEleven’s and got more things working, I then spent hours reading about other peoples similar problems and found that wp-footer() was missing from the footer file. Oh wp-header() was missing as well, quite surprised the website worked at all.

    It is now working as expected, what a nightmare.


Viewing 1 replies (of 1 total)
  • The topic ‘varaitions js not loading’ is closed to new replies.