makaraci Posted July 7, 2010 Share Posted July 7, 2010 Hi,For eg ,my products catalogue is shown like this :carsoapservicesothersI want to order them like this :soapcarservicesothersHow can i do it ?I did it on 1.1 version by writing 01. soap 02.car03.services04.othersbut it doesnt work on 1.3.1 .What is the solution ? Link to comment Share on other sites More sharing options...
rocky Posted July 8, 2010 Share Posted July 8, 2010 You can use the arrows in the "Position" column to change the order of products on the Catalog tab. You can click the arrow to move it one position or drag the area behind the arrow up or down to move it multiple positions at a time. If you want the products displayed in the same order on your website, you'll need to go to Preferences > Products and make sure that "Default order by" is "Position inside category" and "Default order way" is "Ascending". Link to comment Share on other sites More sharing options...
makaraci Posted July 8, 2010 Author Share Posted July 8, 2010 there is no position column on the main categories column .there is position columng on sub categories column but no main categories column Link to comment Share on other sites More sharing options...
rocky Posted July 8, 2010 Share Posted July 8, 2010 I see. I thought you were talking about products. In that case, you are doing it the right way. Adding 01., 02., etc in front of the category name should work in PrestaShop v1.3.1 also. Link to comment Share on other sites More sharing options...
makaraci Posted July 8, 2010 Author Share Posted July 8, 2010 it doesnt work Link to comment Share on other sites More sharing options...
rocky Posted July 9, 2010 Share Posted July 9, 2010 It's working for me. How is it not working for you? Is the prefix disappearing like it should? Are the categories still alphabetically with the prefixes? Link to comment Share on other sites More sharing options...
Klixin Posted July 9, 2010 Share Posted July 9, 2010 same issue here. i tried numbering them in the title and all it didnt change it the order or hide the prefix. any ideas?thx Edit: Actually it does work. Make sure there is a decimal place after the number and before the title. eg 01.bass guitars02.electric guitarsthanks rocky, saved my bacon AGAIN. Link to comment Share on other sites More sharing options...
makaraci Posted July 9, 2010 Author Share Posted July 9, 2010 Hi,Yes , prefix is disappearing as it should but it still doesnt work.I use 01.X02.Y03.Z04.T05.UBut categories are shown randomly like this :ZTXUYPlease help . Link to comment Share on other sites More sharing options...
rocky Posted July 9, 2010 Share Posted July 9, 2010 That is weird. Have you tried switching to the default PrestaShop theme? I can't think of why this would happen. You'll need to do debugging to figure out what is going wrong. Link to comment Share on other sites More sharing options...
Klixin Posted July 10, 2010 Share Posted July 10, 2010 Hi,Yes , prefix is disappearing as it should but it still doesnt work.I use 01.X02.Y03.Z04.T05.UBut categories are shown randomly like this :ZTXUYPlease help . Keep in mind the categories will show up in a random order in the back end, but the front end should be ordered. Link to comment Share on other sites More sharing options...
makaraci Posted July 10, 2010 Author Share Posted July 10, 2010 I found the solution :Open modules\blockcategories\blockcategories.phpFind:ORDER BY `level_depth` ASC, cl.`id_category` ASC'))Change:ORDER BY `level_depth` ASC, cl.`name` ASC'))(thanks uhupage) Link to comment Share on other sites More sharing options...
rocky Posted July 10, 2010 Share Posted July 10, 2010 Thanks for posting the solution. Please edit your first post and add [sOLVED] to the front of the title. Link to comment Share on other sites More sharing options...
apmuthu Posted July 10, 2010 Share Posted July 10, 2010 Direct copy/paste of the code given in this post will not work as the last apostrophe in each of the code lines (the search line an the replace line) is the hexadecimal character 92 and not the normal 27 expected. This is not because the poster chose to make the code lines BOLD in the post. Using the CODE tag is also useless as the quote vanishes.The codebase downloaded yesterday - v1.3.1.1 - has this fix in place at line 122 in the file /modules/blockcategories/blockcategories.php : ORDER BY `level_depth` ASC, cl.`name` ASC'))Even the above plain text is useless. This is because the forum software does a replace of the ordinary apostrophe (ASCII 27 Hex) with the super apostrophe (ASCII 92 Hex) Link to comment Share on other sites More sharing options...
rocky Posted July 11, 2010 Share Posted July 11, 2010 That's why it is important to always wrap code in tags, so the apostrophes aren't converted. Link to comment Share on other sites More sharing options...
apmuthu Posted July 11, 2010 Share Posted July 11, 2010 Using the [ code ] tag here makes the apostrophe vanish! How did you post the code tag without the spaces? Link to comment Share on other sites More sharing options...
rocky Posted July 11, 2010 Share Posted July 11, 2010 I forgot about that. You must write code with start and beginning apostrophes for them to appear. If you write just an opening or closing apostrophe it will disappear. Link to comment Share on other sites More sharing options...
makaraci Posted July 15, 2010 Author Share Posted July 15, 2010 hi,I solved my problem for main categories,but I cant order sub categrioes this time.How can order subcategories ?Main Categorie : Example sub categories : Example1 example2 example3I write :01.example302.example103.example2But it is shown :example1example2example3How can i order them ? Link to comment Share on other sites More sharing options...
poshook Posted July 28, 2010 Share Posted July 28, 2010 Hi, this working fine for me in categories and subcategories 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