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

Lita
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
Jason
Shopify Expert
10037 119 1872

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