betatrade Posted April 18, 2012 Share Posted April 18, 2012 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 More sharing options...
El Patron Posted April 18, 2012 Share Posted April 18, 2012 what I see right off is this: new $Product(1234) should be new Product(1234) Link to comment Share on other sites More sharing options...
betatrade Posted April 18, 2012 Author Share Posted April 18, 2012 Thanks for correction but that was not the problem. Link to comment Share on other sites More sharing options...
El Patron Posted April 18, 2012 Share Posted April 18, 2012 Thanks for correction but that was not the problem. You are best served by looking at how prestashop uses this function, I assume you can search for it's use. Link to comment Share on other sites More sharing options...
betatrade Posted April 18, 2012 Author Share Posted April 18, 2012 i have looked and the use is that i show in the topic, but the result are not what i expect. Link to comment Share on other sites More sharing options...
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 accountSign in
Already have an account? Sign in here.
Sign In Now