MivaLearn
3/2/2023 - 11:49 PM

Miva - Check if customer is assinged to a business account

<mvt:comment>
	Check if customer is assinged to a business account 
</mvt:comment>
<mvt:if expr="g.customer:account_id">
	<mvt:comment> Load business account information </mvt:comment>
	<mvt:do file="g.Module_Feature_CUS_DB" name="l.business_count" value="BusinessAccount_Load(g.customer:account_id, l.settings:businessaccount)" />
	<mvt:if expr="l.business_count GT 0">
		<mvt:if expr="l.settings:businessaccount:name EQ 'Wholesale'">
		<mvt:elseif expr="l.settings:businessaccount:name EQ 'Interior'">
		</mvt:if>
	</mvt:if>
</mvt:if>