• Resolved Sevar

    (@sevar)


    Hello! Your plugin is not working on the product page in my custom theme. My theme is based on Underscores starter theme. My site on localhost on my computer. I click on color squares and other variations and nothing switches. Another plugin (Product Variations Swatches for WooCommerce) doesn’t show variations at all on my theme. I’ve tried deleting all my custom hooks, custom javascript code, and even bootstrap.bundle.min.js – still not switching variations. And the Clear button doesn’t show. I have version: 1.1.17 of the Swatches and 5.4.0 of Woocommerce.

    Console shows this error:

    
    Uncaught TypeError: t(...).WooVariationSwatches is not a function
        10 http://localhost/wooj/wp-content/plugins/woo-variation-swatches/assets/js/frontend.min.js?ver=1.1.17:1
        jQuery 7
        t http://localhost/wooj/wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart-variation.min.js?ver=5.3.0:1
        setTimeout handler*t http://localhost/wooj/wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart-variation.min.js?ver=5.3.0:1
        wc_variation_form http://localhost/wooj/wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart-variation.min.js?ver=5.3.0:1
        <anonymous> http://localhost/wooj/wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart-variation.min.js?ver=5.3.0:1
        jQuery 2
        <anonymous> http://localhost/wooj/wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart-variation.min.js?ver=5.3.0:1
        jQuery 13
    • This topic was modified 3 years, 3 months ago by Sevar. Reason: Forgot to say hello )
Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi @sevar
    Since you are using a custom theme, could you send us the latest version of the theme you are using on your site? We’ll try to investigate your issue by installing your theme on our local setup.

    You can upload the theme file in Dropbox or Google Drive and send the download link here directly. 

    Looking forward to hearing from you soon.
    Thanks

    Thread Starter Sevar

    (@sevar)

    Hi @humayonk!
    I copied the theme and child theme files, I train on it, I want to understand how an online store is made with a minimum of plugins. Here is the link. Thank you!

    https://drive.google.com/file/d/1N-bCVdXfYwTobFrmcVWpDWW_pGvTM7om/view?usp=sharing

    Thread Starter Sevar

    (@sevar)

    The site of the starter theme — https://underscores.me/ — a very popular theme for wp developers

    Hello @sevar
    If you activate the main parent theme then you will find that there is no console error generating like this.

    However, there might be conflict in the child theme’s custom.js file line no 94 like this.
    Please fix that and I hope the problem will be solved. Also, please check the child theme’s code properly for further conflict/errors.
    Thanks.

    Thread Starter Sevar

    (@sevar)

    Thanks, @humayonk
    I commented out this piece of code, but the problem still persists. And as I said before I tried to turn off my custom code but still there is no clearance. Ok, I’ll try to debug this somehow.

    Thread Starter Sevar

    (@sevar)

    I found the problem 🙂 I removed the jquery link from the footer and put it in the header

    Hi @sevar
    Glad to hear that the problem has been resolved.
    If you found my support helpful, could you leave your valuable review here?
    Your rating keeps us inspired ❤️
    Thank you

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Variations not switch’ is closed to new replies.