Jump to content

ajout de déclinaisons en php


Recommended Posts

Bonjour,

j'arrive à ajouter un nouveau produit

ex:

$newProduit = new Product();

$newProduit->name = array((int)Configuration::get('PS_LANG_DEFAULT') => 'testproduct');
$newProduit->link_rewrite = array((int)(Configuration::get('PS_LANG_DEFAULT')) => 'testproduct');

$newProduit->add();

 

mais je ne trouve pas comment faire pour ajouter au produit des déclinaisons existante via l'id  ex: couleur taille si quelqu'un peut m'aider 

merci

Edited by gnomathibus (see edit history)
Link to comment
Share on other sites

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...