peorthyr Posted February 18, 2013 Share Posted February 18, 2013 as the title says, is there a way (i maean a resource and a command to send) to bulk delete all combinations for all the (ora a single) products? i mean, i use webservice to update the quantities and product combinations, but if a particular color (part of combination) is no more present, that color isn't passed to me, so i have to check all the combinations i have for a product, to know if one of them isn't present in my database. a faster way could be to delete all combinations and repopulate all the products, so if something is gone, simply is not reinserted. i bet i'll not receive a single answer... but you know, i'm optimistic hope to convert this desolation called forum into a well... a forum (?) Link to comment Share on other sites More sharing options...
peorthyr Posted February 19, 2013 Author Share Posted February 19, 2013 as always, here the solution, i found by myself: $sql_del_2 = "TRUNCATE TABLE ps_product_attribute"; $sql_del_3 = "TRUNCATE TABLE ps_product_attribute_combination"; mysql_query($sql_del_2); mysql_query($sql_del_3); here you are Link to comment Share on other sites More sharing options...
Microame Posted August 2, 2013 Share Posted August 2, 2013 Hi Peorthyr, Could you please explain bit more about how to set up this trigger. Regards 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