Hi,
To add the price in the product show page, you can use this kind of code:
foreach ($this->fields as $fieldName => $oneExtraField) {
$value = '';
if(empty($this->element->$fieldName) && !empty($this->element->main->$fieldName))$this->element->$fieldName = $this->element->main->$fieldName;
if(isset($this->element->$fieldName))
$value = trim($this->element->$fieldName);
if (!empty ($value) && $fieldName == 'old_price') {
echo $this->fieldsClass->show($oneExtraField,$value);
}
}
To add under the code:
if ($this->params->get('show_price')) {
$this->row = & $this->element;
$this->setLayout('listing_price');
echo $this->loadTemplate();
}
In the product listing, you just have to add the line:
echo $this->row->old_price;
$
Inthese examples your customfield must be named "old_price" you can replace "old_price" by your custome field name.