- Posts: 217
- Thank you received: 4
Sort by price on front end
- FilipHradil
-
Topic Author
- Offline
-- Joomla version -- : 3.4.1
Hello,
is there any way how to allow users to sort on product listing?
By price (ascending, descending).
I did not found anything
Thank you
Filip
Please Log in or Create an account to join the conversation.
Yes you have to use the filters:
www.hikashop.com/support/support/documen...-filter-listing.html
Please Log in or Create an account to join the conversation.
- FilipHradil
-
Topic Author
- Offline
- Posts: 217
- Thank you received: 4
I had to miss something. Thank you very much!
But when I change sorting twice it makes mistake in url and I get to main page
bad url
correct url (works only for 1st submiting form)
Thank you!
Filip
Please Log in or Create an account to join the conversation.
Please make sure that you've entered 270 in the menu item id setting of your filter module and that the "force redirect" setting is turned on there and that should avoid the issue.
Please Log in or Create an account to join the conversation.
- FilipHradil
-
Topic Author
- Offline
- Posts: 217
- Thank you received: 4
Force redirect on (filter module) worked for filter but on pagination this problem lasts.
Any idea?
And is there any option how to exclude filter module from product view?
Thank you!
Please Log in or Create an account to join the conversation.
1. This indicates a problem with the variables passed by PHP in the $_SERVER superglobal array on your server.
Could you add a <?php var_dump($_SERVER); ?> at the beginning of the listing_div file of the product view in order to get the debug data of this array so that we can see what's going on ? (you can just post it here and then remove it from your view)
2. If you want to exclude modules from product pages, the simplest would be to use advanced module manager which allows for such granularity when configuring your modules:
www.nonumber.nl/fr/extensions/advancedmodulemanager
Please Log in or Create an account to join the conversation.
- FilipHradil
-
Topic Author
- Offline
- Posts: 217
- Thank you received: 4
thank you for such a great support! I appreciate it!
1. Done.
2. Thank you, works great! (Exclude url option)
Filip
Please Log in or Create an account to join the conversation.
Could you try to change the code:
Please Log in or Create an account to join the conversation.
- FilipHradil
-
Topic Author
- Offline
- Posts: 217
- Thank you received: 4
this change makes url like this:
Please Log in or Create an account to join the conversation.
Ok. Can you remove that change, and instead,
add the code:
Please Log in or Create an account to join the conversation.
- FilipHradil
-
Topic Author
- Offline
- Posts: 217
- Thank you received: 4
Yes now it is perfect, thank you!
Filip
Please Log in or Create an account to join the conversation.
- FilipHradil
-
Topic Author
- Offline
- Posts: 217
- Thank you received: 4
sorry I just realized that my url is longer and longer when I filter more time.
1st filtering
2nd filtering
3rd filtering
Is that purposely or its an error?
Thank you
Please Log in or Create an account to join the conversation.
- FilipHradil
-
Topic Author
- Offline
- Posts: 217
- Thank you received: 4
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.