English
Go to website
Back
Articles on:
Developer Tools & Events
Advanced guides, JavaScript events, and integration tools for developers who want to extend or customize Rubik’s behavior with custom code.
Rubik Swatch Click Event (rubik-swatch-clicked)
Rubik Variant Images & Swatch fires a custom JavaScript event every time a customer clicks a swatch on the product page. This event allows developers to run custom logic whenever a variant option is selected. This is useful if you want to integrate Rubik with third party apps, custom scripts, analytics tools, or any theme level functionality. Event Name rubik-swatch-clicked How to Listen for the Event You can listen for this event anywhere in your theme by adding the followi
Few readers