Jump to content

add feature to a webservice product


agarmur

Recommended Posts

Hello, I try to add a feature on a product with a webservice, but I have a problem, the function addFeaturesCustomToDB or addFeaturesToDB do not work.

Let me explain:
Here is the idea of my code:

$product = new Product();
$product->name = "test";
$product->price = 12;
$product->addFeaturesCustomToDB(12,(int)Configurateur::get('PS_LANG_DEFAULT'), "testFeature");

then i go to the backoffice of prestashop, and my product does not a features :

Capture.thumb.PNG.d531074c323fa190f7e540bcf652cbdf.PNG

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