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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…