Hi everyone,
I have some code on my store to automatically add customers whose shipping country is not the US or Canada to a 25% off Price Group at checkout. It works, except that domestic customers are somehow being added to the price group on OSEL, so they see "International 25% Discount" in their basket on OSEL, and then it disappears on OPAY. We are getting emails from US and Canada customers asking why they don't get the discount.
Forehead-Slap.jpg
Here is my code:
What am I doing wrong?
I have some code on my store to automatically add customers whose shipping country is not the US or Canada to a 25% off Price Group at checkout. It works, except that domestic customers are somehow being added to the price group on OSEL, so they see "International 25% Discount" in their basket on OSEL, and then it disappears on OPAY. We are getting emails from US and Canada customers asking why they don't get the discount.
Forehead-Slap.jpg
Here is my code:
Code:
<mvt:if expr="g.Basket:ship_cntry NE 'US' AND g.Basket:ship_cntry NE 'CA'"> <mvt:do file="g.Module_Feature_PGR_UT" name="l.result" value="Basket_Assign_Persistent_PriceGroup(g.Baske t:basket_id,'25POffINT')" /> <mvt:elseif expr="g.Basket:ship_cntry EQ 'US' OR g.Basket:ship_cntry EQ 'CA'"><mvt:do file="g.Module_Feature_PGR_UT" name="l.result" value="Basket_Remove_Persistent_PriceGroup(g.Baske t:basket_id,'25POffINT')" /> <mvt:else> </mvt:if>
Comment