Could you give me a hand in using the custom attribute price rather than the getFinalPrice.
So I have a custom attribute set up called clearance_price which uses "Price"
However, the product has a price set up on the normal "Prices" part of the product and has a custom price set in a custom attribute called "Clearance Information" - this then has clearance_price in.
We're basically using the same product in different sections of the website, once on it's usual category page and once in the clearance page, however clearance are refurbs and sold at a discounted price.
I have the custom attribute price displaying correctly on the page but when I add it to the cart it naturally, brings in the price from the prices tab.
How do I change this to add it to the cart using the custom price?
<?php
echo "<div class='c_price'>£";
echo number_format($_product->getClearance_price(), 2, '.', '');
echo " <span class='c_price_txt'>ex vat</span></div>";
$percentage = 20;
$incvatprice = $_product->getClearance_price() * (1 + (20/100));
echo "<div class='c_price_inc'>£";
echo number_format($incvatprice, 2, '.', '');
echo " <span class='c_price_txt'>inc vat</span></div>";
echo "this";
echo $_product->getFinalPrice();
?>
<?php echo $this->getChildHtml('alert_urls') ?>
<?php echo $this->getChildHtml('extrahint') ?>
<?php if (!$this->hasOptions()):?>
<div class="add-to-box">
<?php if($_product->isSaleable()): ?>
<div class="row quant">
<div class="col-lg-2 col-md-2 col-sm-2 qty_txt"><b>Qty:</b> </div>
<div class="minus col-lg-1 col-md-4 cold-sm-4 qty-minus hidden-sm hidden-xs">
<i class="fa fa-minus" id="qty-minus"></i>
</div>
<div class="col-lg-3 col-md-4 cold-sm-4">
<input type="text" pattern="\d*" name="qty" id="qty" maxlength="12" value="1" title="Qty" class="input-text qty align-center col-xs-1">
</div>
<div class="plus col-lg-1 col-md-4 cold-sm-4 qty-plus hidden-sm hidden-xs">
<i class="fa fa-plus" id="qty-plus"></i>
</div>
</div> <!-- end row -->
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12">
<button type="button" title="<?php echo $this->__('Add to Basket') ?>" class="addbutton button btn-cart" onclick="setLocation('<?php echo $this->getAddToCartUrl($_product) ?>')"><span><span class="addit"><?php echo $this->__('Add to Basket') ?></span></span></button>
</div>
</div> <!-- end row -->
<?php endif; ?>
</div>