Announcement

Collapse
No announcement yet.

SellerDeck not liking some code (Price was ... now)

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

    SellerDeck not liking some code (Price was ... now)

    I’m having a problem with the Was €x.xx - you save €x.xx (xx%) code.

    For information I have created a new SellerDeck site and imported my products through .cvs. so this is not an upgrade issue.

    I inserted the was/now code into the product summery layout and there is no problem.
    I also inserted the same code (copied and pasted) into the template. Not red box at the top appears to say there is a code error. However when I publish to web I’m getting a message to say there is an error. I ignore it, all uploads and it looks fine on the website.

    Here is the code I’m using:


    Code:
    	  		      <span class='actwarningcolor'><actinic:block php="true">
    		     
    
    $rrp = round( <actinic:variable name="PreviousPrice" selectable="false" /> ,2);
    $rawprice = <actinic:variable name="ProductPriceRaw" selectable="false" />;
    
    // only display if we have an RRP and there's a saving to show
    if ( ($rrp != 0) && ($rrp > $rawprice) )
    {
    $amountsaved = ($rrp - $rawprice);
    $savepercent = ((($rrp - $rawprice) / $rrp) * 100);
    echo "Was €", number_format($rrp,2), " - you save €", number_format($amountsaved,2);
    echo " (", number_format($savepercent,0), "%)";
    }
    
    </actinic:block></span>
    Also can anyone tell me where to find the css for actwarningcolor, I want to change the pallet colour that its using.

    First of many posts I’m afraid , I thought a fresh new site would be a good idea but alas no.



    Tara
Working...
X