Mian Waqas Posted December 12, 2021 Share Posted December 12, 2021 Hi, there are default sort orders in PS 1.7 like > (new SortOrder('product', 'price', 'asc'))........ (new SortOrder('product', 'date_add', 'asc'))->setLabel( etc etc but what i want to know that is it possible to get SortOrder by Pricedrop? so that it will show product by asc or des DropPrice list, and obviously i will place it on PriceDrop page only. which should be like (new SortOrder('product', 'dropPrice', 'asc')) Thanks Link to comment Share on other sites More sharing options...
SmartDataSoft Posted December 13, 2021 Share Posted December 13, 2021 Hello, @SMTmardan Did you notice that in price drop page if you change the price oder ascending or descending it filter only price drop. en/prices-drop?order=product.price.desc Link to comment Share on other sites More sharing options...
Mian Waqas Posted December 13, 2021 Author Share Posted December 13, 2021 1 hour ago, SmartDataSoft said: Hello, @SMTmardan Did you notice that in price drop page if you change the price oder ascending or descending it filter only price drop. en/prices-drop?order=product.price.desc Hi, Thanks for replying, i had noticed it and i know about it that it filter by Price, to clarify the confusion of my first message, I want to filter it by "highest discounts & Lowest discount". so the page will show products with highest amount of discount & vise versa. Hope you all getting my point. Regards Link to comment Share on other sites More sharing options...
SmartDataSoft Posted December 13, 2021 Share Posted December 13, 2021 Hello, Thank you for your reply. Unfortunately it is not available, as they need to calculate discount value and save Link to comment Share on other sites More sharing options...
Mian Waqas Posted December 13, 2021 Author Share Posted December 13, 2021 The value is already saved in database isnt it? we just need to create the function or something. Link to comment Share on other sites More sharing options...
SmartDataSoft Posted December 13, 2021 Share Posted December 13, 2021 The value is saved but the difference is not saved in database. When show in front end PrestaShop difference two value and show. Link to comment Share on other sites More sharing options...
Mian Waqas Posted December 14, 2021 Author Share Posted December 14, 2021 so i need to achieve this, Anyone? 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