A client who had, in Business Settings, Ordering, selected 'Do Not Create Accounts Automatically Online' complained that the Login Button was still dsplayed in the subheader.
We can use the variable:
This has numeric values from 0 - 3
Therefore in UXHeaderCode Swift around lines 18/19 we can do this:

You also need to do a similar thing in the Mega Menu Layot Code around lines 117-119:
We can use the variable:
Code:
<actinic:variable name="CustomerAccountsCreationPolicy" />
- Always Create accounts for New Online Customers - 1
- Create an Account Unless the Customer Chooses Not To - 3
- Create an Account only if the Customer Chooses To - 2
- Do Not Create Accounts Automatically Online - 0
Therefore in UXHeaderCode Swift around lines 18/19 we can do this:
Code:
<Actinic:NOTINB2B>
<actinic:block if="%3cactinic%3avariable%20name%3d%22CustomerAccountsCreationPolicy%22%20%2f%3e%20%3e%200">
<li><a href="<actinic:variable name="LoginPageURL" />"><actinic:variable name="LoginText" /></a></li>
</actinic:block>
</Actinic:NOTINB2B>
You also need to do a similar thing in the Mega Menu Layot Code around lines 117-119:
Code:
<actinic:block if="%3cactinic%3avariable%20name%3d%22CustomerAccountsCreationPolicy%22%20%2f%3e%20%3e%200">
<li class="d-flex d-md-none">
<Actinic:NOTINB2B>
<a href="<actinic:variable name="LoginPageURL" />" class="header-sub-link"><actinic:variable name="LoginText" /></a>
</Actinic:NOTINB2B>
<actinic:variable name="B2B_Links" />
</li>
</actinic:block>
Comment