This is the code I have:
in the php file:
if($special>0){
$lease_price = (($special/1000)*38);
} else {
$lease_price = (($price/1000)*38);
}
$lease_price = $this->currency->format($lease_price);
and in the front end tpl file:
<p>
<i class="fa fa-chevron-down"></i>
<b>Lease To Buy Price:</b>
<span><?php if($price>500){ ?>
<?php echo $lease_price; ?>
<?php } else { echo 'NA'; } ?></span>
</p>
At the moment I'm getting this issue after var dump: Notice: Undefined variable: lease_price in /var/www/framec.co.uk/catalog/view/theme/lexus_superstore/template/product/product.tpl on line 160NULL
Here's a link to a pastebin of my php file http://pastebin.com/bTPtvgUQ
What do I need to add to make this work? Do I need some sort of code like this?:
'type' => $option['type'],
Here's a link to the page this is on http://www.framec.co.uk/index.php?route=product/product&path=59_78&product_id=45