Announcement

Collapse
No announcement yet.

How to display just one price when quantity price breaks apply?

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

    How to display just one price when quantity price breaks apply?

    Ok. This shouldn't be too hard but it's got me baffled (like most of the selectors / layouts / variables stuff).

    I'm setting up a product with some quantity price breaks at 3+, 6+, etc. This is fine but I only want the first price to be shown beside the 'add to cart' button. The price breaks will be described elsewhere on the page.

    So far, I've managed to create a new 'Prices' Layout to do this. But even if I clear out all the blockifs but the first one it still insists on displaying all the different prices that apply (it does at least no longer display the price break descriptions).

    If I try and edit a 'Price Lists' layout then there's nothing showing in any of the fields for me to edit.

    If someone can tell me how to do this I'd be most grateful.

    Mike
    -----------------------------------------

    First Tackle - Fly Fishing and Game Angling

    -----------------------------------------

    #2
    Try this. Edit Standard Retail Price List and change from
    Code:
    <actinic:variable name="PriceLayout" />
    to
    Code:
    <actinic:block if="%3cactinic%3avariable%20name%3d%22ListIndex%22%20%2f%3e%20%3d%3d%201">
    <actinic:variable name="PriceLayout" />	
    </actinic:block>
    Where putting a blockif ListIndex == 1 hides all but the first.

    You'll probably also want to tinker with the price layout to remove the (n or fewer items).
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Thanks Norman, that does it.

      Presumably this kills the extra prices for all the price layouts which is fine as I see it at the moment but if I ever wanted to show these on some products is there some way of telling the layout which price list it should be using? It certainly isn't obvious to me how I'd do this.

      Mike
      -----------------------------------------

      First Tackle - Fly Fishing and Game Angling

      -----------------------------------------

      Comment


        #4
        The list index counts the iterations ..... the layout list cycles through for every price band and outputs until it gets to the end. I did a similar test for the price in the section layout and removed to show only 1 where there is a band of prices

        http://community.actinic.com/showpos...4&postcount=30

        .. may be of some use to you.


        Bikster
        SellerDeck Designs and Responsive Themes

        Comment


          #5
          You will need to create either a user defined variable to set a switchable block to display a selection of price layouts or duplicate and change product layouts ... the 1st option will be the better long term solution with less maintenance.


          Bikster
          SellerDeck Designs and Responsive Themes

          Comment


            #6
            if I ever wanted to show these on some products
            Create a product level variable called e.g. ShowPriceBreaks with the default set to false.

            Then change that Condition to be something like:

            (ListIndex == 1) OR ShowPriceBreaks
            Norman - www.drillpine.biz
            Edinburgh, U K / Bitez, Turkey

            Comment


              #7
              Thanks Norman; Jonty. This all helps.

              Mike
              -----------------------------------------

              First Tackle - Fly Fishing and Game Angling

              -----------------------------------------

              Comment

              Working...
              X