add missing template variable help for the MiniCart macro
This commit is contained in:
parent
99eb45695a
commit
fcf53d7bde
2 changed files with 92 additions and 0 deletions
35
lib/WebGUI/Help/Macro_MiniCart.pm
Normal file
35
lib/WebGUI/Help/Macro_MiniCart.pm
Normal file
|
|
@ -0,0 +1,35 @@
|
||||||
|
package WebGUI::Help::Macro_MiniCart;
|
||||||
|
|
||||||
|
use strict;
|
||||||
|
|
||||||
|
our $HELP = {
|
||||||
|
'template variables' => {
|
||||||
|
title => 'minicart title',
|
||||||
|
body => '',
|
||||||
|
fields => [],
|
||||||
|
variables => [
|
||||||
|
{
|
||||||
|
name => 'items',
|
||||||
|
variables => [
|
||||||
|
{
|
||||||
|
name => 'name',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name => 'quantity',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name => 'price',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name => 'url',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
related => [
|
||||||
|
],
|
||||||
|
},
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
1; ##All perl modules must return true
|
||||||
57
lib/WebGUI/i18n/English/Macro_MiniCart.pm
Normal file
57
lib/WebGUI/i18n/English/Macro_MiniCart.pm
Normal file
|
|
@ -0,0 +1,57 @@
|
||||||
|
package WebGUI::i18n::English::Macro_MiniCart;
|
||||||
|
|
||||||
|
use strict;
|
||||||
|
|
||||||
|
our $I18N = {
|
||||||
|
|
||||||
|
'minicart title' => {
|
||||||
|
message => q|MiniCart Macro Template Variables|,
|
||||||
|
lastUpdated => 0,
|
||||||
|
context => q|Title for the MiniCart template variables page|
|
||||||
|
},
|
||||||
|
|
||||||
|
'items' => {
|
||||||
|
message => q|A loop containing some information about all items currently in the cart.|,
|
||||||
|
lastUpdated => 0,
|
||||||
|
context => q|Template variable.|
|
||||||
|
},
|
||||||
|
|
||||||
|
'name' => {
|
||||||
|
message => q|The configured title for the item.|,
|
||||||
|
lastUpdated => 0,
|
||||||
|
context => q|Template variable.|
|
||||||
|
},
|
||||||
|
|
||||||
|
'quantity' => {
|
||||||
|
message => q|The number of this item that are in the cart.|,
|
||||||
|
lastUpdated => 0,
|
||||||
|
context => q|Template variable.|
|
||||||
|
},
|
||||||
|
|
||||||
|
'price' => {
|
||||||
|
message => q|The unit price for this item.|,
|
||||||
|
lastUpdated => 0,
|
||||||
|
context => q|Template variable.|
|
||||||
|
},
|
||||||
|
|
||||||
|
'url' => {
|
||||||
|
message => q|A URL for viewing more detailed information about this item, from the Cart's viewItem screen.|,
|
||||||
|
lastUpdated => 0,
|
||||||
|
context => q|Template variable.|
|
||||||
|
},
|
||||||
|
|
||||||
|
'totalPrice' => {
|
||||||
|
message => q|The total price of all items in the cart, formatted to two decimal places.|,
|
||||||
|
lastUpdated => 0,
|
||||||
|
context => q|Template variable.|
|
||||||
|
},
|
||||||
|
|
||||||
|
'totalItems' => {
|
||||||
|
message => q|The total number of items in the cart.|,
|
||||||
|
lastUpdated => 0,
|
||||||
|
context => q|Template variable.|
|
||||||
|
},
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
1;
|
||||||
Loading…
Add table
Add a link
Reference in a new issue