Announcement

Collapse
No announcement yet.

hiding prices from non registered customers

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

    hiding prices from non registered customers

    I got a fix by chris on this a while ago

    Good thinking! Here's the workaround.

    First of all, tick 'Enabled' for the 'Retail' customer group.

    To hide the add to cart button for retail customers, put this code before the layout selector for the add to cart button:

    <Actinic:NOTINB2B><div style="display: none;"></Actinic:NOTINB2B>

    and put this code after it:

    <Actinic:NOTINB2B></div></Actinic:NOTINB2B>

    Then to only show the 'This customer is not available...' message to retail customers, replace the 'ProductPriceNotEnabledMessage' variable with:

    <Actinic:NOTINB2B><br /><actinic:variable name="ProductPriceNotEnabledMessage" /></Actinic:NOTINB2B>

    That will sort you out.

    I am not sure what he means by "the layout selector"

    any ideas
    David Mawson
    Phoenix Trading

    http://www.sweetswholesale.co.uk - Wholesale confectionery suppliers

    #2
    JUST HAD ANOTHER THOUGHT ON THIS


    I notice that actinic used the code

    <actinic:block if="

    couldn't you simply block of the whole price, qty, add to cart if the customer was not logged in
    David Mawson
    Phoenix Trading

    http://www.sweetswholesale.co.uk - Wholesale confectionery suppliers

    Comment


      #3
      I am not sure what he means by "the layout selector"
      It's the pink text that says 'AddToCartButton' (or possibly 'Add To Cart Button With Cart Icon') in the product layout.

      Using block tags to hide content from retail customers is a great idea, and I really wish Actinic worked this way, but unfortunately the block tags only work offline (i.e. as the pages are being generated). They do not work online.

      Comment


        #4
        thanks chris

        i've managed to get it to work using the method that you described.

        Thanks
        David Mawson
        Phoenix Trading

        http://www.sweetswholesale.co.uk - Wholesale confectionery suppliers

        Comment

        Working...
        X