From fd44c5422a10a6e7b64980bbc5f0f9a4fb2f586f Mon Sep 17 00:00:00 2001 From: dSevere Date: Thu, 15 Dec 2011 14:08:20 +0000 Subject: [PATCH] // bug fix on cart button disply in frotn office --- themes/default/product.tpl | 37 ++++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/themes/default/product.tpl b/themes/default/product.tpl index 7cb9e330f..d9facbaa1 100644 --- a/themes/default/product.tpl +++ b/themes/default/product.tpl @@ -222,7 +222,7 @@ var fieldRequired = '{l s='Please fill in all required fields, then save the cus

{$product->name|escape:'htmlall':'UTF-8'}

- + {if $product->description_short OR $packItems|@count > 0}
{if $product->description_short} @@ -244,7 +244,7 @@ var fieldRequired = '{l s='Please fill in all required fields, then save the cus {/if}
{/if} - + {*{if isset($colors) && $colors}
@@ -270,7 +270,7 @@ var fieldRequired = '{l s='Please fill in all required fields, then save the cus

- +
{if isset($groups)} @@ -281,7 +281,7 @@ var fieldRequired = '{l s='Please fill in all required fields, then save the cus {assign var="groupName" value="group_$id_attribute_group"}
- {if ($group.group_type == 'select')} + {if ($group.group_type == 'select')} minimal_quantity > 1}onkeyup="checkMinimalQuantity({$product->minimal_quantity});"{/if} />

- +

minimal_quantity <= 1 OR !$product->available_for_order OR $PS_CATALOG_MODE} style="display: none;"{/if}>{l s='You must add '}{$product->minimal_quantity}{l s=' as a minimum quantity to buy this product.'}

{if $product->minimal_quantity > 1} @@ -351,7 +351,7 @@ var fieldRequired = '{l s='Please fill in all required fields, then save the cus quantity == 1} style="display: none;"{/if} id="quantityAvailableTxtMultiple">{l s='items in stock'}

{/if} - +

quantity > 0} style="display: none;"{/if}> {$HOOK_PRODUCT_OOS} @@ -367,7 +367,7 @@ var fieldRequired = '{l s='Please fill in all required fields, then save the cus {if $product->online_only}

{l s='Online only'}

{/if} - +
{if !$priceDisplay || $priceDisplay == 2} {assign var='productPrice' value=$product->getPrice(true, $smarty.const.NULL)} @@ -376,7 +376,7 @@ var fieldRequired = '{l s='Please fill in all required fields, then save the cus {assign var='productPrice' value=$product->getPrice(false, $smarty.const.NULL)} {assign var='productPriceWithoutRedution' value=$product->getPriceWithoutReduct(true, $smarty.const.NULL)} {/if} - +

{if $priceDisplay >= 0 && $priceDisplay <= 2} {convertPrice price=$productPrice} @@ -385,7 +385,7 @@ var fieldRequired = '{l s='Please fill in all required fields, then save the cus {/if}--> {/if}

- + {if $product->on_sale} {l s='On sale'} {l s='On sale!'} @@ -402,7 +402,7 @@ var fieldRequired = '{l s='Please fill in all required fields, then save the cus {elseif $product->specificPrice AND $product->specificPrice.reduction_type == 'amount'}

-{convertPrice price=$product->specificPrice.reduction|floatval}

{/if} - + {if $product->specificPrice AND $product->specificPrice.reduction}

{if $priceDisplay >= 0 && $priceDisplay <= 2} @@ -433,11 +433,18 @@ var fieldRequired = '{l s='Please fill in all required fields, then save the cus {/if} {*close if for show price*} {/if} - - quantity > 0) OR !$product->available_for_order OR (isset($restricted_country_mode) AND $restricted_country_mode) OR $PS_CATALOG_MODE} style="display: none;"{/if} id="add_to_cart" class="buttons_bottom_block">

- + quantity <= 0) + OR + !$product->available_for_order + OR + (isset($restricted_country_mode) AND $restricted_country_mode) + OR + $PS_CATALOG_MODE + } style="display: none;"{/if} id="add_to_cart" class="buttons_bottom_block">

+ {if isset($HOOK_PRODUCT_ACTIONS) && $HOOK_PRODUCT_ACTIONS}{$HOOK_PRODUCT_ACTIONS}{/if} - +