Add ProductPrice import
modifié: core/lib/Thelia/ImportExport/Import/Type/ProductPriceImport.php
This commit is contained in:
@@ -86,12 +86,15 @@ class ProductPriceImport extends ImportHandler
|
||||
}
|
||||
|
||||
$price = ProductPriceQuery::create()
|
||||
->filterByProductSaleElements($obj)
|
||||
->findOneByCurrencyId($currency->getId());
|
||||
->filterByProductSaleElementsId($obj->getId())
|
||||
->findOneByCurrencyId($currency->getId())
|
||||
;
|
||||
|
||||
if ($price === null) {
|
||||
$price = new ProductPrice();
|
||||
$price->setProductSaleElements($obj)
|
||||
|
||||
$price
|
||||
->setProductSaleElements($obj)
|
||||
->setCurrency($currency)
|
||||
;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user