Announcement

Collapse
No announcement yet.

Display message for just one customer group

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

    Display message for just one customer group

    We would like to inform just our 'trade' customer group of our Christmas opening hours. Is it possible to display a message just for this one customer group? Perhaps maybe within a product layout, or accross the entire site?

    Thanks

    #2
    Place something like this in your layout to display a message just for logged in customers (perhaps just above your INNERLAYOUT):

    <Actinic:NOTINB2B><!--</Actinic:NOTINB2B>
    Marketing Message for Logged In Users Only
    <Actinic:NOTINB2B>--></Actinic:NOTINB2B>

    Comment


      #3
      Thanks for that, but unfortunately that's the opposite of what I need. That appears to only display a message to customers who aren't logged in. I need to display a message for those who have logged in.

      Is this possible?

      Thanks

      Comment


        #4
        No that should do exactly that.

        For customers that aren't logged in the message will be remm'd out for those that are in will show.

        The converse is:
        <Actinic:NOTINB2B>Marketing Message for Logged In Users Only</Actinic:NOTINB2B>

        Comment


          #5
          Ah I see. But for some reason <Actinic:NOTINB2B><!--</Actinic:NOTINB2B>
          Marketing Message for Logged In Users Only
          <Actinic:NOTINB2B>--></Actinic:NOTINB2B> won't display at all, even when logged in.

          I've placed it just above the innerlayout. Am I doing something wrong here? The website is http://www.vendula.co.uk/

          Comment


            #6
            The code above is from the Advanced Guide (page 116 - "Hiding Elements from Retail Customers, but Showing Them to ALL Registered Customers").


            It goes on to say:

            Please note that in order for this to work, you need to ensure that 'Compact HTML/CGI' is de-selected in 'Design | Design Options'.
            Norman - www.drillpine.biz
            Edinburgh, U K / Bitez, Turkey

            Comment


              #7
              Aaaahh yes! Thanks so much for that. And thanks for pointing me in the right direction.

              Comment


                #8
                Originally posted by fgs View Post
                Aaaahh yes! Thanks so much for that. And thanks for pointing me in the right direction.
                Unchecking Compact HTML will make all you pages a lot bigger which isn't a good idea long term.

                Another way to do this would be via:
                Code:
                <Actinic:NOTINB2B><script>document.write('<!' + '--');</script></Actinic:NOTINB2B> 
                Marketing Message for Logged In Users Only
                <Actinic:NOTINB2B><script>document.write('--' + '>');</script></Actinic:NOTINB2B>
                Which should work with Compact HTML set (or unset).
                Norman - www.drillpine.biz
                Edinburgh, U K / Bitez, Turkey

                Comment

                Working...
                X