![]() |
Quote:
same here: http://www.fractalspin.com/x/home.php?cat=7 any thoughts? |
sort by pirce desc
any idea to get it to sort be price from high to low price
Thanks |
try change
DESC for $direction |
It's still not working--yes, when you click it once you can get it to sort with the newest first, but it doesn't sort like the other ones do. I think there is a problem with the code. It doesn't sort ASC or DESC.
|
sort by price
thanks shan
I tried it but did not work. How about takaing out the mod and having to show products sorted first by price form highest to lowest price. Any advise will be appreciated. thanks |
Works Perfectly in 4.1.2
Thanks for the mod I did have to change one line to get the sort by working correctly.
As noted by Shan in an earlier post I changed the following line: Code:
case "add_date": to this Code:
case "add_date": Works great! Thanks again Update: Mod did not by default change to dispay by date. I found that I had to update the products_order feild in the Config table within the datebase. Use the following SQL command to get the new Date module as an option in the admin section. Code:
UPDATE `xcart_config` SET `variants` = 'productcode:lbl_sku title:lbl_product orderby:lbl_default price:lbl_price add_date:lbl_date ' WHERE `name` = 'products_order' LIMIT 1 ; |
Quote:
When I made that change I got this DB Error: Code:
INVALID SQL: 1064 : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1 xcart_featured_products, xcart_products_categories, xcart_categories LEFT JOI' at line 1 weird, right?[/quote] |
Great and easy mod...I'm all about easy! Works like a charm! Thank you !!!
|
Incorrect Answer... Deleted.
|
fractalspin,
Your problem is right here... Code:
xcart_pricing 1 xcart_featured_products, This means while the $direction is working its not being translated... Might try something like this.. Code:
case "add_date": |
All times are GMT -8. The time now is 07:03 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.