new product loop

This commit is contained in:
Etienne Roudeix
2013-10-24 17:15:16 +02:00
parent ecaf0ccd07
commit c3fe31c0af
2 changed files with 454 additions and 58 deletions

View File

@@ -41,11 +41,16 @@ class Product extends BaseProduct
return $amount;
}
public function getTaxedPrice(Country $country)
public function getTaxedPrice(Country $country, $price)
{
$taxCalculator = new Calculator();
return round($taxCalculator->load($this, $country)->getTaxedPrice($price), 2);
}
return $taxCalculator->load($this, $country)->getTaxedPrice($this->getRealLowestPrice());
public function getTaxedPromoPrice(Country $country, $price)
{
$taxCalculator = new Calculator();
return round($taxCalculator->load($this, $country)->getTaxedPrice($price), 2);
}
/**