| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
New Sort By Option | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
New Sort By Option
I'm working on adding a new sort by option, amount/ stock level. I've tried following the X-Cart Documentation Adding New Sort Option to ItemList and have not had any success. Is this task completed differently for post 5.3 versions?
Thank you |
|||||||
#2
|
|||||||||
|
|||||||||
Re: New Sort By Option
Probably - it looks like that documentation is for 5.3.
This is often the case - 5.4 is quite a bit different so a lot of these pages are out of date now.
__________________
Paul Dodman e-business & m-commerce consultant w: www.luminointernet.com e: xcart@luminointernet.com Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart. |
|||||||||
#3
|
|||||||
|
|||||||
Re: New Sort By Option
Yeah I've been noticing the documentation is outdated. I've also noticed a lack of standardization within the CDev and XC modules as well... which makes it difficult to understand how certain tasks are completed within this platform.
That's part of the reason why I'm reaching out here. As decorating View classes in X-Cart v5.4 or later seems to be an elusive task... |
|||||||
#4
|
|||||||||
|
|||||||||
Re: New Sort By Option
Your best bet to learn how something is supposed to be done/work is to study the code within the version you are using.
The XC docs are either out of date or showing something very simple which doesn't help in most cases.
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#5
|
|||||||
|
|||||||
Re: New Sort By Option
Hi, this thread is kind of old, but has anyone had any luck with this ?
Here is what I have noticed on the version 5.4.35 (I am using Dewy Green theme on top of the crispy white skin, but I have checked the situation disabling Crispy White skin) In the class XLite/View/ItemsList/Product/Customer/ACustomer.php (which is precisely what is overwritten in the module quoted in the documentation) Code:
Now, I don't have any module that could possibly show "recommended" product activated (they are, however, installed, and have been activated in the past) like featured product, best seller, cloud search. However, on my catalogue, I get "Recommended" as the default sorting order. I searched where on earth this string could come from, the only file that could possibly be relevant is View/FormField/Select/DefaultProductSortOrder.php which contains Code:
Now, there is no string, priceAsc etc., that appears in any other classes. Does anyone have any idea what is going on here ?
__________________
X-cart 5.2.12, php 5.6 Ed from Grenoble, France |
|||||||
#6
|
|||||||
|
|||||||
Re: New Sort By Option
Actually I was a bit hasty. The module simply works.
__________________
X-cart 5.2.12, php 5.6 Ed from Grenoble, France |
|||||||
|
|||
X-Cart forums © 2001-2020
|