fixed more c2 bugs
added a workflow activity that removes EMS items from the cart if they've been in there too long
This commit is contained in:
parent
7e4e7898c0
commit
02c24aa44a
7 changed files with 128 additions and 3 deletions
|
|
@ -502,7 +502,7 @@ Update the cart and then redirect the user to the payment gateway screen.
|
|||
|
||||
=cut
|
||||
|
||||
sub www_continueShopping {
|
||||
sub www_checkout {
|
||||
my $self = shift;
|
||||
$self->updateFromForm;
|
||||
if ($error{id $self} ne "") {
|
||||
|
|
@ -643,7 +643,7 @@ sub www_view {
|
|||
formFooter => WebGUI::Form::formFooter($session),
|
||||
updateButton => WebGUI::Form::submit($session, {value=>$i18n->get("update cart button")}),
|
||||
checkoutButton => WebGUI::Form::submit($session, {value=>$i18n->get("checkout button"),
|
||||
extras=>q|onclick="this.form.shop.value='pay';this.form.method.value='selectPaymentGateway';this.form.submit;"|}),
|
||||
extras=>q|onclick="this.form.method.value='checkout';this.form.submit;"|}),
|
||||
continueShoppingButton => WebGUI::Form::submit($session, {value=>$i18n->get("continue shopping button"),
|
||||
extras=>q|onclick="this.form.method.value='continueShopping';this.form.submit;"|}),
|
||||
chooseShippingButton => WebGUI::Form::submit($session, {value=>$i18n->get("choose shipping button"),
|
||||
|
|
|
|||
|
|
@ -160,6 +160,7 @@ Returns the WebGUI::Shop::Address object that is attached to this item for shipp
|
|||
sub getShippingAddress {
|
||||
my $self = shift;
|
||||
my $addressId = $self->get("shippingAddressId") || $self->cart->get("shippingAddressId");
|
||||
$self->cart->session->errorHandler->warn("address id: ". $addressId);
|
||||
return $self->cart->getAddressBook->getAddress($addressId);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -502,7 +502,7 @@ sub processTransaction {
|
|||
if ($success) {
|
||||
$transaction->completePurchase($transactionCode, $statusCode, $statusMessage);
|
||||
$cart->onCompletePurchase;
|
||||
$self->sendNotifications($transaction);
|
||||
# $self->sendNotifications($transaction);
|
||||
}
|
||||
else {
|
||||
$transaction->denyPurchase($transactionCode, $statusCode, $statusMessage);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue