Discount Rate by Discount Code

Smatthews1
New Member
1 0 0

Hi All,

I have seen this questioned asked back in 2018 but had no replies (https://community.shopify.com/c/Script-Editor/Possible-Bug-with-Price-Rules-Discount-Codes-and-Scrip...)

I am trying to use this example to be able to get a solution for my problem: https://help.shopify.com/en/manual/checkout-settings/script-editor/examples/shipping-scripts#discoun... 

Long story Short, I have created a bunch of price rules that use the Batch.json API to assign multiple discount codes to this price rule.

When in script editor, i get an error that the code cannot be found. Like the first link suggests, script editor is only looking at the name of the price rule to get the discount and not the discounts within the price rule. 

Does anyone have a potential solution for this? 

 

Thanks,

Sam

0 Likes