Announcement

Collapse
No announcement yet.

Different product layout for registered retail and trade customers

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

    Different product layout for registered retail and trade customers

    Business V11.0.3

    Hi,

    I am trying to create a blockif to change the product layout seen by different customer groups.

    I have tried using DiscountCustomerGroupID but firstly, this variable doesn't seem to work in a Product Layout and secondly, I cant find the values to use for each customer group.

    the two blockifs I want to create are:

    block if DiscountCustomerGroupID == TRADE - use this code for trade customers
    block if DiscountCustomerGroupID != TRADE - use this code for retail customers and Unregistered customers

    like this...

    Code:
    <actinic:block if="%3cactinic%3avariable%20name%3d%22DiscountCustomerGroupID%22%20%2f%3e%20%3d%3d%201" >
                TRADE layout here
    </actinic:block>
    Code:
    <actinic:block if="%3cactinic%3avariable%20name%3d%22DiscountCustomerGroupID%22%20%2f%3e%20%21%3d%201" >
                RETAIL layout here
    </actinic:block>
    I would be very grateful if someone could help me with the variable I should be using to distinguish between customer groups.

    Thanks,
    Lee

    #2
    Blockifs only work on the desktop for page creation, they do not work online. Check the KB out for better ideas.

    Comment


      #3
      Thanks for pointing me in the right direction Lee - I should have known really.

      I've been trying to use the method in the KB but am struggling to get it working with the product layout code – it works fine with some simple test code. The problem is getting rid of all the double quotes in the product layout, price list layout,...

      so far I have:

      <Actinic:NOTINB2B>
      Code for UNREGISTERED customers...
      </Actinic:NOTINB2B>

      <Actinic:SHOWFORPRICESCHEDULE Schedules="1" HTML="
      Code for on-line RETAIL customers...
      “/>
      .
      <Actinic:SHOWFORPRICESCHEDULE Schedules="2" HTML="
      Code for on-line TRADE customers...
      “/>

      Hope I'm on the right lines now.

      Thanks
      Lee

      Comment


        #4
        Or try something like (untested - may not work):
        Code:
        <Actinic:NOTINB2B>
        Code for UNREGISTERED customers...
        </Actinic:NOTINB2B>
        
        <style>
        .sched1 {display:none}
        .sched2 {display:none}
        .sched3 {display:none}
        </style>
        
        <Actinic:SHOWFORPRICESCHEDULE Schedules="1" HTML="<style>.sched1 {display:block}</style>" />
        <Actinic:SHOWFORPRICESCHEDULE Schedules="2" HTML="<style>.sched2 {display:block}</style>" />
        <Actinic:SHOWFORPRICESCHEDULE Schedules="3" HTML="<style>.sched3 {display:block}</style>" />
        
        <div class="sched1">
         Schedule 1 code
        </div>
        
        <div class="sched2">
         Schedule 2 code
        </div>
        
        <div class="sched3">
         Schedule 3 code
        </div>
        Be wary of FORM elements in your code as they will be repeated on the page.
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          Thanks Norman, works a treat!
          Lee

          Comment

          Working...
          X