Jump to content
  • 0

"id_product" vom letzten eingestelltem Produkt


xtramen

Question

Guten Tag,

ich erstelle ein Produkt z.b. so:

 

$product = new Product();
$product->ean13 = 9999999999999;
$product->name = array((int)Configuration::get('PS_LANG_DEFAULT') =>  'Test importu');;
$product->link_rewrite = array((int)Configuration::get('PS_LANG_DEFAULT') =>  'test-importu');
$product->id_category = 2;
$product->id_category_default = 2;
$product->redirect_type = '404';
$product->price = 22;
$product->quantity = 1;
$product->minimal_quantity = 1;
$product->show_price = 1;

usw........

 

Das klappt auch prima.
Aber gibt es hier eine einfache Möglichkeit die "id" des Produktes zu erfahren?

Vielen Dank und Gruß

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...