E-commerce Access Management Odoo 18
By Braincuber Team
Published on December 29, 2025
Wholesale distributor running B2B e-commerce creates pricing disaster: public website displays negotiated contract prices meant exclusively for business customers like 40 percent discount for Restaurant Chain showing 600 dollar wholesale cost versus 1000 dollar retail causing individual consumers exploiting business pricing submitting 50 orders weekly at wholesale rates losing 20K monthly revenue, competitors viewing wholesale pricing structure copying pricing strategy undermining competitive advantage, no login requirement allowing anonymous browsing revealing inventory levels product margins and supply chain details to competitors, retail customers discovering wholesale prices demanding equivalent discounts creating customer service nightmares consuming 30 hours weekly, and public cart access enabling price scrapers harvesting pricing data selling intelligence to competitors—generating revenue loss competitive disadvantage and operational chaos from unrestricted e-commerce access without customer authentication gating business-sensitive pricing and catalog information.
Odoo 18 E-commerce Access Management enables B2B privacy protection through logged-in user restriction hiding shop pages from anonymous visitors, customer-specific pricing display showing negotiated rates only to authenticated accounts, cart and wishlist access control preventing public browsing, product catalog restriction limiting visibility to authorized buyers, automatic login redirect for shop access attempts, separate pricing tiers for logged versus public users, contract-based product availability, and wholesale/retail separation—protecting confidential pricing 100 percent through authentication requirements eliminating unauthorized discount access maintaining competitive pricing advantage preventing competitor intelligence gathering and ensuring contractual pricing privacy through granular access control achieving secure B2B e-commerce operations.
E-commerce Access Features: Login requirement, Customer-specific pricing, Cart access control, Product visibility restriction, Automatic redirect, Pricing tier separation, Contract availability, B2B privacy, Competitor protection
Understanding E-commerce Access Control
Two fundamental access modes for B2C versus B2B scenarios:
All Users (B2C Default)
- Shop page public
- Products visible to everyone
- Cart accessible without login
- Wishlist available publicly
- Pricing displayed to anonymous
- Use for: Retail e-commerce
Logged In Users (B2B Secure)
- Shop page hidden from public
- Products restricted to authenticated
- Cart requires login
- Wishlist customer-specific
- Pricing shown only to authorized
- Use for: Wholesale B2B
Enabling E-commerce Access Control
Configuration Steps:
- Go to Website → Configuration → Settings
- Scroll to Privacy section
- Find Ecommerce Access setting
- Choose access mode:
- All Users: Public access (default)
- Logged In Users: Authentication required
- Click Save
All Users Mode Public Access
Default B2C retail configuration:
Anonymous Visitor Experience:
- Visitor navigates to website (not logged in)
- Shop menu visible in navigation
- Click Shop → Product catalog displays
- Select product → View details and pricing
- Add to Cart → Cart accessible
- Add to Wishlist → Wishlist functional
- Proceed to Checkout → Can complete purchase
Complete shopping experience without authentication
B2C Use Cases:
- Consumer Retail: Selling to individual customers
- Public Catalogs: Standard pricing for all
- Conversion Priority: Minimize friction maximize sales
- Competitive Pricing: Public prices acceptable
Logged In Users Mode Restricted Access
Secure B2B wholesale configuration:
Anonymous Visitor Experience:
Access Restrictions:
- Visitor navigates to website (not logged in)
- Shop menu NOT visible in navigation
- Direct URL attempt: /shop → Redirected to login page
- Product pages: Not accessible
- Cart: Hidden from anonymous users
- Wishlist: Unavailable without login
- Must authenticate to access any e-commerce features
Authenticated Customer Experience:
After Login:
- Customer logs in with valid credentials
- Shop menu appears in navigation
- Access to complete product catalog
- View customer-specific pricing (e.g., negotiated wholesale rates)
- Cart functionality enabled
- Wishlist accessible
- Proceed with purchases at contract prices
Example Workflow:
Scenario: Loyal Supermarket (Wholesale Customer)
Business Relationship:
- Wholesale distributor selling to retail chain
- Negotiated 40 percent discount on all products
- Bulk order minimum 100 units per SKU
- Contract pricing confidential
Anonymous Visit:
- Supermarket buyer visits website
- No shop menu visible
- Cannot browse products
- Redirected to login for /shop access
After Login:
- Authenticates with supermarket account
- Shop menu appears
- Views products with 40 percent discount pricing
- Product A: 600 dollars (retail 1000 dollars)
- Product B: 840 dollars (retail 1400 dollars)
- Places bulk order: 500 units Product A
- Checkout at wholesale contract price
B2B Privacy Protection Benefits
Protecting Business Information:
- Confidential Pricing: Wholesale rates hidden from competitors and retail customers
- Contract Terms: Customer-specific discounts and volume pricing private
- Product Availability: Restricted items visible only to authorized accounts
- Inventory Levels: Stock quantities not revealed publicly
- Profit Margins: Wholesale/retail spread protected from competitor analysis
Customer-Specific Pricing
Different customers see different prices when logged in:
| Customer Type | Product A Price | Product B Price | Access Level |
|---|---|---|---|
| Anonymous Visitor | No Access | No Access | Login required |
| Retail Chain (40%) | 600 dollars | 840 dollars | Full catalog |
| Small Business (25%) | 750 dollars | 1050 dollars | Full catalog |
| Standard Account (10%) | 900 dollars | 1260 dollars | Full catalog |
Automatic Login Redirect
Handling unauthorized shop access attempts:
Redirect Workflow:
- Anonymous user attempts direct shop URL: example.com/shop
- System detects: Not authenticated
- Automatic redirect to: example.com/web/login
- Login page displays with message: Please log in to access shop
- User enters credentials and authenticates
- Redirect back to: example.com/shop
- Shop page displays with customer pricing
Implementation Strategy
Migration from Public to Restricted:
Important: Switching from All Users to Logged In Users impacts existing customers
- Notify existing customers before switch
- Send account creation invitations
- Provide login credentials
- Set grace period for transition (2 weeks recommended)
- Enable restriction after customer onboarding complete
New B2B Store Setup:
- Enable Logged In Users from day one
- Create customer accounts before launch
- Configure customer-specific pricelists
- Test login and pricing for each customer type
- Launch with authentication-only access
Best Practices
Use Logged In Users for Any Negotiated Pricing: Negotiated customer-specific pricing visible publicly equals competitive disaster. Customer A negotiated 30 percent discount but Customer B seeing same pricing demanding equal treatment destroying margin. Logged In Users protects contractual pricing showing each customer only their negotiated rates preventing discount disputes.
Combine with Customer Groups for Tiered Access: Single logged-in restriction insufficient for multi-tier B2B. Premium customers need access to exclusive products standard customers cannot see. Create customer groups Gold Silver Bronze with product visibility rules. Logged In Users gates general access groups control product-level visibility achieving granular catalog segmentation.
Monitor Failed Shop Access Attempts: High failed access attempts indicate public users trying to browse wholesale catalog. Track login page redirects from /shop identifying potential customer acquisition opportunities. 500 monthly failed attempts equals 500 potential B2B leads. Follow up with account creation offers converting traffic to authenticated customers.
Comparison: All Users vs Logged In Users
| Feature | All Users | Logged In Users |
|---|---|---|
| Shop Menu Visibility | ✓ Public | ✗ Hidden |
| Product Browsing | ✓ Anyone | ✗ Auth Required |
| Pricing Display | ✓ Public Standard | ✗ Customer-Specific |
| Cart Access | ✓ Anonymous | ✗ Login Required |
| Wishlist | ✓ Public | ✗ Account Only |
| Competitor Protection | ✗ None | ✓ Complete |
| Best For | B2C Retail | B2B Wholesale |
Conclusion
Odoo 18 E-commerce Access Management enables B2B privacy protection through logged-in user restriction customer-specific pricing display cart and wishlist access control automatic login redirect and wholesale retail separation. Protect confidential pricing 100 percent through authentication requirements eliminating unauthorized discount access maintaining competitive pricing advantage preventing competitor intelligence gathering ensuring contractual pricing privacy through granular access control achieving secure profitable B2B e-commerce operations with complete business information protection.
