ref #90476 dev changes

This commit is contained in:
Ivan Chaplygin 2023-08-31 18:04:46 +03:00
parent 6b7599ec64
commit a307b1b4f0
2 changed files with 4 additions and 0 deletions

3
retailcrm/lib/RetailcrmCatalog.php Normal file → Executable file
View file

@ -208,6 +208,7 @@ class RetailcrmCatalog
}
$offers = Product::getProductAttributesIds($product['id_product']);
$features = Product::getFeaturesStatic($product['id_product']);
if (!empty($offers)) {
$offersCount += count($offers);
@ -290,6 +291,7 @@ class RetailcrmCatalog
'weight' => $weight,
'dimensions' => $dimensions,
'vatRate' => $product['rate'],
'features' => $features,
];
if (!empty($combinations)) {
@ -347,6 +349,7 @@ class RetailcrmCatalog
'weight' => $weight,
'dimensions' => $dimensions,
'vatRate' => $product['rate'],
'features' => $features,
],
[
'product' => $product,

View file

@ -213,6 +213,7 @@ class RetailcrmIcml
private function setOffersParams($offer)
{
RetailcrmLogger::writeCaller('inventories', print_r($offer, true));
foreach ($offer as $key => $value) {
if (!array_key_exists($key, $this->params)) {
continue;