Hello,
How can I make appear a message on the PROD page only if you are login as a customer and you are also assigned to a Price Group and if you're not login another message should appear?
I figured out how to do the last thing (make appear a message if you are not logged in) but when you are login and also assigned to a Price Group, the message appears as many times as the product is assigned to a Price Group. Here is the code I'm using:
Do you know what is happening?
Thanks in advance,
Naomi
How can I make appear a message on the PROD page only if you are login as a customer and you are also assigned to a Price Group and if you're not login another message should appear?
I figured out how to do the last thing (make appear a message if you are not logged in) but when you are login and also assigned to a Price Group, the message appears as many times as the product is assigned to a Price Group. Here is the code I'm using:
Code:
<mvt:if expr="g.Basket:cust_id"> <mvt:do name="g.count" file="g.Module_Feature_PGR_DB" value="PriceGroupAndModuleList_Load_Customer( g.basket:cust_id, g.PriceGroups )" /> <mvt:if expr="g.count GT 0"> <mvt:foreach iterator="customer_pgroup" array="global:PriceGroups"> <mvt:if expr="l.settings:customer_pgroup:name EQ 'EMPLOYEE 2' OR l.settings:customer_pgroup:name EQ 'PA-118' OR l.settings:customer_pgroup:name EQ 'PA-125' OR l.settings:customer_pgroup:name EQ 'PA-128' OR l.settings:customer_pgroup:name EQ 'PA-132' OR l.settings:customer_pgroup:name EQ 'PA-139' OR l.settings:customer_pgroup:name EQ 'PA-143' OR l.settings:customer_pgroup:name EQ 'PA-154' OR l.settings:customer_pgroup:name EQ 'Sponsored Team Account' OR l.settings:customer_pgroup:name EQ 'Wholesale Group - Turbyna' OR l.settings:customer_pgroup:name EQ 'Employee'"> <mvt:if expr="g.promo_message_customer OR g.promo_price_customer"> <span class="promo-message"> &mvt:global:promo_message_customer; &mvt:global:promo_price_customer; </span> </mvt:if> </mvt:if> </mvt:foreach> </mvt:if> <mvt:else> <mvt:if expr="g.promo_message OR g.promo_price"> <span class="promo-message"> &mvt:global:promo_message; &mvt:global:promo_price; </span> </mvt:if> </mvt:if>
Do you know what is happening?
Thanks in advance,
Naomi
Comment