prestashop-1.5

How to add image during programmatic product import in prestashop?

社会主义新天地 提交于 2019-12-07 18:16:36
问题 I can't find a proper documentation on adding images during product inserting. Here is the working code of my xml product import script. I have no idea how to add product images also while adding a product. foreach ($xml->Products as $product_xml) { if ($product_xml->Valid_internet_product == 1) { /* Update an existing product or Create a new one */ $id_product = (int)Db::getInstance()->getValue('SELECT id_product FROM '._DB_PREFIX_.'product WHERE reference = \''.pSQL($product_xml->Reference)

How to create a new page in prestashop admin panel?

北城余情 提交于 2019-11-27 23:13:19
how to create a new page in prestashop admin panel? I tried using creating a new admin controller file and in that set the template path and i created a menu using admin panel and there i mentioned the controller class name for that menu. when i try to open that menu it always shows that controller not found. can anyone help me, how to create a new page in prestashop admin panel? am using PS 1.5 version. <?php class AdminPageController extends AdminController { public function __construct() { parent::__construct(); } public function initContent() { parent::initContent(); $this->setTemplate(_PS

How to create a new page in prestashop admin panel?

萝らか妹 提交于 2019-11-26 21:22:21
问题 how to create a new page in prestashop admin panel? I tried using creating a new admin controller file and in that set the template path and i created a menu using admin panel and there i mentioned the controller class name for that menu. when i try to open that menu it always shows that controller not found. can anyone help me, how to create a new page in prestashop admin panel? am using PS 1.5 version. <?php class AdminPageController extends AdminController { public function __construct() {