Announcement

Collapse
No announcement yet.

Check to see if assigned to group

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

  • Bruce - PhosphorMedia
    replied
    Originally posted by lesliekirk View Post
    I thought this might have been a little easier but I was wrong. I was thinking I could create an Availability Group to use to display a message to assigned customers. I was thinking it was as easy as

    Code:
    <mvt:if expr="l.availability_group:id EQ 'wholesale'">
    custom message
    </mvt:if>
    I do think I need to add the test to see if they are logged in first but I was hoping that if I shopped as the customer assigned I would at least be able to see my "custom message". What am I doing wrong?

    Should I use a price group or is there a way to use a Business Account?
    FYI: if your looking for a variable that ends in ...ID, its 99% of the time going to be a number, not name. but it looks like Ron has you covered.

    Leave a comment:


  • lesliekirk
    replied
    Originally posted by Ron Frigon View Post
    Checking for Availability Groups is a little tricky: https://www.miva.com/forums/forum/de...lability-group

    Checking for Business Accounts is pretty simple:

    Code:
    <mvt:if expr="'Wholesale' CIN g.businessaccount">
    custom message
    </mvt:if>
    Thanks so very much, Ron! I did try both methods (just for s&g), of course, this one was cleaner and will be easier to work with.

    Leave a comment:


  • Ron Frigon
    replied
    Checking for Availability Groups is a little tricky: https://www.miva.com/forums/forum/de...lability-group

    Checking for Business Accounts is pretty simple:

    Code:
    <mvt:if expr="'Wholesale' CIN g.businessaccount">
    custom message
    </mvt:if>

    Leave a comment:


  • lesliekirk
    started a topic Check to see if assigned to group

    Check to see if assigned to group

    I thought this might have been a little easier but I was wrong. I was thinking I could create an Availability Group to use to display a message to assigned customers. I was thinking it was as easy as

    Code:
    <mvt:if expr="l.availability_group:id EQ 'wholesale'">
    custom message
    </mvt:if>
    I do think I need to add the test to see if they are logged in first but I was hoping that if I shopped as the customer assigned I would at least be able to see my "custom message". What am I doing wrong?

    Should I use a price group or is there a way to use a Business Account?

Working...
X