stoopid
This commit is contained in:
parent
4bce254385
commit
d503ab53f9
1 changed files with 1 additions and 2 deletions
|
|
@ -2109,8 +2109,7 @@ Method to remove some items from the cart
|
|||
sub removePurchaseFromCart {
|
||||
my $self = shift;
|
||||
my $purchaseId = shift;
|
||||
my $badgeId = shift;
|
||||
my @eventsToSubtract = $self->session->db->buildArray("select r.productId from EventManagementSystem_registrations as r, EventManagementSystem_purchases as p where r.purchaseId=? and (p.transactionId='' or p.transactionId is null) and p.purchaseId=r.purchaseId and r.badgeId=?",[$purchaseId,$badgeId]);
|
||||
my @eventsToSubtract = $self->session->db->buildArray("select r.productId from EventManagementSystem_registrations as r, EventManagementSystem_purchases as p where r.purchaseId=? and (p.transactionId='' or p.transactionId is null) and p.purchaseId=r.purchaseId",[$purchaseId]);
|
||||
my $shoppingCart = WebGUI::Commerce::ShoppingCart->new($self->session);
|
||||
my ($items, $nothing) = $shoppingCart->getItems;
|
||||
foreach my $event (@eventsToSubtract) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue