diff --git a/modules/expresscart/header.tpl b/modules/expresscart/header.tpl index 52c3ee5d..a622b852 100755 --- a/modules/expresscart/header.tpl +++ b/modules/expresscart/header.tpl @@ -40,16 +40,8 @@ function showExpressCart(event) { } function initButtons() { - $('.button.ajax_add_to_cart_button.exclusive:visible').hide().after("{/literal}{l s='Express cart' mod='expresscart'}

\"\"

{literal}"); - - // if(!$.browser.msie || $.browser.msie && $.browser.version.slice(0, 1) > 8) { - // $('.button.ajax_add_to_cart_button.exclusive:visible').hide().after("{/literal}{l s='Express cart' mod='expresscart'}

\"\"

{literal}"); - // } else { - // $('.button.ajax_add_to_cart_button.exclusive:visible').hide().after($("{/literal}{l s='Express cart' mod='expresscart'}

\"\"

{literal}").click(function(event) { - // showExpressCart(event); - // return false; - // })); - // } + $('.button.ajax_add_to_cart_button.exclusive:visible').hide() + .after("{/literal}{l s='Express cart' mod='expresscart'}

\"\"

{literal}"); } $(document).ready(function() { diff --git a/themes/site/product-list.tpl b/themes/site/product-list.tpl index 931b178f..86791ff8 100755 --- a/themes/site/product-list.tpl +++ b/themes/site/product-list.tpl @@ -121,8 +121,7 @@ {/if} -
-
+
{if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE} {l s='On sale!'} diff --git a/themes/site_mobile/product-list.tpl b/themes/site_mobile/product-list.tpl index af0626a4..765b29fb 100755 --- a/themes/site_mobile/product-list.tpl +++ b/themes/site_mobile/product-list.tpl @@ -33,7 +33,7 @@ {$product.legend|escape:'htmlall':'UTF-8'} -
+
@@ -75,10 +75,33 @@ {/if} {/if} {/if} - -
+
+ {if isset($product.quantity_all_versions)} + {if $product.quantity_all_versions <= 0 && $product.quantity <= 0} + + {l s='Produit épuisé'} + + {else} + + {l s='Express buy'} + + {/if} + {else} + {if $product.quantity <= 0} + + {l s='Produit épuisé'} + + {else} + + {l s='Express buy'} + + {/if} + {/if} +
+
+
{/foreach}