I am building a dealer-based e-commerce website in Wix Studio.
Project Requirement:
I have multiple dealers and each dealer has:
- Dealer Code
- Dealer Name
- Assigned Products
- Discount Percentage
Goal:
After login, each dealer should only see their own products and the discount should automatically apply to those products (example: 10%, 20%, etc.).
What I want to implement:
- Dealer login/authentication
- CMS collections structure
- Product filtering based on logged-in dealer
- Dynamic pricing/discount logic
- Best architecture using Wix Stores + CMS + Velo
Working in:
- Wix Studio
- CMS
- Wix Stores
- Members Area
- Velo
I would like guidance on the best approach and workflow to build this properly.
Thank you.
for dealer specific product visibility I would build a custom product listing page with custom cart/checkout logic or use coupons for the dealers.
have a CMS that stores the dealer records and product ID’s
display discount prices in the repeater
discountedPrice = product.price * (1 - dealer.discountPercent / 100);
Workflow
- Add Wix Members Area.
- Create a member for each dealer.
- Create the
Dealers CMS collection.
- Store the dealer’s
memberId.
- Create the
DealerProducts CMS collection.
- Assign products to each dealer using the Wix Stores product
_id.
- Build a custom dealer catalogue page.
- Display discounted prices with Velo.
- Add products to the Wix cart using the real Stores product ID.
- Apply the actual discount using dealer-specific coupons, or use duplicate discounted products if coupons do not suit the business rules.