Answer the question
In order to leave comments, you need to log in
Sorting in catalog sections by availability in warehouses?
Good afternoon.
There
is an exchange from 1s, from which ~ 100 warehouses for different cities come.
Goods are simple
. The city of the buyer is written to the session, the warehouse of his city is selected by this value and the available quantity is shown
.
the head comes only when exchanging with 1s, count the quantity in a particular city for each product and write it to the property, and then sort the goods by it.
Maybe there is a simpler / more correct way?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question