Shopify / dawn

Shopify's first source available reference theme, with Online Store 2.0 features and performance built-in.
Other
2.46k stars 3.3k forks source link

Javascript Events for DEVs #3115

Open ct-Marvin opened 9 months ago

ct-Marvin commented 9 months ago

This applies to all of Shopify's free Themes:

It would be extremely useful to have custom JavaScript events available for theme and app developers to handle specific actions. I would particularly appreciate the implementation of the following events:

Considering that Shopify apps are generally restricted from using the asset API to inject code into themes, the availability of these custom events would be highly beneficial.

Additional context/screenshots For inspiration, Maestrooo has an excellent range of custom events in their themes, as can be seen here: https://support.maestrooo.com/article/304-technical-javascript-events-exposed-by-the-theme.

younesyahya commented 8 months ago

Agree ! We also need it for our customers' custom development. We'd like to keep their Dawn theme clean and up to date with theme evolution!

Cart events would also be appreciated!

Navjeet commented 2 months ago

Love to have this option.

https://roartheme.co/blogs/beyours/javascript-events-for-developers