Add the shippingDrivers entry to the config file.
Have the update script remove the old shipping plugin and add the new shipping driver entry to config files. Tests for Ship.t. getDrivers and some "new" code for Shop::Ship.
This commit is contained in:
parent
06e902c019
commit
f2c0a672f4
4 changed files with 141 additions and 7 deletions
|
|
@ -28,6 +28,7 @@ insertCommerceTaxTable($session);
|
|||
insertCommerceShipDriverTable($session);
|
||||
migrateToNewCart($session);
|
||||
createSkuAsset($session);
|
||||
addShippingDrivers($session);
|
||||
|
||||
finish($session); # this line required
|
||||
|
||||
|
|
@ -108,6 +109,15 @@ EOSQL
|
|||
|
||||
}
|
||||
|
||||
#-------------------------------------------------
|
||||
sub addShippingDrivers {
|
||||
my $session = shift;
|
||||
print "\tSet up the default shipping.\n" unless ($quiet);
|
||||
# and here's our code
|
||||
$session->config->delete('shippingPlugins');
|
||||
$session->config->addToArray('shippingDrivers', 'WebGUI::Shop::ShipDriver::FlatRate');
|
||||
}
|
||||
|
||||
|
||||
# --------------- DO NOT EDIT BELOW THIS LINE --------------------------------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue