From acda103fed972d4415b7a6995e1fdd6f246ca175 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Fri, 6 Nov 2009 19:49:20 -0800 Subject: [PATCH] Add USPS International driver to configuration files. --- docs/upgrades/upgrade_7.8.4-7.8.5.pl | 11 +++++++++++ etc/WebGUI.conf.original | 1 + 2 files changed, 12 insertions(+) diff --git a/docs/upgrades/upgrade_7.8.4-7.8.5.pl b/docs/upgrades/upgrade_7.8.4-7.8.5.pl index 1a027df9e..0931252e2 100644 --- a/docs/upgrades/upgrade_7.8.4-7.8.5.pl +++ b/docs/upgrades/upgrade_7.8.4-7.8.5.pl @@ -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; diff --git a/etc/WebGUI.conf.original b/etc/WebGUI.conf.original index 229ea13bb..46fbddd80 100644 --- a/etc/WebGUI.conf.original +++ b/etc/WebGUI.conf.original @@ -191,6 +191,7 @@ "shippingDrivers" : [ "WebGUI::Shop::ShipDriver::FlatRate", "WebGUI::Shop::ShipDriver::USPS", + "WebGUI::Shop::ShipDriver::USPSInternational", "WebGUI::Shop::ShipDriver::UPS" ],