<?php include(PS_ADMIN_DIR.’/../config/config.inc.php’); $product = Db::getInstance()->ExecuteS(‘SELECT `id_product`, `name`, `description` FROM `mkshop_product_lang`’);
foreach($product as $p){
if(is_array($replace) && count($replace)){
Db::getInstance()->autoExecute(‘mkshop_product_lang’, array(‘name’ => $name, ‘description’ => $description), ‘UPDATE’, ‘id_product = ‘.(int)$p['id_product'].”); |