From 48d6b63d8ee9080e22686d92b3ce3757b5444f70 Mon Sep 17 00:00:00 2001 From: montes Date: Fri, 7 Dec 2012 23:24:41 +0100 Subject: [PATCH] Fixed variable typo (redution instead of reduction in some places) --- themes/default/mobile/js/product.js | 2 +- themes/default/mobile/product-js.tpl | 6 +++--- themes/default/product.tpl | 16 ++++++++-------- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/themes/default/mobile/js/product.js b/themes/default/mobile/js/product.js index 4e6627370..55df1cb39 100644 --- a/themes/default/mobile/js/product.js +++ b/themes/default/mobile/js/product.js @@ -64,7 +64,7 @@ var ProductFn = (function() productShowPrice: '0', productUnitPriceRatio: '', - productPriceWithoutRedution: '', + productPriceWithoutReduction: '', productPrice: '', // Customizable field diff --git a/themes/default/mobile/product-js.tpl b/themes/default/mobile/product-js.tpl index 2a3b44179..902cae570 100644 --- a/themes/default/mobile/product-js.tpl +++ b/themes/default/mobile/product-js.tpl @@ -74,13 +74,13 @@ function initProductPage() {if !$priceDisplay || $priceDisplay == 2} {assign var='productPrice' value=$product->getPrice(true, $smarty.const.NULL, 2)} - {assign var='productPriceWithoutRedution' value=$product->getPriceWithoutReduct(false, $smarty.const.NULL)} + {assign var='productPriceWithoutReduction' value=$product->getPriceWithoutReduct(false, $smarty.const.NULL)} {elseif $priceDisplay == 1} {assign var='productPrice' value=$product->getPrice(false, $smarty.const.NULL, 2)} - {assign var='productPriceWithoutRedution' value=$product->getPriceWithoutReduct(true, $smarty.const.NULL)} + {assign var='productPriceWithoutReduction' value=$product->getPriceWithoutReduct(true, $smarty.const.NULL)} {/if} - ProductFn.productPriceWithoutRedution = '{$productPriceWithoutRedution}'; + ProductFn.productPriceWithoutReduction = '{$productPriceWithoutReduction}'; ProductFn.productPrice = '{$productPrice}'; // Customizable field diff --git a/themes/default/product.tpl b/themes/default/product.tpl index f0ef96146..69ef82871 100644 --- a/themes/default/product.tpl +++ b/themes/default/product.tpl @@ -74,13 +74,13 @@ var stock_management = {$stock_management|intval}; {/if} {if !$priceDisplay || $priceDisplay == 2} {assign var='productPrice' value=$product->getPrice(true, $smarty.const.NULL, $priceDisplayPrecision)} - {assign var='productPriceWithoutRedution' value=$product->getPriceWithoutReduct(false, $smarty.const.NULL)} + {assign var='productPriceWithoutReduction' value=$product->getPriceWithoutReduct(false, $smarty.const.NULL)} {elseif $priceDisplay == 1} {assign var='productPrice' value=$product->getPrice(false, $smarty.const.NULL, $priceDisplayPrecision)} - {assign var='productPriceWithoutRedution' value=$product->getPriceWithoutReduct(true, $smarty.const.NULL)} + {assign var='productPriceWithoutReduction' value=$product->getPriceWithoutReduct(true, $smarty.const.NULL)} {/if} -var productPriceWithoutRedution = '{$productPriceWithoutRedution}'; +var productPriceWithoutReduction = '{$productPriceWithoutReduction}'; var productPrice = '{$productPrice}'; // Customizable field @@ -370,10 +370,10 @@ var fieldRequired = '{l s='Please fill in all required fields, then save the cus
{if !$priceDisplay || $priceDisplay == 2} {assign var='productPrice' value=$product->getPrice(true, $smarty.const.NULL, $priceDisplayPrecision)} - {assign var='productPriceWithoutRedution' value=$product->getPriceWithoutReduct(false, $smarty.const.NULL)} + {assign var='productPriceWithoutReduction' value=$product->getPriceWithoutReduct(false, $smarty.const.NULL)} {elseif $priceDisplay == 1} {assign var='productPrice' value=$product->getPrice(false, $smarty.const.NULL, $priceDisplayPrecision)} - {assign var='productPriceWithoutRedution' value=$product->getPriceWithoutReduct(true, $smarty.const.NULL)} + {assign var='productPriceWithoutReduction' value=$product->getPriceWithoutReduct(true, $smarty.const.NULL)} {/if}

@@ -388,7 +388,7 @@ var fieldRequired = '{l s='Please fill in all required fields, then save the cus {if $product->on_sale} {l s='On sale'} {l s='On sale!'} - {elseif $product->specificPrice AND $product->specificPrice.reduction AND $productPriceWithoutRedution > $productPrice} + {elseif $product->specificPrice AND $product->specificPrice.reduction AND $productPriceWithoutReduction > $productPrice} {l s='Reduced price!'} {/if} {if $priceDisplay == 2} @@ -401,8 +401,8 @@ var fieldRequired = '{l s='Please fill in all required fields, then save the cus {if $product->specificPrice AND $product->specificPrice.reduction}

{if $priceDisplay >= 0 && $priceDisplay <= 2} - {if $productPriceWithoutRedution > $productPrice} - {convertPrice price=$productPriceWithoutRedution} + {if $productPriceWithoutReduction > $productPrice} + {convertPrice price=$productPriceWithoutReduction}