dxerty Posted September 23, 2011 Share Posted September 23, 2011 Hi, How to delete a product from external php script ? Thank. Link to comment Share on other sites More sharing options...
holden321 Posted September 24, 2011 Share Posted September 24, 2011 http://www.prestashop.com/forums/topic/131996-how-to-add-a-product-from-php-script/ Link to comment Share on other sites More sharing options...
dxerty Posted September 24, 2011 Author Share Posted September 24, 2011 I know, but what function does it call to add / delete a product ? A example, please. Link to comment Share on other sites More sharing options...
holden321 Posted September 25, 2011 Share Posted September 25, 2011 $product=new Product(123); $product->delete(); Link to comment Share on other sites More sharing options...
rocky Posted September 25, 2011 Share Posted September 25, 2011 Try: $product = new Product(1); $product->delete(); This should delete product 1. Change 1 to the appropriate product ID. Link to comment Share on other sites More sharing options...
dxerty Posted September 25, 2011 Author Share Posted September 25, 2011 Thanks 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