Why isn't my product ID working with discount script?

Why isn't my product ID working with discount script?

renphomaster
Visitor
2 0 0

Hi,

 

Some of the products that the conditional discount script I published have not been identified.

The products that did not activate discount have the same product ID, but different variant IDs.

I tried using variant IDs as identifiers for the discount code but it still doesn't work. Please refer to the image below:
Screen Shot 2022-07-06 at 4.08.25 PM.png

 

This is the script that I'm using for this promotion:
https://docs.google.com/document/d/170ucMJuwjgO4Y9H3Ifv6q3qKOKm6AkPe48WjxLhNlEc/edit?usp=sharing

 

I've been using this same script format for 9 months and never had I encountered this.

 

Please help.... Much appreciated.

Reply 1 (1)

renphomaster
Visitor
2 0 0

Screen Shot 2022-07-06 at 4.16.19 PM.png

Variant IDs and Product IDs for items above.