Charge No Wholesale Shipping
To disable shipping for wholesale vendors, you can modify your system (version 2.72) as follows. Please note that Mals must be set to use units in the shipping method for this to work.
-
Make sure your Mals shipping type is unit based. IMPORTANT! All new taxable products will need a unit value added as well.
-
Open the order.php page in the /go/ folder.
-
At the very bottom of the file, find the line:
$gotolink .= "&units=$units";
and just above that, add:
if ($wsemail AND $_COOKIE['wspass'] AND !$regid AND $wsdiscount > 0 AND $wsnum == 1) $gotolink .= "&units=0"; else
-
Select the 'Cart Setup' tab in Mals.
-
Choose your shipping setup and make sure that you use a shipping type that utilizes 'units', such as Option 3, 5 or 7. (You cannot check the 'set units equal to price' box.)
Variations: If you wish, you can change the shipping units to be a percent of the retail units. Just keep in mind that this will affect every wholesale item in your store. For instance, if you would like to submit half the number of units per item for each wholesale vendor, you could use:
if ($wsemail AND $_COOKIE['wspass'] AND !$regid AND $wsdiscount > 0 AND $wsnum == 1)
{
$newunits = $units/2;
$gotolink .= "&units=$newunits";
}
else
In the order.php page. Please test your items thoroughly if making the above modification, as this will affect every item on your site.