make it magic last stand
This commit is contained in:
@@ -37,6 +37,7 @@ use Thelia\Model\Base\ProductSaleElementsQuery;
|
|||||||
use Thelia\Model\CountryQuery;
|
use Thelia\Model\CountryQuery;
|
||||||
use Thelia\Model\CurrencyQuery;
|
use Thelia\Model\CurrencyQuery;
|
||||||
use Thelia\Model\Map\ProductSaleElementsTableMap;
|
use Thelia\Model\Map\ProductSaleElementsTableMap;
|
||||||
|
use Thelia\TaxEngine\TaxEngine;
|
||||||
use Thelia\Type\TypeCollection;
|
use Thelia\Type\TypeCollection;
|
||||||
use Thelia\Type;
|
use Thelia\Type;
|
||||||
|
|
||||||
@@ -145,7 +146,7 @@ class ProductSaleElements extends BaseLoop implements PropelSearchLoopInterface
|
|||||||
|
|
||||||
public function parseResults(LoopResult $loopResult)
|
public function parseResults(LoopResult $loopResult)
|
||||||
{
|
{
|
||||||
$taxCountry = CountryQuery::create()->findPk(64); // @TODO : make it magic
|
$taxCountry = TaxEngine::getInstance($this->request->getSession())->getTaxCountry();
|
||||||
|
|
||||||
foreach ($loopResult->getResultDataCollection() as $PSEValue) {
|
foreach ($loopResult->getResultDataCollection() as $PSEValue) {
|
||||||
$loopResultRow = new LoopResultRow($PSEValue);
|
$loopResultRow = new LoopResultRow($PSEValue);
|
||||||
|
|||||||
Reference in New Issue
Block a user