lisz55 Posted August 23, 2013 Share Posted August 23, 2013 (edited) is there a quick way to change multiple product status to avaliable? Edited August 23, 2013 by lisz55 (see edit history) Link to comment Share on other sites More sharing options...
kristianmu Posted August 23, 2013 Share Posted August 23, 2013 The quickest way is through database, Update ps_product set state=1 where XXX Link to comment Share on other sites More sharing options...
lisz55 Posted August 23, 2013 Author Share Posted August 23, 2013 Update ps_product set state=1 where XXX this comend doesn't work, I assume that I have to insert somthing instead of xxx? And you are certain that state is correct name as far as I can see there are no record named state, but I'm no expert in sql Link to comment Share on other sites More sharing options...
kristianmu Posted August 23, 2013 Share Posted August 23, 2013 Sorry I assume that you have SQL knoledge, and the fiels is acvtive... I posted too fast... Sorry. If you want to update all products: update ps_product set active = 1 If you want only some id's: update ps_product set active = 1 where id_product in (1,2,3,....) If you whant only products form one category (products of a default category): update ps_product set active = 1 where id_category_default = idnumber of the category And finally if you want producs form any category: update ps_product set active = 1 where id_product in (Select distinct(id_product) from ps_category_product where id_category = number of the category) Hope it helps! Link to comment Share on other sites More sharing options...
nadie Posted August 23, 2013 Share Posted August 23, 2013 Sorry I assume that you have SQL knoledge, and the fiels is acvtive... I posted too fast... Sorry. If you want to update all products: update ps_product set active = 1 If you want only some id's: update ps_product set active = 1 where id_product in (1,2,3,....) If you whant only products form one category (products of a default category): update ps_product set active = 1 where id_category_default = idnumber of the category And finally if you want producs form any category: update ps_product set active = 1 where id_product in (Select distinct(id_product) from ps_category_product where id_category = number of the category) Hope it helps! Hi, Prestashop 1.5 ps_product and ps_product_shop Sorry for my English. Link to comment Share on other sites More sharing options...
kristianmu Posted August 23, 2013 Share Posted August 23, 2013 Victor don't be shy to writing english! haha! Link to comment Share on other sites More sharing options...
lisz55 Posted August 23, 2013 Author Share Posted August 23, 2013 Ok thanks, I've change it in ps_product and ps_product_shop and it works. Link to comment Share on other sites More sharing options...
nadie Posted August 23, 2013 Share Posted August 23, 2013 Ok thanks, I've change it in ps_product and ps_product_shop and it works. Perfect ! Please, add the word "solved" in the title of the topic. Sorry for my English. Link to comment Share on other sites More sharing options...
lisz55 Posted August 23, 2013 Author Share Posted August 23, 2013 done, I have a question is it possible to change this: update ps_product set active = 1 that it changed status for all products exept products that have id 4, 5, 24, 134? Link to comment Share on other sites More sharing options...
kristianmu Posted September 2, 2013 Share Posted September 2, 2013 done, I have a question is it possible to change this: update ps_product set active = 1 that it changed status for all products exept products that have id 4, 5, 24, 134? Try with: update ps_product set active = 1 where id_product not in (4, 5, 24, 134) But if there are 4 products only it's faster to do it manially P.S: Sorry for the delay. 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