Title: Variation change javascript hooks
Last modified: December 1, 2017

---

# Variation change javascript hooks

 *  Resolved [matjazapto](https://wordpress.org/support/users/matjazapto/)
 * (@matjazapto)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/variation-change-javascript-hooks/)
 * Hello.
    I’m trying to hook into the javascript hooks for variation changes (add-
   to-cart-variation.js) but i can’t seem to get any response from any of them. 
   I’m currently bypassing this by using the jQuery ajaxSuccess function to check
   when the variation changes. This works and I get the all the data i need from
   the ajax responseJSON.
 * The goal is to show the variation price for each individual variation. But now
   we want to add the ability to change the parent variable product as well, and
   this workaround will not work anymore. Is there any specific reason why the hooks
   would not work, or is there anything i should be doing other than just initialising
   them like any other js ?

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

 *  [Erina (a11n)](https://wordpress.org/support/users/eri32s98/)
 * (@eri32s98)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/variation-change-javascript-hooks/#post-9817867)
 * This particular forum is mainly for questions related to the free WooCommerce
   plugin and its included features and functionalities.
    For feedback on any code
   that you’ve written, it’s best to get in touch with the web developer community
   at: * [https://wordpress.stackexchange.com/](https://wordpress.stackexchange.com/)
   or [https://stackoverflow.com/](https://stackoverflow.com/) * [https://www.facebook.com/groups/advanced.woocommerce](https://www.facebook.com/groups/advanced.woocommerce)
 * I’ll still leave this thread open in case someone else wants to chime.
 *  [Erina (a11n)](https://wordpress.org/support/users/eri32s98/)
 * (@eri32s98)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/variation-change-javascript-hooks/#post-9882011)
 * No one has chimed in on this thread, so I’m going to mark this as resolved – 
   if you have any further questions, you can start a new thread.

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

The topic ‘Variation change javascript hooks’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [Erina (a11n)](https://wordpress.org/support/users/eri32s98/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/variation-change-javascript-hooks/#post-9882011)
 * Status: resolved