Announcement

Collapse
No announcement yet.

Check to see if assigned to group

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

    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?

    Leslie Kirk
    Miva Certified Developer
    Miva Merchant Specialist since 1997
    Previously of Webs Your Way
    (aka Leslie Nord leslienord)

    Email me: [email protected]
    www.lesliekirk.com

    Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

    #2
    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>
    Ron Frigon
    Jedi Webmaster Obi-Ron Kenobi

    Comment


      #3
      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.
      Leslie Kirk
      Miva Certified Developer
      Miva Merchant Specialist since 1997
      Previously of Webs Your Way
      (aka Leslie Nord leslienord)

      Email me: [email protected]
      www.lesliekirk.com

      Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

      Comment


        #4
        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.
        Bruce Golub
        Phosphor Media - "Your Success is our Business"

        Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
        phosphormedia.com

        Comment

        Working...
        X