From 0853a95873644063afd3f1c24e686789a0f66b08 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Wed, 30 Jun 2010 10:29:15 -0700 Subject: [PATCH] Document per-item cart template variables relating to taxes. --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Help/Shop.pm | 16 ++++++++++++++++ lib/WebGUI/i18n/English/Shop.pm | 24 ++++++++++++++++++++++++ 3 files changed, 41 insertions(+) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index e3dc11f5c..58a868c3f 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -1,5 +1,6 @@ 7.9.9 - fixed #11693: Shopping cart does not show for visitor user + - fixed: missing per-item template variables for the cart. 7.9.8 - fixed #11651: First Day of Week is a string... diff --git a/lib/WebGUI/Help/Shop.pm b/lib/WebGUI/Help/Shop.pm index ed52cf3a2..9151f1ca4 100644 --- a/lib/WebGUI/Help/Shop.pm +++ b/lib/WebGUI/Help/Shop.pm @@ -113,6 +113,22 @@ our $HELP = { name => "shippingAddress", description => "shippingAddress help", }, + { + name => "taxRate", + description => "item taxRate help", + }, + { + name => "taxAmount", + description => "item taxAmount help", + }, + { + name => "pricePlusTax", + description => "item pricePlusTax help", + }, + { + name => "extendedPricePlusTax", + description => "item extendedPricePlusTax help", + }, ], }, { diff --git a/lib/WebGUI/i18n/English/Shop.pm b/lib/WebGUI/i18n/English/Shop.pm index b0ec35b96..2a0780cbd 100644 --- a/lib/WebGUI/i18n/English/Shop.pm +++ b/lib/WebGUI/i18n/English/Shop.pm @@ -1989,6 +1989,30 @@ our $I18N = { context => q|Template variable help| }, + 'item taxRate help' => { + message => q|The tax rate for this item. This variable will only be populated if the current user is not Visitor.|, + lastUpdated => 0, + context => q|Template variable help| + }, + + 'item taxAmount help' => { + message => q|The amount of tax for this item. This variable will only be populated if the current user is not Visitor.|, + lastUpdated => 0, + context => q|Template variable help| + }, + + 'item pricePlusTax help' => { + message => q|The amount of tax plus the price for this item. This variable will only be populated if the current user is not Visitor.|, + lastUpdated => 0, + context => q|Template variable help| + }, + + 'item extendedPricePlusTax help' => { + message => q|The amount of tax plus the price for this item, times the quantity of this item in the cart. This variable will only be populated if the current user is not Visitor.|, + lastUpdated => 0, + context => q|Template variable help| + }, + }; 1;