A
A
Alexey Zakharov2016-09-28 12:18:03
PHP
Alexey Zakharov, 2016-09-28 12:18:03

How to implement the division of warehouses by user groups?

Good afternoon, such a question, in the project it is necessary to implement the separation of warehouses by user groups (wholesale and retail buyers), respectively, so that each group has its own warehouses, and the quantity of goods and available product options depend on these warehouses (everything is done on trade offers), a retail buyer can choose a warehouse from which to pick up the goods, wholesalers have one warehouse (respectively, it should be set automatically), a smart filter is also used on the page with the withdrawal of goods, respectively, this interaction of user groups with warehouses should be taken into account there, how all this can be implement? There is no standard functionality, as I understand it, in the catalog there is a complex component with the addition of a self-written catalog.section where all products with trading,
On the site, synchronization with 1s, the appropriately selected warehouse when ordering should go to 1s (probably as a property in the order)
The write-off of goods from warehouses will occur at 1s
I would like to hear ideas on how to implement all this

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Shtinov, 2016-10-06
@delimer

It is necessary to use the standard functionality to the maximum.
That is, it will be necessary to modify the templates for displaying the catalog section, product cards with their own rules for processing warehouses and availability. Plus, you need to modify the product card component so that the write-off immediately goes from the warehouse upon purchase (or is reserved from a specific warehouse).
And apparently, you can't do without changing the smart filter component. Because it takes into account the standard calculations of the availability of warehouses to enable and disable the properties of the filter.
The main task is to decide how to keep records of warehouses. Since the standard functionality involves writing off the warehouse when placing an order.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question