Announcement

Collapse
No announcement yet.

Price Order

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

    Price Order

    Can anyone point me in the right direction to change the order the prices appear on a website page when using a price structure for the items such as buying 1-10off=x price, whilst buying 11-20off =y price and buying 21-30off = z price

    At the moment it is defaulting to the most expensive price first (i.e. when the least number of items is bought), but I want to show the cheapest price first.

    I have tried changing the order in the layout for the "<actinic:variable name="PriceLayout" />, but no matter which order I put them in on the layout it still puts the most expensive at the top of the list ....am I missing something obvious ?

    Any help would be appreciated

    #2
    It's not putting the most expensive first.

    It's putting the smallest quantity first then the next smallest quantity, etc (which is usually the same sequence as most expensive first).

    There's no easy way to change this within Actinic.

    It may be possible to write some PHP that runs when building the page that takes the existing list and resequences it. Not trivial. Or JavaScript that does it live on the web-page. Again not trivial.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Thanks Norman

      Not an easy fix then!

      Looks like I am stuck with it.

      Cheers

      Comment


        #4
        You could add some text to the product description (or indeed add a vraiable into the design) that could say something like: Priced From...

        Comment


          #5
          That's a good idea...I am just trying to focus peoples attention on the cheaper price so they don't dismiss the product too soon !

          Thanks

          Comment


            #6
            This should reverse the order in which the price breakdown is displayed.

            Locate your Product Layout in the Library, right-click it and choose Copy. Rename that copy to include the words - Reversed Price List. E.g. Standard Layout Using CSS - Reversed Price List.

            Edit the new layout and look for the lines:
            Code:
            				<Actinic:PRICES PROD_REF="<actinic:variable Name="ProductID" />" RETAIL_PRICE_PROMPT="<Actinic:Variable Name="ProductPriceDescription"/>">
            					<actinic:variable name="PriceListRetail" />
            				</Actinic:PRICES>
            Replace them with:
            Code:
            				<Actinic:PRICES PROD_REF="<actinic:variable Name="ProductID" />" RETAIL_PRICE_PROMPT="<Actinic:Variable Name="ProductPriceDescription"/>">
            					<actinic:block php="true">
            						$plines = array();
            						<actinic:block type="PriceList">
            							$priceplain = preg_replace('/[£,]/', '', '<actinic:variable name="TaxExclusivePrice" selectable="false" />');
            							$plines[$priceplain] = '<actinic:variable name="PriceLayout" encoding="perl" selectable="false" />';
            						</actinic:block>
            						ksort($plines, SORT_NUMERIC);
            						foreach ($plines as $key => $val) echo $val;
            					</actinic:block>
            				</Actinic:PRICES>
            Use this new layout for products where you want reversed price lists displayed.

            One caveat. You cannot have two quantity ranges using the same price (which seems unlikely).
            Norman - www.drillpine.biz
            Edinburgh, U K / Bitez, Turkey

            Comment


              #7
              Norman - you're a star

              It works perfectly - thank you so much for that - you're a genious!

              Cheers

              Comment

              Working...
              X