| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Minimum wholesale subtotal mod | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
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:
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:
__________________
Bullfrog ~~~ X-Cart Gold v4.7.2 (2) v4.7.8. ⌠If the road is easy, you're likely going the wrong way.■ ― Terry Goodkind |
|||||||||
|
|
|||
X-Cart forums © 2001-2020
|