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.
The permissions for these pages are set as illustrated in the image to the right.
In a "Live" site, these pages would not appear in the site menu.