Jump to content

update price of 5000 products.


Recommended Posts

i edit de code tabbs/AdminImport.php

// If id product AND id product already in base, trying to update
               if ($product->reference AND Product::existsInDatabase(intval($product->reference)))
               {
                   $datas = Db::getInstance()->getRow('SELECT `date_add` FROM `'._DB_PREFIX_.'product` WHERE `reference` = '.intval($product->reference));
                   $product->date_add = pSQL($datas['date_add']);
                   $res = $product->update();
               }



but not update.
why?

i need update with "reference".
how?

with "id" apply update, cool, but with "reference" no. why?

sugestions please.

Link to comment
Share on other sites

  • 7 months later...
×
×
  • Create New...