Custom notification upon order, IF statement for calculation

bioMASON
New Member
1 0 0

Hi- I am editing the code for the notification emailed to me when someone places an order. For products with certain titles, I want to include a simple multiplication action. I have the math formula worked out, I just need help with the IF statements. 

 

For my store, I need to multiple quantity of line.title containing 0802 by 4 and line.title containing 1602 by 2, for example. Is there a way to write the starting if statement to use "contain" so it encompasses multiple products with that in the name?

0 Likes