Merge branch 'master' of github.com:thelia/thelia
This commit is contained in:
@@ -597,14 +597,16 @@ class Product extends BaseI18nLoop
|
|||||||
|
|
||||||
$loopResult = new LoopResult($products);
|
$loopResult = new LoopResult($products);
|
||||||
|
|
||||||
|
$taxCountry = CountryQuery::create()->findPk(64); // @TODO : make it magic
|
||||||
|
|
||||||
foreach ($products as $product) {
|
foreach ($products as $product) {
|
||||||
|
|
||||||
$loopResultRow = new LoopResultRow($loopResult, $product, $this->versionable, $this->timestampable, $this->countable);
|
$loopResultRow = new LoopResultRow($loopResult, $product, $this->versionable, $this->timestampable, $this->countable);
|
||||||
|
|
||||||
$price = $product->getRealLowestPrice();
|
$price = $product->getRealLowestPrice();
|
||||||
|
|
||||||
$taxedPrice = $product->getTaxedPrice(
|
$taxedPrice = null === $price ? null : $product->getTaxedPrice(
|
||||||
CountryQuery::create()->findOneById(64) // @TODO : make it magic
|
$taxCountry
|
||||||
);
|
);
|
||||||
|
|
||||||
// Find previous and next product, in the default category.
|
// Find previous and next product, in the default category.
|
||||||
|
|||||||
Reference in New Issue
Block a user