tsesliuk Posted May 27, 2012 Share Posted May 27, 2012 How i can sort combinations of the products by id, or by order of creation? i created many combinations for one product. When i open product the combinations situated by alphabetical. I need sort combinations by id or order of creation. Where i must change code or maybe prestashop have some settings (Although I doubt this)? Screenshot http://grabilla.com/0251b-4515ece7-1081-4000-8f32-1493358a0d8c.png Link to comment Share on other sites More sharing options...
tomerg3 Posted May 27, 2012 Share Posted May 27, 2012 You can do it with this module http://www.presto-changeo.com/en/attribute-modules/24-attribute-order.html Link to comment Share on other sites More sharing options...
tsesliuk Posted May 28, 2012 Author Share Posted May 28, 2012 Modul it`s good, but i need more simple decision. Free decision. Maybe you know, where i must change code? In product.tpl or other places. Link to comment Share on other sites More sharing options...
tomerg3 Posted May 28, 2012 Share Posted May 28, 2012 I believe there is a thread here where someone posted a way to resort them by editing files. I don't think you can sort it by the creation date, as the date is not saved anywhere, you could do it by ID or alphabetically. Link to comment Share on other sites More sharing options...
tsesliuk Posted May 28, 2012 Author Share Posted May 28, 2012 Yes. I can sort by id but i didn't know PHP. And i ask where is need do changes for sorting by id. Where and what i must change in the code. :-) Can you help me?:-) Link to comment Share on other sites More sharing options...
tomerg3 Posted May 28, 2012 Share Posted May 28, 2012 As I mentioned before this was covered in a few threads already. Do a search in the forum and you'll find it... Link to comment Share on other sites More sharing options...
tsesliuk Posted May 28, 2012 Author Share Posted May 28, 2012 Nobody can help in this question? Link to comment Share on other sites More sharing options...
tomerg3 Posted May 28, 2012 Share Posted May 28, 2012 I just did... but apparently you want others to do the work for you... If you want someone to search the form for you, or to post something that was already posted before, you may have to wait a long time. But if you take the time to do a proper search, you will find what you're looking for much quicker.... Link to comment Share on other sites More sharing options...
tsesliuk Posted May 30, 2012 Author Share Posted May 30, 2012 Prestasta sorted product combinations by alphabetical. If you need combination in order of addition. Just delete code. ORDER BY agl.`public_name`, al.`name`' in classes/Product.php Link to comment Share on other sites More sharing options...
Recommended Posts