Add USPS International driver to configuration files.
This commit is contained in:
parent
6543ed5027
commit
acda103fed
2 changed files with 12 additions and 0 deletions
|
|
@ -30,6 +30,7 @@ my $quiet; # this line required
|
|||
|
||||
my $session = start(); # this line required
|
||||
fixPackageFlagOnOlder( $session );
|
||||
addUSPSInternationalShippingDriver( $session );
|
||||
|
||||
# upgrade functions go here
|
||||
|
||||
|
|
@ -45,6 +46,16 @@ finish($session); # this line required
|
|||
# print "DONE!\n" unless $quiet;
|
||||
#}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Describe what our function does
|
||||
sub addUSPSInternationalShippingDriver {
|
||||
my $session = shift;
|
||||
print "\tAdd the USPS International shipping driver... " unless $quiet;
|
||||
# and here's our code
|
||||
$session->config->addToArray('shippingDrivers', 'WebGUI::Shop::ShipDriver::USPSInternational');
|
||||
print "DONE!\n" unless $quiet;
|
||||
}
|
||||
|
||||
sub fixPackageFlagOnOlder {
|
||||
my $session = shift;
|
||||
print "\tFixing isPackage flag on folders and isDefault on templates from 7.6.35 to 7.7.17 upgrade. If default templates have been deleted from your site, you may see warnings about not being able to find assets. You may safely ignore those warnings. This entire process may take a while.. " unless $quiet;
|
||||
|
|
|
|||
|
|
@ -191,6 +191,7 @@
|
|||
"shippingDrivers" : [
|
||||
"WebGUI::Shop::ShipDriver::FlatRate",
|
||||
"WebGUI::Shop::ShipDriver::USPS",
|
||||
"WebGUI::Shop::ShipDriver::USPSInternational",
|
||||
"WebGUI::Shop::ShipDriver::UPS"
|
||||
],
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue