Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
522 views
in Technique[技术] by (71.8m points)

sorting - Prestashop 1.7.6.8. sort cart by category id

i need to sort products in cart by category id, but not like ASC or DESC, i need to sort by specific id like: category 1 (and it's child categories), category 2 (and it's child categories), category 10 (and it's child categories), rest of categories, category 50 (and it's child categories).

I have over 10 000 products in the store and i need to sort them in the order to pack products quicker.

I know that there is a sql query for that in Classes/Cart.php but can't figure out a suitable query for this.

Is there anyone who could help get solution for this? Thank's in advance guys ;)

question from:https://stackoverflow.com/questions/65829540/prestashop-1-7-6-8-sort-cart-by-category-id

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
...