From ab895904e3bfd44a5572474fa949d68e3adc06a4 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Mon, 5 May 2008 23:16:00 +0000 Subject: [PATCH] Help for the variant template variables in the Product template. --- lib/WebGUI/Help/Asset_Product.pm | 12 ++++++ lib/WebGUI/i18n/English/Asset_Product.pm | 47 +++++++++++++++++++++++- 2 files changed, 58 insertions(+), 1 deletion(-) diff --git a/lib/WebGUI/Help/Asset_Product.pm b/lib/WebGUI/Help/Asset_Product.pm index 39d3a8ea1..6ce73bdb2 100644 --- a/lib/WebGUI/Help/Asset_Product.pm +++ b/lib/WebGUI/Help/Asset_Product.pm @@ -43,6 +43,18 @@ our $HELP = { { 'name' => 'benefit_loop', 'variables' => [ { 'name' => 'benefit.benefit' }, { 'name' => 'benefit.controls' } ] }, + { 'name' => 'addvariant.url' }, + { 'name' => 'addvariant.label' }, + { 'name' => 'variant_loop', + 'variables' => [ + { 'name' => 'variant.controls' }, + { 'name' => 'variant.sku' }, + { 'name' => 'variant.title' }, + { 'name' => 'variant.price' }, + { 'name' => 'variant.weight' }, + { 'name' => 'variant.quantity' }, + ] + }, { 'name' => 'addspecification.url' }, { 'name' => 'addspecification.label' }, { 'name' => 'specification_loop', diff --git a/lib/WebGUI/i18n/English/Asset_Product.pm b/lib/WebGUI/i18n/English/Asset_Product.pm index 20709e910..822112ee4 100644 --- a/lib/WebGUI/i18n/English/Asset_Product.pm +++ b/lib/WebGUI/i18n/English/Asset_Product.pm @@ -699,7 +699,52 @@ be useful, others may not.|, 'variants' => { message => q|Variants|, - lastUpdated => 1210019655 + lastUpdated => 1210019655, + }, + + 'addvariant.url' => { + message => q|A URL to allow new variants to be added to this product.|, + lastUpdated => 1210029266, + }, + + 'addvariant.label' => { + message => q|The translated label for the add variant link.|, + lastUpdated => 1210029266, + }, + + 'variant_loop' => { + message => q|A loop containing all the variants for this product.|, + lastUpdated => 1210029452, + }, + + 'variant.controls' => { + message => q|An icon toolbar for editing, deleting, or reordering this variant.|, + lastUpdated => 1210029452, + }, + + 'variant.sku' => { + message => q|The SKU for this variant.|, + lastUpdated => 1210029452, + }, + + 'variant.title' => { + message => q|The title, or short description, for this variant.|, + lastUpdated => 1210029452, + }, + + 'variant.price' => { + message => q|The price for this variant.|, + lastUpdated => 1210029452, + }, + + 'variant.weight' => { + message => q|The weight for this variant.|, + lastUpdated => 1210029452, + }, + + 'variant.quantity' => { + message => q|The quantity for this variant.|, + lastUpdated => 1210029452, }, };