Merge branch 'master' of git@github.com:plainblack/webgui
This commit is contained in:
commit
4278058c3c
30 changed files with 1549 additions and 58 deletions
BIN
docs/upgrades/packages-7.8.5/css.wgpkg
Normal file
BIN
docs/upgrades/packages-7.8.5/css.wgpkg
Normal file
Binary file not shown.
BIN
docs/upgrades/packages-7.8.5/root_import_style.wgpkg
Normal file
BIN
docs/upgrades/packages-7.8.5/root_import_style.wgpkg
Normal file
Binary file not shown.
BIN
docs/upgrades/packages-7.8.5/style_01.wgpkg
Normal file
BIN
docs/upgrades/packages-7.8.5/style_01.wgpkg
Normal file
Binary file not shown.
BIN
docs/upgrades/packages-7.8.5/style_02.wgpkg
Normal file
BIN
docs/upgrades/packages-7.8.5/style_02.wgpkg
Normal file
Binary file not shown.
BIN
docs/upgrades/packages-7.8.5/style_03.wgpkg
Normal file
BIN
docs/upgrades/packages-7.8.5/style_03.wgpkg
Normal file
Binary file not shown.
|
|
@ -32,7 +32,8 @@ my $session = start(); # this line required
|
|||
fixPackageFlagOnOlder( $session );
|
||||
addEMSSubmissionTables($session);
|
||||
configEMSActivities($session);
|
||||
|
||||
removeOldWebGUICSS($session);
|
||||
addUSPSInternationalShippingDriver( $session );
|
||||
|
||||
# upgrade functions go here
|
||||
|
||||
|
|
@ -48,6 +49,19 @@ finish($session); # this line required
|
|||
# print "DONE!\n" unless $quiet;
|
||||
#}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Describe what our function does
|
||||
sub removeOldWebGUICSS {
|
||||
my $session = shift;
|
||||
print "\tRemoving the old webgui.css file... " unless $quiet;
|
||||
my $snippet = WebGUI::Asset->newByDynamicClass($session, 'PcRRPhh-0KfvLLNIPdxJTw');
|
||||
if ($snippet) {
|
||||
$snippet->purge;
|
||||
}
|
||||
# and here's our code
|
||||
print "DONE!\n" unless $quiet;
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Describe what our function does
|
||||
sub configEMSActivities {
|
||||
|
|
@ -160,6 +174,14 @@ ENDSQL
|
|||
}
|
||||
|
||||
|
||||
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue