Product: Variation Ajax ChangeΒΆ
Available since: 1.0.0
Provided tokens
| Token | Description |
|---|---|
[commerce_product_variation] |
The product variation entity. This is not the product entity. |
[commerce_product_variation_response] |
The response when changing product variations via ajax. |
[commerce_product_variation_view_mode] |
The view mode for the product variation. |
[event] |
The event. |
[event:machine_name] |
The machine name of the ECA event. |
[session_user] |
The user account that dispatched the event, regardless if ECA is processing models under a different account. |
Reacts when a product variation is changed via AJAX (e.g., user selects a different size or color). Useful for adding custom AJAX commands to update price displays, stock information, or image galleries.