Приветствую,нам на мультивендор надо сделать две доработки:
- Есть сторонний модуль интегрированный в cs-cart,в управляющем файле модуля надо прописать добавление в корзину вот код файла и вывод модуля:
<?php /*************************************************************************** ****************************************************************************/ use Tygh\Enum\OrderDataTypes; use Tygh\Enum\YesNo; use Tygh\Registry; use Tygh\Storage; use Tygh\Tygh; use Tygh\Enum\ProfileFieldSections; //Add to cart if(defined('CM_ADD_TO_CART')){ global $aCmAddCart; echo '<pre>'; print_r($aCmAddCart);echo '</pre>'; global $aCmCartErrors; if($aCmAddCart['Options']['product_id']['Text']>0){ // Cart is empty, create it if (empty(Tygh::$app['session']['cart'])) {fn_clear_cart(Tygh::$app['session']['cart']);} $cart = &Tygh::$app['session']['cart']; $Reference = $aCmAddCart['Brand'].' '.$aCmAddCart['ArtNum']; $aProdData=Array(); fn_add_product_to_cart($aProdData, $cart, $auth); } } global $CarMod_Content; Tygh::$app['view']->assign('CarMod_Content', $CarMod_Content); Tygh::$app['view']->display('carmod.tpl'); exit;
И выходные данные модуля:
Значение product_id - Value и Text - это product_id из cs-cart
- Нам нужна загрузка прайса в мультивендор 16 000 000 товаров или из 1с иди csv, ftp,json,xls,xlsx по крону