Added an asset called Shelf, which allows you to create categories of Skus.

This commit is contained in:
JT Smith 2008-04-29 01:26:45 +00:00
parent e9853fdf5c
commit 82056c66aa
10 changed files with 266 additions and 29 deletions

View file

@ -25,7 +25,9 @@
amounts of money using the new commerce system.
- Merged all the old shipping plugins into one "Flat Rate" shipping plugin.
See gotchas.
- rfe: Colorize Buttons on EMS
- fix: Fwd: lazy guys bug report about the product system
- Added an asset called Shelf, which allows you to create categories of Skus.
- fix: Processing a Cash/Check Order
- Rewrote Event Manager fromthe ground up.
- Added WebGUI.str javascript class with sprintf and trim methods.

View file

@ -45,6 +45,7 @@ migrateOldProduct($session);
mergeProductsWithCommerce($session);
addCaptchaToDataForm( $session );
addArchiveEnabledToCollaboration( $session );
addShelf( $session );
finish($session); # this line required
@ -60,6 +61,24 @@ sub addArchiveEnabledToCollaboration {
print "DONE!\n" unless $quiet;
}
#----------------------------------------------------------------------------
sub addShelf {
my $session = shift;
print "\tAdding Shelves" unless $quiet;
$session->db->write(q{
create table Shelf (
assetId varchar(22) binary not null,
revisionDate bigint,
templateId varchar(22) binary not null default 'nFen0xjkZn8WkpM93C9ceQ',
primary key (assetId,revisionDate)
)
});
$session->config->addToArray("assetContainers","WebGUI::Asset::Wobject::Shelf");
print "DONE!\n" unless $quiet;
}
#----------------------------------------------------------------------------
# Add the useCaptcha field to DataForm assets
sub addCaptchaToDataForm {