- This topic has 1 reply, 2 voices, and was last updated 10 years, 7 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eMember › Possible to Change the Order of Purchase History Listing?
Tagged: purchase history
Hello –
I am using the shortcode [wp_eStore_members_purchase_history_with_download]
and it is working as desired. However, I would like my customer’s newest purchases to appear at the top of the list instead of at the bottom.
Would this be possible? And if so, can you pls give me a hint as to which file I could find code to edit? I’m guessing I would need to change the output to desc instead of ascending, correct? Or something similar?
Thank you for your assistance
What currently happens is the customer/sales database table gets scanned from the first (earliest sale) record, to the last (most recent sale) record. As records are found, they are immediately displayed. To add a reverse sort capability requires the matching records to be buffered first, and then sorted, before being displayed.
Given that, such a capability cannot easily be added. However, this does not preclude the possibility of a future eStore addon.