Minimum wholesale subtotal mod
Sellers in wholesale almost always have a minimum order requirement, but X-Cart 4.x has no setting for that.
This mod takes the built-in minimum order setting for all customers and uses it for wholesale customers only. One line of code is added to include/checkout.php. The minimum for retail buyers becomes fixed at zero, and the minimum for wholesale buyers is whatever you enter in Settings-->General settings-->('Purchase limitations' section) Check to confirm that both Wholesale membership and the Wholesale module are both enabled. Back up include/checkout.php, then open to edit and find (may be line 50) Code:
&& $config['General']['minimal_order_amount'] > 0 Quote:
"2" is the default membershipid number for 'Wholesale'. If adding the line above does not work, export MEMBERSHIPS, open to view and see if the number is still 2. If not, change to number to actual. Because this mod changes the meaning of the minimum order subtotal, I used Webmaster mode to edit the text where the setting is made. On the General Settings page, below the heading "Purchase limitation", I changed the text for the first two options to be: Quote:
|
All times are GMT -8. The time now is 08:35 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.