This example implements a wholesale pricing mechanism for Wix Stores. A wholesale database collection contains a link to the products in the Stores/Products collection, and the wholesale price of the product. All database queries and updates are in backend code which provdes a high level of data security.
The Admin Products page allows the site owner/admin to enter or edit the wholesale prices of the products. This page is accessible to Dealers and site Admins.
The Dealer Products page displays the wholesale prices of the products. This page is only available to Dealers.