coldthings Posted March 6, 2011 Share Posted March 6, 2011 hello..i was wondering if there is an sql statement to enable the color picker for all my products by default. I have the same color picker for all my productsthis is written by rocky and i think that this can be modified for the color picker but i don't know how TRUNCATE `ps_product_attribute_image`;INSERT INTO `ps_product_attribute_image` SELECT `id_product_attribute`, `id_image` FROM `ps_product_attribute` pa LEFT JOIN `ps_image` i ON (pa.`id_product` = i.`id_product`); please helpThanks ! Link to comment Share on other sites More sharing options...
rocky Posted March 7, 2011 Share Posted March 7, 2011 Try: UPDATE `ps_product` SET `id_color_default` = 1 Change ps_ to your database prefix and 1 to the id_attribute_group in the ps_attribute_group table of the colour group you want to use. Link to comment Share on other sites More sharing options...
coldthings Posted March 7, 2011 Author Share Posted March 7, 2011 Thank you rocky ! It works ! You're the man. A prestashop master. Good job again.Thank you ! Link to comment Share on other sites More sharing options...
ysns Posted June 11, 2011 Share Posted June 11, 2011 Hey thereI have same color picker problem but my mysql knowledge limited so can somebody please tell me step by step how can I solve it from PHP myadmin. Otherwise I have to click 1000+ links at back office and enable color picker one by one.Thanks Link to comment Share on other sites More sharing options...
ysns Posted June 12, 2011 Share Posted June 12, 2011 Could somebody please help me? Below you can see print screen. What should I do next? Link to comment Share on other sites More sharing options...
rocky Posted June 12, 2011 Share Posted June 12, 2011 Click on the Gözat tab to browse your products. You can select multiple rows and then click the pencil icon to edit them, then change all the "id_color_default" values to the id_attribute_group of the color group you want to use on the product. Link to comment Share on other sites More sharing options...
ysns Posted June 12, 2011 Share Posted June 12, 2011 Thank you so much. It works fine now. 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