Jump to content

Product Class Update function


betatrade

Recommended Posts

Hi,

i'm new to presta programming, i made some test on updating a product and have this problem.

 

I use this code:

 

$prod = new Product(1234); // 1234 is the id_product of in the catalog

$prod->price = 100.00; // new price

$prod->update();

 

The result is:

 

price regulary set to 100.00 but al text field are made blank and other numeri values add each time i made the call.

 

Please Help.

Thanks.

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