Миколас
подскажи, вставил данную строку в файл yamarket.php
перезапустил сайт на сервере
перекомпилировал в Престе
результат - 0
в прайсе атрибут oldprice не появился
$offer = new ymlOffer($product['id_product'].($combination?'c'.$combination['id_product_attribute']:''),
'',
$available
);
$offer->url = $product['link'].($combination?'#'.$combination['comb_url']:'');
$offer->price = Tools::ps_round(($combination?$combination['price']:$product['price']), 2);
$offer->currencyId = $this->currency_iso;
$offer->categoryId = $product['id_category_default'];
$offer->picture = $this->context->link->getImageLink($product['link_rewrite'], $product['id_image']);
$offer->name = $product['name'];
$offer->vendor = $product['manufacturer_name'];
$offer->vendorCode = ($combination?$combination['reference']:$combination['reference']);
$offer->description = $product['description'];
$offer->sales_notes = Configuration::get('yamarket_info');
$offer->barcode = ($combination?$combination['ean13']:$combination['ean13']);
if (isset($this->yamarket_shipping[1]) && $this->yamarket_shipping[1])
$offer->delivery = 'true';
if (isset($this->yamarket_shipping[2]) && $this->yamarket_shipping[2])
$offer->pickup = 'true';
if (isset($this->yamarket_shipping[3]) && $this->yamarket_shipping[3])
$offer->store = 'true';
$params = array();
if ($product['features'])
foreach ($product['features'] as $feature)
$params[$feature['name']] = $feature['value'];
if ($combination)
$params = array_merge($params, $combination['attributes']);
$offer->param = $params;
$offer->oldprice = Tools::ps_round(($combination?$combination['oldprice']:$product['oldprice']), 2);
$shop->add($offer);