When Customer Specific Pricing is Needed
Complex Pricing Scenarios
Beyond standard customer group pricing:- Individual customer negotiations - Unique pricing per customer
- Contract-based pricing - Special agreements and terms
- Volume discounts - Complex tier pricing based on purchase history
- Dynamic pricing - Real-time price calculations
- Regional variations - Location-based pricing adjustments
- B2B custom catalogs - Customer-specific product visibility
Standard vs Custom Pricing
Standard Customer Group Pricing | Customer Specific Pricing |
---|---|
Predefined price tiers | Individually negotiated prices |
Group-based discounts | Customer-unique discounts |
Feed-based delivery | Real-time calculation |
Client-side display | Server-side processing |
If your pricing fits within Magento’s standard customer group system, consider using the “Send Customer Group Pricing” option in Data Feeds & Indexing instead of server-side mode.
Server-Side Mode Requirement
Why Server-Side Mode is Necessary
Technical limitations of client-side mode:- Static pricing - Only default prices sent in feeds
- No real-time calculation - Prices determined at feed generation
- Limited personalization - Cannot access current customer context
- No complex logic - Advanced pricing rules not supported
- Real-time pricing - Calculated when recommendations display
- Customer context - Access to current customer data
- Complex logic - Custom pricing rules and calculations
- Live inventory - Current stock levels and availability
- Security - Sensitive pricing logic stays on your server
Server-side mode requires additional development work and may impact page load performance. Only implement when customer-specific pricing is essential for your business model.
Configuring Server-Side Mode
1. Enable Server-Side Mode
Navigate to Stores > Configuration > PureClarity > Mode:- Set Mode to “Serverside”
- Save configuration
- Clear configuration cache

2. Update Zone Implementation
Change zone HTML to use server-side syntax: Before (Client-side):All existing zones must be updated to use server-side HTML syntax. Mixing client-side and server-side zones on the same page can cause conflicts.
Implementation Requirements
3. Custom Pricing Logic Development
Server-side mode requires custom development to implement your pricing logic: Development areas:- Price calculation plugins - Custom pricing algorithms
- Customer context access - Retrieving customer-specific data
- Template customization - Displaying calculated prices
- Performance optimization - Efficient price calculation
4. Template Customization
Customize PureClarity templates to display customer-specific pricing: Template development tasks:- Price display logic - Show appropriate prices for each customer
- Formatting consistency - Match site’s price display standards
- Currency handling - Multi-currency support if needed
- Responsive design - Ensure templates work across devices
Customer Group Pricing Alternative
Standard Customer Group Support
Before implementing full server-side mode, consider if customer group pricing meets your needs: Magento customer group pricing:- Predefined tiers - Bronze, Silver, Gold customer levels
- Percentage discounts - Group-based discount percentages
- Fixed price tiers - Set prices for customer groups
- Catalog rules - Automated pricing rules
- Navigate to Stores > Configuration > PureClarity > Data Feeds / Indexing
- Set “Product Feed - Send Customer Group Pricing” to “Yes”
- Save configuration
- Run product feeds to include group pricing
Customer group pricing provides personalization without the complexity of server-side mode. Test this approach first to see if it meets your requirements.
Performance Considerations
Server-Side Mode Impact
Performance implications:- Increased server load - Price calculations on each recommendation request
- Database queries - Additional customer data retrieval
- Page load time - Potential delays during price calculation
- Caching challenges - Customer-specific content difficult to cache
- Efficient queries - Optimize database performance
- Caching layers - Cache pricing data where possible
- Asynchronous loading - Load recommendations after initial page
- Resource monitoring - Track server performance impact
Scaling Considerations
High-traffic planning:- Server resources - Adequate CPU and memory allocation
- Database optimization - Indexed customer and pricing tables
- Load balancing - Distribute recommendation processing
- Monitoring setup - Track performance metrics
Testing and Validation
5. Test Customer-Specific Pricing
Testing workflow:- Create test customers with different pricing requirements
- Configure pricing rules for test scenarios
- Test recommendations for each customer type
- Verify price accuracy against expected calculations
- Test performance under load
- Correct prices displayed for each customer
- Price formatting matches site standards
- Currency handling works correctly
- Performance acceptable under normal load
- Error handling graceful for pricing failures
6. Monitor Performance Impact
Key metrics to track:- Page load times - Compare before and after server-side implementation
- Server response times - Monitor recommendation processing speed
- Database performance - Track query execution times
- Error rates - Monitor pricing calculation failures
Advanced Implementation
Integration with External Systems
ERP system integration:- Real-time pricing APIs - Connect to external pricing systems
- Inventory synchronization - Live stock level updates
- Contract management - Dynamic contract-based pricing
- Account management - Customer-specific catalog access
- Timeout handling - Graceful fallbacks for slow APIs
- Error recovery - Fallback pricing when external systems fail
- Caching strategies - Balance freshness with performance
- Security - Secure API communication
Custom Business Logic
Advanced pricing scenarios:- Time-based pricing - Different prices by time of day/season
- Quantity breaks - Volume-based pricing tiers
- Bundle pricing - Special pricing for product combinations
- Geographic pricing - Location-based price variations
Troubleshooting Customer Pricing
Common Issues
Prices not updating:- Verify server-side mode is enabled
- Check custom pricing logic implementation
- Review database queries for customer data
- Test with different customer accounts
- Profile price calculation performance
- Optimize database queries
- Implement appropriate caching
- Monitor server resource usage
- Check template customizations
- Verify price formatting logic
- Test across different devices
- Validate currency handling
Debug Testing
Testing customer-specific scenarios:- Enable debug mode to visualize zones
- Test with known customer accounts
- Verify price calculations manually
- Check server logs for processing errors
- Monitor network requests for API calls
Related Resources
Configuration Guides
- Configuration Mode - Client-side vs server-side mode
- Data Feeds & Indexing - Customer group pricing option
- Server-Side Mode - Detailed server-side implementation
Implementation Support
- Adding Zones Using HTML - Zone syntax for server-side mode
- Zone Debug Mode - Testing zone placement
Troubleshooting
- Zones Not Showing - Zone display issues
- Products Not Updating - Data synchronization problems
Summary
Customer-specific pricing in PureClarity recommendations requires:- Server-side mode configuration for real-time price calculation
- Custom development to implement pricing logic
- Template customization for proper price display
- Performance optimization to handle additional processing
- Thorough testing to ensure accuracy and performance