Announcement

Collapse
No announcement yet.

Hide login when not making accounts

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Hide login when not making accounts

    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:
    Code:
    <actinic:variable name="CustomerAccountsCreationPolicy" />
    This has numeric values from 0 - 3
    • 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>
    Click image for larger version

Name:	ccp.jpg
Views:	28
Size:	86.3 KB
ID:	553780

    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>
    Jonathan Chappell
    Website Designer
    SellerDeck Website Designer
    Actinic to SellerDeck upgrades
    Graphicz Limited - www.graphicz.co.uk

    #2
    Great - thanks Jonathan, works to remove from sub-header in V16 also!
    I have wanted to figure out a way to do this for some time.
    Martin

    Comment

    Working...
    X