Can the script only run if I am using a certain theme?

Highlighted
Tourist
11 0 1

I would like the have scripts only work on certain theme. Can the script only run if I am using a certain theme?

Shopify Task starting at $25 Submit Your Edits
0 Likes
Highlighted
Shopify Expert
9925 103 1763

No.

You could add line item properties to each item added to the cart to help determine what theme was in use. That would help you identify the theme in use at the time. That's not a very reliable approach however. 

Why do you need Shopify Scripts to know the theme in use?

★ Winning Partner of the Build a Business competition. ★ http://freakdesign.com.au
0 Likes