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
10360 158 2003

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?

I jump on these forums to help and share some insights. Not looking to be hired, and not looking for work.

Don't hand out staff invites or give admin password to forum members unless absolutely needed. In most cases the help you need can be handled without that.


★ http://freakdesign.com.au ★
0 Likes