View Single Post
  #1  
Old 03-03-2019, 11:23 AM
 
welly welly is offline
 

eXpert
  
Join Date: Mar 2011
Location: UK
Posts: 209
 

Default Sorting products by 'Position'

Hi all

On the customer side, I want to be able to sort my products in each category according to their 'position' field just as I do in my 4.x store, but that particular sort option doesn't exist.

I can see that there is a developer doc which explains how to add a sort option (their example is 'arrivalDate'), and I'm happy to follow that doc having used a couple of others with some success, but instead of 'p.arrivalDate' what should I be using?

Would 'p.pos' be too easy?

On a similar note, how do I find out what the structure of the product data model/entity is so that in future I can just refer to that? Or any model, in fact?

Many thanks

Welly
__________________
X-Cart Business 5.3.6
Various add-ons

www.traininglines.co.uk
Reply With Quote