Troubleshooting
Wholesale Prices Not Showing
If wholesale customers can't see discounted prices:
Check the customer is in a group: Go to Ecommerce > Customers, edit the customer, check the Wholesale Groups field has a group selected.
Check the group is Published: Go to Wholesale > Customer Groups, make sure the group's status is Published (not Draft).
Check the customer is logged in: Wholesale prices only show to logged-in customers (unless guest pricing is enabled in settings).
Clear cache: Go to Admin > Platform Administration > Cache management, click Clear all CMS cache. Also try clearing your browser cache (Ctrl+Shift+Delete).
Test in incognito mode: Open a private browser window, log in as the customer, and check. This rules out browser cache issues.
Pricing Table Not Showing on Product Page
Check the setting: Go to Wholesale > Settings > Display Options, make sure Show Pricing Table is enabled.
Check the product has pricing rules: The table only shows when a product has at least one active pricing rule. Go to the product edit page and check the Wholesale section for rules.
Check rule status: All pricing rules must be Published to appear.
Check customer group: If the rule targets a specific customer group, verify the customer is in that group.
Wrong Discount Applied
Multiple groups: If the customer is in multiple groups, the discount resolution strategy determines which discount applies. Check: Wholesale > Settings > Discount Resolution Strategy.
Pricing rule overrides: A pricing rule may give a different discount than the group discount. The system picks the better deal for the customer. Check: edit the product, look at the Wholesale section for pricing rules.
Check the math: For percentage discounts, the discount is off the retail price. For fixed amount, it's a flat reduction. For fixed price, it replaces the price entirely.
MOQ Not Being Enforced
Check MOQ is set: Edit the product, scroll to the Wholesale section. Verify Minimum Quantity and Quantity Increment are set.
Clear cart: Empty the cart completely, then try adding the product fresh.
Check browser console: Press F12, go to the Console tab, look for JavaScript errors that might prevent MOQ validation.
Product Visibility Not Working
If a "Wholesale Only" product is visible to non-wholesale customers, or not visible to wholesale customers:
Check the product's visibility setting: Edit the product, scroll to Wholesale section, check Visibility Type.
For "Specific Groups" visibility: Make sure the correct groups are selected in Allowed Customer Groups.
Check the customer's group: Ecommerce > Customers > Edit customer > Wholesale Groups.
Clear cache: Cache can cause visibility to not update immediately.
Wholesale Application Issues
Applications not appearing in admin
- Check wholesale is enabled: Wholesale > Settings > Enable Wholesale
- Check registration is enabled: Wholesale > Settings > Enable Wholesale Registration
- Check the database has the application: the form at
/wholesale/registershould submit successfully
Customer didn't receive approval email
- Check email settings are configured in your
.envfile - Test email sending by creating a test order
- Check the customer's spam folder
- Check Admin > Platform Administration > Email logs (if email logging is enabled)
Settings Not Saving
Check file permissions:
bashchmod -R 775 storageClear config cache:
bashphp artisan config:clearCheck error logs:
bashtail -f storage/logs/laravel.log
Plugin Not Appearing in Admin
Check the folder name is exactly
ecommerce-wholesaleatplatform/plugins/ecommerce-wholesale/Check the E-commerce plugin is activated (Wholesale depends on it)
Clear cache:
bashphp artisan cache:clear php artisan config:clearCheck Botble CMS version is 7.6.0 or higher
Display Style Not Changing
- Clear all caches: Admin cache + browser cache
- Re-publish assets:bash
php artisan vendor:publish --tag=cms-public --force - Check for theme CSS conflicts: Your theme's CSS may override the pricing table styles. Use browser inspector (F12) to debug.
Database Issues
Verify tables exist
SHOW TABLES LIKE 'ws_%';Expected tables: ws_customer_groups, ws_customer_group_assignments, ws_group_pricing_rules, ws_product_moq, ws_product_visibility, ws_product_group_access, ws_wholesale_applications
Re-run migrations
php artisan migrateIf that doesn't work:
php artisan migrate:rollback --path=platform/plugins/ecommerce-wholesale/database/migrations
php artisan migrate --path=platform/plugins/ecommerce-wholesale/database/migrationsPerformance Issues
If product pages load slowly:
- Enable caching - Configure Redis or Memcached in your
.envfile - Remove unused pricing rules - Old or draft rules still get queried
- Clean up expired assignments - Expired group assignments add database queries
Advanced: Testing in Tinker
Test discount calculation
php artisan tinker$group = \Botble\EcommerceWholesale\Models\CustomerGroup::find(1);
echo "Discount: " . $group->calculateDiscount(100);
echo "Final price: " . $group->calculateFinalPrice(100);Test MOQ validation
$moq = \Botble\EcommerceWholesale\Models\ProductMOQ::where('product_id', 1)->first();
echo "Is 15 valid? " . ($moq->isValidQuantity(15) ? 'Yes' : 'No');
echo "Next valid: " . $moq->getNextValidQuantity(15);Getting Support
Before contacting support, gather:
- Botble CMS version and Wholesale plugin version (check at Admin > Plugins)
- PHP version
- Screenshot of the issue
- Relevant entries from
storage/logs/laravel.log - Steps to reproduce the issue
Contact:
- Support Tickets: botble.ticksy.com
- Email: [email protected]
