[-] FO: Fix #PSCFV-8722 displayed specific prices on product page was sometimes wrong

This commit is contained in:
Rémi Gaillard
2013-04-11 18:09:35 +02:00
parent 714b57f225
commit 3cbd8444d6
3 changed files with 42 additions and 33 deletions
+4
View File
@@ -458,6 +458,10 @@ class ProductCore extends ObjectModel
$this->tax_rate = $this->getTaxesRate(new Address($address));
$this->new = $this->isNew();
// keep base price
$this->base_price = $this->price;
$this->price = Product::getPriceStatic((int)$this->id, false, null, 6, null, false, true, 1, false, null, null, null, $this->specificPrice);
$this->unit_price = ($this->unit_price_ratio != 0 ? $this->price / $this->unit_price_ratio : 0);
if ($this->id)