Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

Make Sort By: Use Default As The Main Sort By View

Started by flyn, June 24, 2014, 05:06:43 PM

Previous topic - Next topic

flyn

I have been studying another thread and some of the manual to try and make this work but have not been able to figure it out. We have finished sorting all the products in their respective categories by numbers.

This is very important for us as our last system did not allow this. I also would not mind removing some of the options included in Sort By: as I feel they are not relevant for us.

Any advice is appreciated.

Basara

Hello.

To remove some of Sort By you need to modify AbanteCart core files
for categories this is
https://github.com/abantecart/abantecart-src/blob/master/public_html/storefront/controller/pages/product/category.php
see line 234-286 comment php code for each not needed sorting.

Please note after Cart upgrade changes in core files will be lost

flyn

OK I did the changes and the Default Sort is now the principal. I have backed up the original file so that going forward when a new cart update arrives I can make these changes again.

Thanks

flyn

Hello again. I do have Default as the first option showing for sorting but the items are still not sorted like we want.

For example in a particular category like Antiperspirants we have 8 products. What I did in that category is put in a number in the Sort Number and that is show they should be sorted.

Is this the wrong way to do it? Now an interesting thing is that if I change the sort by from default to another selection and then put back default everything is sorted like it should.

I was also think change the dates on products to the same date and then use the Sort Numbers

Forum Rules Code of conduct
AbanteCart.com 2010 -