Troubleshooting Loyalty Points
This guide will help you resolve common issues that may arise when using the Loyalty Points plugin.
Common Issues
Points Not Being Awarded
If points are not being awarded for orders:
Check Program Status:
- Go to Settings > Loyalty Points
- Ensure the loyalty program is enabled
- Verify earning rate is configured (not 0)
Order Status Issues:
- Verify the order has reached an eligible status
- Check which statuses are configured to award points
- Ensure the order wasn't cancelled or refunded
Customer Issues:
- Confirm the customer was logged in during checkout
- Guest checkouts do not earn points
- Check if the customer account exists
Cache Issues:
- Clear application cache:
php artisan cache:clear - Clear config cache:
php artisan config:clear
- Clear application cache:
Points Not Showing at Checkout
If the points redemption option doesn't appear at checkout:
Customer Balance:
- Verify the customer has points available
- Check if points meet minimum redemption threshold
- Log in as the customer to verify balance
Configuration Check:
- Ensure loyalty program is enabled
- Verify redemption settings are configured
- Check minimum redeemable points isn't set too high
Theme Compatibility:
- Ensure your theme supports the loyalty points checkout integration
- Check for JavaScript errors in browser console
- Verify theme is using latest checkout templates
Redemption Errors
If customers encounter errors when redeeming points:
Validation Errors:
- Check minimum redeemable points setting
- Verify maximum redeemable points limit
- Check maximum percentage limit isn't exceeded
- Ensure customer has sufficient balance
Calculation Issues:
- Verify points-to-currency conversion rate
- Check for rounding issues in configuration
- Test with round numbers first
Technical Errors:
- Check browser console for JavaScript errors
- Review server logs for PHP errors
- Verify AJAX endpoints are accessible
Member Level Issues
If member levels aren't working correctly:
Level Assignment:
- Levels are based on lifetime points, not current balance
- Check tier thresholds don't overlap
- Verify minimum/maximum points are set correctly
- Ensure tiers have status enabled
Earning Multiplier Not Applied:
- Clear cache after configuring levels
- Verify earning rate multiplier is set (not 1.0)
- Check tier is correctly assigned to customer
- Review transaction history for correct amounts
Level Not Upgrading:
- Lifetime points must reach tier threshold
- Check for gaps in tier point ranges
- Verify level configurations are saved
- Clear cache and refresh
Points Expiry Not Working
If points aren't expiring as expected:
Configuration Check:
- Verify expiry period is set (not 0)
- Check if expiry is measured in months
- Review points earned date vs current date
Scheduler Issues:
- Ensure Laravel scheduler is running
- Verify cron job is configured correctly:bash
* * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1 - Check scheduler logs for errors
- Run expiry command manually to test:
php artisan loyalty:expire-points
Customer Dashboard Issues
If customers can't access their points dashboard:
Access Problems:
- Verify customer is logged in
- Check URL is correct for points page
- Ensure customer has an account (not guest)
Display Issues:
- Clear browser cache
- Check for JavaScript errors
- Verify theme templates are correct
- Test in different browsers
Data Not Showing:
- Check customer has transaction history
- Verify database connection
- Clear application cache
Bonus Points Not Working
If bonus points (registration, reviews, birthday) aren't awarded:
Registration Bonus:
- Verify bonus amount is set (not 0)
- Customer must complete registration
- Check if bonus was already awarded (won't duplicate)
Review Bonus:
- Verify review bonus is configured
- Customer must submit approved review
- Check if review plugin is active
- Verify customer was logged in when reviewing
Birthday Bonus:
- Customer must have birthday set in profile
- Birthday bonus is configured (not 0)
- Scheduler must be running
- Run birthday command manually:
php artisan loyalty:award-birthday-points
Advanced Troubleshooting
Clearing Cache
Clear all caches to resolve many common issues:
php artisan cache:clear
php artisan config:clear
php artisan route:clear
php artisan view:clearOr use the admin panel:
- Go to Admin > Platform Administration > Cache management
- Click "Clear all CMS cache"
Checking Logs
Review Laravel logs for errors:
- Check
storage/logs/laravel.log - Look for errors related to "loyalty" or "points"
- Pay attention to timestamps to identify recent issues
- Check for stack traces indicating the source of errors
Database Issues
If you suspect database problems:
Verify Tables Exist:
ec_customer_points_balancesec_customer_points_transactionsloyalty_levels
Run Migrations:
bashphp artisan migrateCheck Data Integrity:
- Look for orphaned records
- Verify foreign key relationships
- Check for duplicate entries
Performance Issues
If the plugin is causing slowdowns:
Database Optimization:
- Add indexes to frequently queried columns
- Clean up old transaction records
- Monitor query performance
Caching:
- Enable Redis or Memcached
- Configure appropriate cache lifetimes
- Use database query caching
Server Resources:
- Monitor CPU and memory usage
- Increase PHP memory limit if needed
- Check for slow database queries
JavaScript Debugging
For checkout and dashboard issues:
Open Browser Console (F12):
- Check for JavaScript errors
- Look for failed AJAX requests
- Review network tab for API errors
Common JS Issues:
- jQuery conflicts with other plugins
- Missing dependencies
- CORS errors for AJAX requests
Testing:
- Disable other plugins temporarily
- Test in incognito/private mode
- Try different browsers
Recovery Procedures
Restoring Points
If points were incorrectly deducted or lost:
- Navigate to Loyalty Points > Customer Points
- Find the affected customer
- Click Adjust Points
- Select "Add Points"
- Enter the amount to restore
- Add a note explaining the restoration
- Save the adjustment
Recalculating Balances
If balances appear incorrect:
- Review transaction history for the customer
- Manually sum all transactions
- Compare with displayed balance
- Use point adjustment to correct if needed
Fixing Level Assignments
If a customer is at the wrong level:
- Check customer's lifetime points
- Verify level thresholds
- Clear cache:
php artisan cache:clear - Customer's level should update automatically
- If not, adjust lifetime points temporarily and revert
Getting Support
If you're unable to resolve the issue:
Before Contacting Support
- Review this troubleshooting guide thoroughly
- Check the FAQ section
- Search for similar issues in documentation
- Gather relevant error messages and logs
Information to Provide
When contacting support, include:
Environment Details:
- Botble CMS version
- PHP version
- Loyalty Points plugin version
- Browser and version
Issue Description:
- Detailed description of the problem
- Steps to reproduce the issue
- Expected vs actual behavior
- When the issue started
Screenshots/Logs:
- Screenshots of error messages
- Relevant log entries
- Browser console errors
- Network request failures
What You've Tried:
- Steps already attempted
- Results of troubleshooting
- Any temporary workarounds found
Contact Methods
- Documentation: https://docs.botble.com/loyalty-points
- Support Tickets: https://botble.ticksy.com
- Email: [email protected]
We typically respond within 12-24 hours during business days.
