Announcement

Collapse
No announcement yet.

Price variable?

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

    Price variable?

    Hello, I want to make a blockif in a product layout which tests to see if the product's price is 123456789 so I can do something special if that's the price.

    Something like this:

    <block if: price != 123456789>
    Price Layout As Normal
    <end block>
    <block if: price == 123456789>
    Please call us for the real price.
    <end block>

    But when I try to use the price variable it always seems to print out "{£21.28}" with the curly braces and always that price no matter what the real price for the product is.

    So am I using the wrong price variable or something?

    I also tried using the TaxExclusivePrice variable. When I print that out in the design it looks like £1,234,567.89 but if I try to equate that variable to that string, the block doesn't seem to return true (nothing inside the block is printed) even on products with that price.

    Has anyone got any tips?
    Cheers, Toby

    #2
    ProductPriceRaw is the one to use.

    Comment


      #3
      You can use TaxInclusivePrice like this for example:
      Code:
      <actinic:variable name="TaxInclusivePrice" selectable="false" /> == "£359.00"
      You need to use the formatted price though to test this variable.

      Comment


        #4
        Awesome : ) thanks a lot. The ProductPriceRaw variable seems to be working fine.

        I still couldn't get the TaxExclusivePrice logic to work, even though I thought I was already using the formatted price... oh well it's no big problem now that the other one is working.

        Thank you both again!

        Comment

        Working...
        X