Title: Variations not switch
Last modified: June 9, 2021

---

# Variations not switch

 *  Resolved [Evgeny](https://wordpress.org/support/users/sevar/)
 * (@sevar)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/variations-not-switch/)
 * 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 4 years, 11 months ago by [Evgeny](https://wordpress.org/support/users/sevar/).
      Reason: Forgot to say hello )

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [BSF – Humayon Kabir](https://wordpress.org/support/users/humayonk/)
 * (@humayonk)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/variations-not-switch/#post-14539655)
 * Hi [@sevar](https://wordpress.org/support/users/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 [Evgeny](https://wordpress.org/support/users/sevar/)
 * (@sevar)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/variations-not-switch/#post-14541484)
 * Hi [@humayonk](https://wordpress.org/support/users/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](https://drive.google.com/file/d/1N-bCVdXfYwTobFrmcVWpDWW_pGvTM7om/view?usp=sharing)
 *  Thread Starter [Evgeny](https://wordpress.org/support/users/sevar/)
 * (@sevar)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/variations-not-switch/#post-14547241)
 * The site of the starter theme — [https://underscores.me/](https://underscores.me/)—
   a very popular theme for wp developers
 *  [BSF – Humayon Kabir](https://wordpress.org/support/users/humayonk/)
 * (@humayonk)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/variations-not-switch/#post-14550213)
 * Hello [@sevar](https://wordpress.org/support/users/sevar/)
    If you activate the
   main parent theme then you will find that there is no console error generating
   like [this](https://share.getcloudapp.com/Z4uKknoo).
 * However, there might be conflict in the child theme’s `custom.js` file line no`
   94` like [this](https://share.getcloudapp.com/2Nuqybwr).
    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 [Evgeny](https://wordpress.org/support/users/sevar/)
 * (@sevar)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/variations-not-switch/#post-14550649)
 * Thanks, [@humayonk](https://wordpress.org/support/users/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 [Evgeny](https://wordpress.org/support/users/sevar/)
 * (@sevar)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/variations-not-switch/#post-14550709)
 * I found the problem 🙂 I removed the jquery link from the footer and put it in
   the header
 *  [BSF – Humayon Kabir](https://wordpress.org/support/users/humayonk/)
 * (@humayonk)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/variations-not-switch/#post-14552660)
 * Hi [@sevar](https://wordpress.org/support/users/sevar/)
    Glad to hear that the
   problem has been resolved. If you found my support helpful, could you leave your
   valuable review [here](https://wordpress.org/support/plugin/woo-variation-swatches/reviews/)?
   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.

 * ![](https://ps.w.org/woo-variation-swatches/assets/icon-256x256.gif?rev=3157951)
 * [Variation Swatches for WooCommerce](https://wordpress.org/plugins/woo-variation-swatches/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-variation-swatches/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-variation-swatches/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-variation-swatches/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-variation-swatches/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-variation-swatches/reviews/)

## Tags

 * [switch](https://wordpress.org/support/topic-tag/switch/)
 * [variations](https://wordpress.org/support/topic-tag/variations/)

 * 7 replies
 * 2 participants
 * Last reply from: [BSF – Humayon Kabir](https://wordpress.org/support/users/humayonk/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/variations-not-switch/#post-14552660)
 * Status: resolved