Community Add-Ons

Maintainers: blucollarguy
Add file to this package
Top » Shipping Modules

MVS V1.0
for osCommerce Online Merchant v2.2

What this Contribution Does:
=============================

This contribution changes the way osCommerce handles shipping. You can now set the shipping
parameters for each product individually. All of the following (and more) are possible:

1. Most products ship by a selection of standard shipping methods, but certain large and heavy items
ship by truck.
2. Products ship from one of two or more locations.
3. Some products ship by a selection of standard shipping methods, some must ship by a specific
method, others ship directly from several different suppliers.
4. Any combination of the above.

You can have orders sent directly to your supplier in the case of products that are shipped directly
from that supplier.

All of the necessary settings are controlled in the admin panel. There is an Admin page to set up
each Vendor (or shipper, or shipping method). There is an Admin panel for setting shipping modules
for each vendor, similar to the Shipping Modules page in the current Admin. There is also a
configuration setting to turn this whole Contribution off if it is no longer needed. In Admin->Configuration->Shipping/Packaging.

Legend:  Download   Report
Expand All / Collapse All
USPS November 2007 capitalization fix iofast 3 Dec 2007  

In November of 2007, USPS changed their api return code from lower case to upper case. We believe this to be an error by USPS which has broken thousands of websites. For this reason, we will only post the text method to make this change and not provide a file or direct db change because we anticipate that it may change back despite USPS assurances that this unannounced change is now permanent.


In any case, for mvs, this is how you fix the problem:
/includes/modules/vendors_shipping/usps.php

change all cases of Express where is named ALONE, ie not Global Express Mail, to EXPRESS
change all cases of Priority where is named ALONE, ie not International Priority Mail, to PRIORITY
change all cases of First Class where is named ALONE, ie not First Class Mail International , to FIRST CLASS
change all cases of Parcel where is named ALONE, ie not International Parcel Post, to PARCEL

I can't list the exact locations for you because my usps.php file is changed, here is an example of a changed location

OLD:
CODE
$this->types = array('Express' => 'Express Mail',
'First Class' => 'First-Class Mail',
'Priority' => 'Priority Mail',
'Parcel' => 'Parcel Post');


NEW:
CODE
$this->types = array('EXPRESS' => 'Express Mail',
'FIRST CLASS' => 'First-Class Mail',
'PRIORITY' => 'Priority Mail',
'PARCEL' => 'Parcel Post');


After you make this change you STILL need to go in the DB and make some changes.

The first thing you need to do is unselect all but one of the USPS shipping options in the admin panel under USPS located under the Manage section for each vendor. We unselected all but Parcel as an example for each vendor. We then went into the table 'vendor_configuration' and edited all rows that match 'Domestic Shipping Methods' in the field 'configuration_title' and also shows USPS somewhere in the field of configuration_key. Once you have those rows ready to be edited in phpMyAdmin or your editor of choice upper case the values for the 'configuration_value' that you deselected. For example we changed our 'configuration_value' to

EXPRESS, PRIORITY, FIRST CLASS, Parcel

and make the same change to 'set_function' such as:

tep_cfg_select_multioption(array('EXPRESS', 'PRIORITY', 'FIRST CLASS', 'Parcel'),

Once these changes are made go back and enable the methods you just disabled and disable the method you left on. Now go back to your DB editor and change the final lower case term (Parcel in our example above) to upper case as we had done to the first the classes listed above.

Another Bugfix for MVS 1.1 /admin/includes/database_tables.php MediaHound 19 Sep 2007  
Bugfix for MVS V1.1 lemonis 30 Aug 2007  
UPSXML 1.2.6 for MVS kcornell 30 May 2007  
USPS May 14th Int'l Update iofast 14 May 2007  
/admin/vendors.php fix rapollon 5 Feb 2007  
MVS 1.0 free shipping add-in NancyL7 4 Jan 2007  
Canada Post 3.6 for MVS 1.1 MOD Viral 25 Nov 2006  
MVS 1.1 danielfunghi 27 Oct 2006  
MVS with Header Tags homeandfamily 21 Oct 2006  
Modified zones module PaulOB 3 Oct 2006  
Sales Report 2 for MVS naughtywheelz 29 Sep 2006  
TNT Australian PostCode Zone rates Bozmium 11 Jun 2006  
FedEx Freight Shipping module for MVS morphadaz 25 May 2006  
Airborne/DHL Shipping Module for MVS morphadaz 25 May 2006  
Individual Shipping v1.2 for MVS v.1.1 gr8sale 21 Apr 2006  
Fixed HTML in checkout_process PaulOB 10 Apr 2006  
MVS V1.1 blucollarguy 1 Apr 2006  
MVS V1.0 blucollarguy 26 Mar 2006