Add link "Achate express"
This commit is contained in:
parent
38feb4d6f6
commit
0f33b21482
@ -40,16 +40,8 @@ function showExpressCart(event) {
|
||||
}
|
||||
|
||||
function initButtons() {
|
||||
$('.button.ajax_add_to_cart_button.exclusive:visible').hide().after("{/literal}<a title=\"{l s='Express cart' mod='expresscart'}\" onclick=\"showExpressCart(event); return false;\" class=\"button expresscart\">{l s='Express cart' mod='expresscart'}</a><div class=\"expresscart_frame\"><p class=\"loading\"><img src=\"{$img_dir|replace:'"':'"'}ajax-loader.gif\" alt=\"\" /></p></div>{literal}");
|
||||
|
||||
// if(!$.browser.msie || $.browser.msie && $.browser.version.slice(0, 1) > 8) {
|
||||
// $('.button.ajax_add_to_cart_button.exclusive:visible').hide().after("{/literal}<a title=\"{l s='Express cart' mod='expresscart'}\" onclick=\"showExpressCart(event); return false;\" class=\"button expresscart\">{l s='Express cart' mod='expresscart'}</a><div class=\"expresscart_frame\"><p class=\"loading\"><img src=\"{$img_dir|replace:'"':'"'}ajax-loader.gif\" alt=\"\" /></p></div>{literal}");
|
||||
// } else {
|
||||
// $('.button.ajax_add_to_cart_button.exclusive:visible').hide().after($("{/literal}<a title=\"{l s='Express cart' mod='expresscart'}\" class=\"button expresscart\">{l s='Express cart' mod='expresscart'}</a><div class=\"expresscart_frame\"><p class=\"loading\"><img src=\"{$img_dir|replace:'"':'"'}ajax-loader.gif\" alt=\"\" /></p></div>{literal}").click(function(event) {
|
||||
// showExpressCart(event);
|
||||
// return false;
|
||||
// }));
|
||||
// }
|
||||
$('.button.ajax_add_to_cart_button.exclusive:visible').hide()
|
||||
.after("{/literal}<a title=\"{l s='Express cart' mod='expresscart'}\" onclick=\"showExpressCart(event); return false;\" class=\"button expresscart\">{l s='Express cart' mod='expresscart'}</a><div style=\"display:none;\" class=\"expresscart_frame\"><p class=\"loading\"><img src=\"{$img_dir|replace:'"':'"'}ajax-loader.gif\" alt=\"\" /></p></div>{literal}");
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
|
@ -121,8 +121,7 @@
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<div class="express_buy" onclick="window.location.href='{$product.link|escape:'htmlall':'UTF-8'}';">
|
||||
</div>
|
||||
<div class="express_buy" onclick="window.location.href='{$product.link|escape:'htmlall':'UTF-8'}';"></div>
|
||||
<div class="button">
|
||||
{if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE}
|
||||
<span class="on_sale">{l s='On sale!'}</span>
|
||||
|
@ -33,7 +33,7 @@
|
||||
<a class="" href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.name|escape:'htmlall':'UTF-8'}">
|
||||
<img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'home')}" alt="{$product.legend|escape:'htmlall':'UTF-8'}" {if isset($homeSize)} width="115" height="{$homeSize.height}"{/if} />
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="right_block">
|
||||
<div class="list-product-name">
|
||||
<a class="" href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.name|escape:'htmlall':'UTF-8'}">
|
||||
@ -75,10 +75,33 @@
|
||||
{/if}
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
</div>
|
||||
<div>
|
||||
{if isset($product.quantity_all_versions)}
|
||||
{if $product.quantity_all_versions <= 0 && $product.quantity <= 0}
|
||||
<a class="button exclusive button_oos" title="{l s='Produit épuisé'}">
|
||||
{l s='Produit épuisé'}
|
||||
</a>
|
||||
{else}
|
||||
<a class="button ajax_add_to_cart_button exclusive" rel="ajax_id_product_{$product.id_product|intval}" href="{$link->getPageLink('cart.php')}?add&id_product={$product.id_product|intval}{if isset($static_token)}&token={$static_token}{/if}" title="{l s='Express buy'}">
|
||||
{l s='Express buy'}
|
||||
</a>
|
||||
{/if}
|
||||
{else}
|
||||
{if $product.quantity <= 0}
|
||||
<a class="button exclusive button_oos" href="#" title="{l s='Produit épuisé'}">
|
||||
{l s='Produit épuisé'}
|
||||
</a>
|
||||
{else}
|
||||
<a class="button ajax_add_to_cart_button exclusive" rel="ajax_id_product_{$product.id_product|intval}" href="{$link->getPageLink('cart.php')}?add&id_product={$product.id_product|intval}{if isset($static_token)}&token={$static_token}{/if}" title="{l s='Express buy'}">
|
||||
{l s='Express buy'}
|
||||
</a>
|
||||
{/if}
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
</li>
|
||||
{/foreach}
|
||||
|
Loading…
Reference in New Issue
Block a user