I need to redirect customers who are part of an Availability Group to a specific section of the website if they click on any tab or menu in my ready theme. How would I go about this and where would I write the code for this?
Thank you
Thank you
<mvt:comment>Load Availability Group by Name</mvt:comment> <mvt:do file="g.Module_Feature_AGR_DB" name="l.success" value="AvailabilityGroup_Load_Name('MyAvailGroupName', 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.availabilitygroup:id, g.basket:cust_id, l.settings:availgroupxcustomer)" /> <mvt:if expr="NOT ISNULL l.settings:availgroupxcustomer:agrp_id"> <meta http-equiv="Refresh" content="0;url=https://your-domain.com/path-of-the-url"> </mvt:if>
<mvt:comment>Load Availability Group by Name</mvt:comment> <mvt:if l.settings:cattree_category:code EQ 'In-Stock'> <mvt:comment>Check if customer is assigned to the group</mvt:comment> <mvt:do file="g.Module_Feature_AGR_DB" name="l.success" value="AvailabilityGroup_Load_Name('Tiered Dealers', g.availabilitygroup)" /> <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:if expr="NOT ISNULL l.settings:availgroupxcustomer:agrp_id"> <meta http-equiv="Refresh" content="0;url=https://www.tacticalholsters.com/category/dealers/"> </mvt:if> </mvt:if>
<mvt:comment>Load Availability Group by Name</mvt:comment> <mvt:if expr="l.settings:cattree_category:code EQ 'In-Stock'"> <mvt:comment>Check if customer is assigned to the group</mvt:comment> <mvt:do file="g.Module_Feature_AGR_DB" name="l.success" value="AvailabilityGroup_Load_Name('Tiered Dealers', g.availabilitygroup)" /> <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:if expr="NOT ISNULL l.settings:availgroupxcustomer:agrp_id"> <meta http-equiv="Refresh" content="0;url=https://www.tacticalholsters.com/category/dealers/"> </mvt:if> </mvt:if>
Comment