有什么方法可以添加 id_category 或 id_prodocut 不是通过自动增加而是通过设置我自己的编号?
这是我的代码:
unset($resources ->position);
unset($resources ->date_add);
unset($resources ->date_upd);
unset($resources ->level_depth);
unset($resources ->nb_products_recursive);
$resources ->id_category = '666';
$resources ->id_parent = '118';
$resources ->name ->language[0][0] = 'Nuaja Kategorija';
$resources ->link_rewrite->language[0][0] = 'Sudu-malunas';
$resources ->active = 1;
$resources ->id_shop_default = 1;
$resources ->is_root_category = 0;