Announcement

Collapse
No announcement yet.

Calculate savings based on RRP

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

    Calculate savings based on RRP

    I have tried to implement the script from the knowledgebase to give me a sale price and the RRP with the saving. I must have done something wrong because I only get the Sale Price, which is fine for the products where the sale and RRP are the same but it happens in all cases.

    I tried entering the RRP in "pence" but then everything was a saving of 99%!! which implies it is trying to work.

    Any ideas where I have gone wrong? I have deleted all the changes and will give it another go tomorrow but any words of wisdom appreciated.

    Thanks.

    #2
    Hi Lee

    there are plenty of threads on this already but giving us a clue on what you've done would help. Can you post the code you're using so we can take a look?
    Elysium:Online - Official Accredited SellerDeck Partner
    SellerDeck Design, Build, Hosting & Promotion
    Based in rural Northants

    Comment


      #3
      Have a look at this thread:

      http://community.actinic.com/showthread.php?t=36581

      Comment


        #4
        Thanks for your help. I think I have now managed to sort it out by using a combination of the various threads and AUG.

        Comment


          #5
          Code:
          <font color="#FF0000">    
                   RRP: <s>
          £<actinic:variable name="Product RRP" />
          </s>
          <actinic:block php="true" >
          $rrp = <actinic:variable name="Product RRP" selectable="false" />;
          $rawprice = <actinic:variable name="ProductPriceRaw" selectable="false" />;
          {
          $amountsaved = ($rrp - $rawprice);
          $savepercent = ((($rrp - $rawprice) / $rrp) * 100);
          echo "you save £$amountsaved";
          echo " (".number_format($savepercent,1);
          echo "%)";
          }
          
          
          </actinic:block>
          </font>
          Add a variable Product RRP
          www.simonstaton.co.uk

          Comment


            #6
            v. good but where do you put it?
            Thanks in advance for any remarks

            Dan

            www.toolman.co.uk
            www.joblottools.co.uk
            www.toolmanonline.co.uk
            www.quality-tools.co.uk

            Comment


              #7
              Product Layout.
              Norman - www.drillpine.biz
              Edinburgh, U K / Bitez, Turkey

              Comment

              Working...
              X