Improve Random Sorting Behavior on Store Listing Page #2934
Closed
sazz-pranto
started this conversation in
Enhancement
Replies: 1 comment
-
Further discussion will continue on #2935. Closing accordingly |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary:
When using the [dokan-stores orderby="random"] shortcode or selecting the “Random” option from the store listing filter, the randomization only occurs once. Upon page reload, the same store order persists instead of being reshuffled.
For a true random sorting experience, the store order should change dynamically on every page load or refresh.
Video Reference:
🎥 https://d.pr/v/NPnIoN
Steps to Reproduce:
Expected Behavior:
Observed Behavior:
Random sorting occurs only once, and the same order persists on subsequent page reloads. The randomization is likely being cached or executed based on a single static query result, likely tied to store name or cached SQL seed.
System Status:
Dokan: v4.1.1
WooCommerce: v10.2.2
WordPress: v6.8.2
CC: @jamil-mahmud bhai
Beta Was this translation helpful? Give feedback.
All reactions