Made the shopping cart support dynamic item plugins
This commit is contained in:
parent
07cab9a1de
commit
2db563c1cf
2 changed files with 6 additions and 0 deletions
|
|
@ -9,6 +9,8 @@
|
||||||
- fix: Media Folder (perlDreamer Consulting, LLC)
|
- fix: Media Folder (perlDreamer Consulting, LLC)
|
||||||
- fix: Cannot save new content filters.
|
- fix: Cannot save new content filters.
|
||||||
- fix: Cannot delete content filter.
|
- fix: Cannot delete content filter.
|
||||||
|
- change: adapted WebGUI::Commerce::ShoppingCart to make it capable of
|
||||||
|
handling dynamic item plugins. (Martin Kamerbeek / Oqapi)
|
||||||
|
|
||||||
7.3.4
|
7.3.4
|
||||||
- fix: SQLForm - cannot add new asset (Martin Kamerbeek / Oqapi)
|
- fix: SQLForm - cannot add new asset (Martin Kamerbeek / Oqapi)
|
||||||
|
|
|
||||||
|
|
@ -81,6 +81,10 @@ sub add {
|
||||||
$item = WebGUI::Commerce::Item->new($self->session,$itemId, $itemType);
|
$item = WebGUI::Commerce::Item->new($self->session,$itemId, $itemType);
|
||||||
return "" unless ($item->available);
|
return "" unless ($item->available);
|
||||||
|
|
||||||
|
# Fetch the itemId from the item plugin in stead of the given parameter.
|
||||||
|
# This allows item plugins to dynamically create new items.
|
||||||
|
$itemId = $item->id;
|
||||||
|
|
||||||
$self->{_items}{$itemId."_".$itemType} = {
|
$self->{_items}{$itemId."_".$itemType} = {
|
||||||
itemId => $itemId,
|
itemId => $itemId,
|
||||||
itemType => $itemType,
|
itemType => $itemType,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue