Announcement

Collapse
No announcement yet.

compare rrp price to product price

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

    compare rrp price to product price

    Hi

    Does anyone know if the following is possible ?

    I have a variable "rrp" which is displayed when filled in (via a Blockif)
    If it is empty it will not show.

    I wanted to show the actual product price and rrp price together, but only if they are not the same - ie
    Do not show IF rrp LESS THAN OR EQUAL TO product price
    IF rrp GREATER THAN product price, then show

    Is it possible to compare the two values like this ?

    Many thanks in advance

    #2
    Yes, you can use logic statements in blockifs.

    Comment


      #3
      Thanks Duncan.

      My main problem is finding how to compare the two prices - I cant seem to find the correct variable etc to compare.
      I have tried "taxinclusiveprice" and "price" variables - aswell as others but none seem to solve the problem.
      Last edited by Simon Clark; 23-May-2008, 08:23 PM. Reason: additional info

      Comment


        #4
        You should be able to adapt something like this:

        Code:
        <actinic:block if="%3cactinic%3avariable%20name%3d%22TaxExclusivePrice%22%20selectable%3d%22false%22%20%2f%3e%20%3e%202">
        <actinic:variable name="TaxExclusivePrice" selectable="false" />
        </actinic:block>

        Comment


          #5
          You could also add some very simple PHP which Norman posted here - http://community.actinic.com/showthread.php?t=36581 that will show how much the customer is saving and the percentage EG:

          Our Price £50.84
          RRP: £59.99 | You Save £9.15 (15%)

          Comment


            #6
            thanks for the help folks.
            Regards

            Comment

            Working...
            X