Looking at v1.4.9.4 in product.php ( ControllerProductProduct ), I see the following code that sets the formatted value of the $ price you are talking about:
if ($discount) { $price = $this->currency->format($this->tax->calculate($discount, $result['tax_class_id'], $this->config->get('config_tax'))); } else { $price = $this->currency->format($this->tax->calculate($result['price'],$result['tax_class_id'], $this->config->get('config_tax')));
Why don't you change this to be next ...
if ($discount) { $price_num = $this->tax->calculate($discount, $result['tax_class_id'], $this->config->get('config_tax')); $price = $this->currency->format($price_num); } else { $price_num = $this->tax->calculate($result['price'],$result['tax_class_id'], $this->config->get('config_tax')); $price = $this->currency->format($price_num);
And then a few lines down, you can pass this value to $ price_num to the template by adding the following:
$this->data['products'][] = array( 'product_id' => $result['product_id'], ... 'price' => $price, 'price_num' => $price_num, ...
Do what you need
source share