created donation asset
This commit is contained in:
parent
a61ab090ee
commit
4a73cadf64
12 changed files with 353 additions and 22 deletions
|
|
@ -2,6 +2,11 @@ Commerce merge
|
|||
- The getEditForm code was refactored out of WebGUI::Workflow::Activity and
|
||||
put into WebGUI::HTMLForm. Now any WebGUI code can dynamically generate
|
||||
tabless forms.
|
||||
- Rewrote the commerce system from the ground up.
|
||||
- Added a new donation asset which allows visitors to donate arbitrary
|
||||
amounts of money using the new commerce system.
|
||||
- Merged all the old shipping plugins into one "Flat Rate" shipping plugin.
|
||||
See gotchas.
|
||||
|
||||
7.5.3
|
||||
- prevent HTML and Macro injection in usernames
|
||||
|
|
|
|||
|
|
@ -7,6 +7,16 @@ upgrading from one version to the next, or even between multiple
|
|||
versions. Be sure to heed the warnings contained herein as they will
|
||||
save you many hours of grief.
|
||||
|
||||
Commerce Merge
|
||||
--------------------------------------------------------------------
|
||||
* The commerce system was completely rewritten. As such you will need
|
||||
to tweak some settings to get commerce back up and running.
|
||||
|
||||
* Shipping configurations are going to be lost when you upgrade. You'll
|
||||
need to set up a shipping option if you're using the commerce system.
|
||||
|
||||
|
||||
|
||||
7.5.1
|
||||
--------------------------------------------------------------------
|
||||
* There was a corrupt template in a package for the 7.5.0 upgrade.
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -28,20 +28,38 @@ insertCommerceTaxTable($session);
|
|||
insertCommerceShipDriverTable($session);
|
||||
migrateToNewCart($session);
|
||||
createSkuAsset($session);
|
||||
createDonationAsset($session);
|
||||
addShippingDrivers($session);
|
||||
|
||||
finish($session); # this line required
|
||||
|
||||
|
||||
#-------------------------------------------------
|
||||
sub createDonationAsset {
|
||||
my $session = shift;
|
||||
print "\tInstall Donation asset.\n" unless ($quiet);
|
||||
$session->db->write("create table donation (
|
||||
assetId varchar(22) binary not null,
|
||||
revisionDate bigint not null,
|
||||
defaultPrice float not null default 100.00,
|
||||
thankYouMessage mediumtext,
|
||||
templateId varchar(22) binary not null,
|
||||
primary key (assetId, revisionDate)
|
||||
)");
|
||||
$session->config->addToArray("assets","WebGUI::Asset::Sku::Donation");
|
||||
}
|
||||
|
||||
#-------------------------------------------------
|
||||
sub createSkuAsset {
|
||||
my $session = shift;
|
||||
print "\tCreate SKU asset.\n" unless ($quiet);
|
||||
print "\tInstall SKU asset.\n" unless ($quiet);
|
||||
$session->db->write("create table sku (
|
||||
assetId varchar(22) binary not null,
|
||||
revisionDate bigint not null,
|
||||
description mediumtext,
|
||||
sku varchar(35) binary not null,
|
||||
salesAgentId varchar(22) binary,
|
||||
displayTitle int not null default 1,
|
||||
overrideTaxRate int not null default 0,
|
||||
taxRateOverride float not null default 0.00,
|
||||
primary key (assetId, revisionDate),
|
||||
|
|
@ -66,6 +84,7 @@ sub migrateToNewCart {
|
|||
cartId varchar(22) binary not null,
|
||||
assetId varchar(22) binary not null,
|
||||
options mediumtext,
|
||||
configuredTitle varchar(255),
|
||||
shippingAddressId varchar(22) binary,
|
||||
quantity integer not null default 1,
|
||||
index cartId_assetId (cartId,assetId)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue