Identifying scripted discounts in order admin

rickydazla
Shopify Expert
690 0 73

I have been asked by the accountant here: is there a way to identify Line Items that have had scripted discounts applied, either using tags or line item properties? Are scripts able to write values to either of those? 

I'm a million different people
0 Likes
Jason
Shopify Expert
10039 119 1874

The Script Editor can't add tags but you can look at adding Line Item Properties using the change_properties method.

The order data itself will show if a discount was applied. If there was not discount code used you'll know that it was something applied with a script.

 

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