Title: Variation Selection
Last modified: July 15, 2021

---

# Variation Selection

 *  Resolved [sonusingh](https://wordpress.org/support/users/sonusingh/)
 * (@sonusingh)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/variation-selection/)
 * Hi,
 * I am facing some issues in implementing a snippet on a single product page. I
   have a variation product I want to select the variation using JS is there any
   way I can do that. I have added some custom AJAX on the variation selection but
   I am not able to select the variation that is the only point that is pending.
   I tried Click and Trigger method but that does not work. Please guide me on this.
 * Please check the attached screenshot: [https://nimb.ws/ipGMa0](https://nimb.ws/ipGMa0)
 * Thanks
    -  This topic was modified 4 years, 10 months ago by [sonusingh](https://wordpress.org/support/users/sonusingh/).

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

 *  Plugin Support [Shaun Kuschel a11n](https://wordpress.org/support/users/shaunkuschel/)
 * (@shaunkuschel)
 * Automattic Happiness Engineer
 * [4 years, 10 months ago](https://wordpress.org/support/topic/variation-selection/#post-14666576)
 * Hey [@sonusingh](https://wordpress.org/support/users/sonusingh/),
 * If you take a look at the `woocommerce/assets/js/frontend/add-to-cart-variation.
   js` file you’ll see the triggers that WooCommerce includes and you can hook into.
   If you aren’t familiar with how to do this, I’d suggest taking a look at [this article](https://sarathlal.com/get-variation-product-data-on-selecting-variation-options-woocommerce/).
   Additionally, [this thread](https://wordpress.stackexchange.com/questions/342148/list-of-js-events-in-the-woocommerce-frontend)
   seems to have a pretty good list of frontend JS events for WooCommerce.
 *  Thread Starter [sonusingh](https://wordpress.org/support/users/sonusingh/)
 * (@sonusingh)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/variation-selection/#post-14667998)
 * I have fixed this.
    Thanks, [@shaunkuschel](https://wordpress.org/support/users/shaunkuschel/)

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

The topic ‘Variation Selection’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [sonusingh](https://wordpress.org/support/users/sonusingh/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/variation-selection/#post-14667998)
 * Status: resolved