On the PROD page we have some custom coding that checks to see if the logged in user is in a specific availability group and if they are looking at a couple of specific product categories.
<mvt:comment>Load Availability Group by Name</mvt:comment>
<mvt:do file="g.Module_Feature_AGR_DB" name="l.success" value="AvailabilityGroup_Load_Name('Dealers', g.availabilitygroup)" />
<mvt:comment>Check if customer is assigned to the group</mvt:comment>
<mvt:do file="g.Module_Feature_AGR_DB" name="l.success" value="AvailGroupXCustomer_Load(g.availabilitygrou p:id, g.basket:cust_id, l.settings:availgroupxcustomer)" />
<mvt:comment>Customer is in the availability group and the category is EQ to one of these 2 product categories</mvt:comment>
<mvt:if expr="NOT ISNULL l.settings:availgroupxcustomer:agrp_id AND g.category_code EQ 'Clips' OR g.category_code EQ 'StandardClips'">
Note: Special Finishes are not available at wholesale pricing.<br>
Please contact Casey with any questions about ordering.
<mvt:else>
</mvt:if>
When the criteria is met, it looks like this:
Screen Shot 2023-08-17 at 1.33.53 PM.png
If the criteria is not met, then nothing is displayed.
What I really want to do is add one more check so that this message only shows up if the above criteria is all met, but ALSO check the FinishTypeTEST dropdown field and only show this message when SPECIAL is chosen from the drop down menu. The message doesn't apply when STANDARD (the default) is selected.
What field would you use to add a check for the FinishTypeTEST attribute being EQ to SPECIAL?
Thank you!
Mark
<mvt:comment>Load Availability Group by Name</mvt:comment>
<mvt:do file="g.Module_Feature_AGR_DB" name="l.success" value="AvailabilityGroup_Load_Name('Dealers', g.availabilitygroup)" />
<mvt:comment>Check if customer is assigned to the group</mvt:comment>
<mvt:do file="g.Module_Feature_AGR_DB" name="l.success" value="AvailGroupXCustomer_Load(g.availabilitygrou p:id, g.basket:cust_id, l.settings:availgroupxcustomer)" />
<mvt:comment>Customer is in the availability group and the category is EQ to one of these 2 product categories</mvt:comment>
<mvt:if expr="NOT ISNULL l.settings:availgroupxcustomer:agrp_id AND g.category_code EQ 'Clips' OR g.category_code EQ 'StandardClips'">
Note: Special Finishes are not available at wholesale pricing.<br>
Please contact Casey with any questions about ordering.
<mvt:else>
</mvt:if>
When the criteria is met, it looks like this:
Screen Shot 2023-08-17 at 1.33.53 PM.png
If the criteria is not met, then nothing is displayed.
What I really want to do is add one more check so that this message only shows up if the above criteria is all met, but ALSO check the FinishTypeTEST dropdown field and only show this message when SPECIAL is chosen from the drop down menu. The message doesn't apply when STANDARD (the default) is selected.
What field would you use to add a check for the FinishTypeTEST attribute being EQ to SPECIAL?
Thank you!
Mark
Comment