MivaLearn
3/2/2023 - 4:40 PM

Miva Check Price Group

<mvt:if expr="NOT ISNULL g.customer">
	<mvt:do name="l.count" file="g.Module_Feature_PGR_DB" value="PriceGroupAndModuleList_Load_Customer( g.customer:id, g.PriceGroups )" />
	<mvt:if expr="l.count GT 0">
		<mvt:foreach iterator="customer_pgroup" array="global:PriceGroups">
			<mvt:if expr="l.settings:customer_pgroup:name EQ 'wholesale'">
				Logged in wholesale group		
			<mvt:elseif expr="l.settings:customer_pgroup:name EQ 'interior'">
				Logged in interior group		
			</mvt:if>
		</mvt:foreach>
	<mvt:else>
		Logged in no group
	</mvt:if>
</mvt:if>