Announcement

Collapse
No announcement yet.

Business Account Token? Displaying items based on specific group

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

    Business Account Token? Displaying items based on specific group

    Is there a business account token like l.settings:customer:business_account?

    I don't see it in a token list. All I see if counts for availability and price groups.

    I want to use it to control display of banners for customers under a specific business account.

    If I wanted to use a business account token for templating, would it just be best to create a custom field (even though its a little redundant)?

    #2
    The business account id is saved in the customer record as:

    g.customer:account_id

    You can then use this ID to lookup the business account name like this:

    <mvt:do file="g.Module_Feature_CUS_DB" name="l.success" value="BusinessAccount_Load(g.customer:account_id, g.businessaccount)" />
    You are assigned to the following Business Account: &mvte:global:businessaccount:title;
    Brennan Heyde
    VP Product
    Miva, Inc.
    [email protected]
    https://www.miva.com

    Comment


      #3
      Exactly what I needed. Thanks for the quick reply.

      Comment

      Working...
      X