Adding a view cart link to the checkout trail.
This commit is contained in:
parent
d595e55fd9
commit
a2e347e7af
3 changed files with 11 additions and 1 deletions
|
|
@ -20,7 +20,9 @@ WebGUI::Session::open("../..",$configFile);
|
|||
|
||||
#--------------------------------------------
|
||||
print "\tUpdating Commerce Templates\n" unless ($quiet);
|
||||
my $template = '<a href="<tmpl_var changePayment.url>"><tmpl_var changePayment.label></a> · <a href="<tmpl_var changeShipping.url>"><tmpl_var changeShipping.label></a><br>
|
||||
my $template = '<a href="<tmpl_var viewShoppingCart.url>"><tmpl_var viewShoppingCart.label></a> ·
|
||||
<a href="<tmpl_var changePayment.url>"><tmpl_var changePayment.label></a> ·
|
||||
<a href="<tmpl_var changeShipping.url>"><tmpl_var changeShipping.label></a><br>
|
||||
<br>
|
||||
|
||||
<tmpl_var title><br>
|
||||
|
|
|
|||
|
|
@ -180,6 +180,8 @@ sub www_checkoutConfirm {
|
|||
$var{'changePayment.label'} = $i18n->get('change payment gateway');
|
||||
$var{'changeShipping.url'} = WebGUI::URL::page('op=selectShippingMethod');
|
||||
$var{'changeShipping.label'} = $i18n->get('change shipping method');
|
||||
$var{'viewShoppingCart.url'} = WebGUI::URL::page('op=viewCart');
|
||||
$var{'viewShoppingCart.label'} = $i18n->get('view shopping cart');
|
||||
|
||||
return WebGUI::Operation::Shared::userStyle(WebGUI::Asset::Template->new($session{setting}{commerceConfirmCheckoutTemplateId})->process(\%var));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -485,6 +485,12 @@ A radio button tied to this plugin.<br>
|
|||
lastUpdated => 0,
|
||||
context => q|List transactions label|
|
||||
},
|
||||
'view shopping cart' => {
|
||||
message => q|View shopping cart|,
|
||||
lastUpdated => 0,
|
||||
context => q|The label for the view shopping cart link in the confirm checkout screen.|
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue