
Originally Posted by
BlessIsaacola
I am not sure how your tool is going to help me. USPS, FedEx and UPS are already part of the mc_shipping_methods. However, by default you offer some shipping options that our site doesn't offer and you do not offer some shipping options that your default offers. For example Parcel Post and Library rate are offer by default and we don't want that.
When I comment a line using // I get error.
bless, perhaps u are commenting wrongly
this is the actual code for usps
PHP Code:
array('usps' => array( 'domestic_types' =>
array( 'Express' => 'Express Mail',
'First Class' => 'First-Class Mail',
'Priority' => 'Priority Mail',
'Parcel' => 'Parcel Post',
'BPM' => 'Bound Printed Material',
'Library' => 'Library'),
'international_types' =>
array( 'GXG Document' => 'Global Express Guaranteed Document Service',
'GXG Non-Document' => 'Global Express Guaranteed Non-Document Service',
'Express' => 'Global Express Mail (EMS)',
'Priority Lg' => 'Global Priority Mail - Flat-rate Envelope (large)',
'Priority Sm' => 'Global Priority Mail - Flat-rate Envelope (small)',
'Priority Var' => 'Global Priority Mail - Variable Weight Envelope (single)',
'Airmail Letter' => 'Airmail Letter Post',
'Airmail Parcel' => 'Airmail Parcel Post',
'Surface Letter' => 'Economy (Surface) Letter Post',
'Surface Post' => 'Economy (Surface) Parcel Post')
),
and this is the correct way you should comment parcel and library
PHP Code:
array('usps' => array( 'domestic_types' =>
array( 'Express' => 'Express Mail',
'First Class' => 'First-Class Mail',
'Priority' => 'Priority Mail',
// 'Parcel' => 'Parcel Post',
'BPM' => 'Bound Printed Material' //,
// 'Library' => 'Library'
),
'international_types' =>
array( 'GXG Document' => 'Global Express Guaranteed Document Service',
'GXG Non-Document' => 'Global Express Guaranteed Non-Document Service',
'Express' => 'Global Express Mail (EMS)',
'Priority Lg' => 'Global Priority Mail - Flat-rate Envelope (large)',
'Priority Sm' => 'Global Priority Mail - Flat-rate Envelope (small)',
'Priority Var' => 'Global Priority Mail - Variable Weight Envelope (single)',
'Airmail Letter' => 'Airmail Letter Post',
'Airmail Parcel' => 'Airmail Parcel Post',
'Surface Letter' => 'Economy (Surface) Letter Post',
'Surface Post' => 'Economy (Surface) Parcel Post')
),
note that for parcel you just need just to comment that line, but in library, as it is the las one in the array, you should comment it, but not comment the last and erase or comment the previous this way, the structure of the multiarray is still valid
hope this helps, ill figure out a way to create a script to add and remove in an easier way methods...
ropu
Bookmarks