kristo1980 Posted January 3, 2017 Share Posted January 3, 2017 Bonjour, je viens vers vous après avoir fait des recherches sur le forum mais je ne trouve mon cas. j'ai installer le thème " toolsmarket", celui ci est lent à charger, j'ai donc fait le test gtmetrix et je découvre que la meme image est servie depuis 4 URL différentes, ce ci est pour tous les images de son module " blockhomeproductslide", j'ouvre le fichier tpl du module mais je vois pas ou il fait cette appel de 4 urls différents. j’espère que quel q'un de familiariser avec le code puisse voir cela voila mon fichier blockhomeproductslide.tpl {* * 2007-2015 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2015 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} <section id="box-content"> <div class="outer-container"> <div class="container"> <div class="other-pro"> <ul class="nav nav-tabs"> {if $fswitch == "1"} <li class="active">{if isset($featured_products) && $featured_products} <a data-toggle="tab" href="#tab1">{l s='Featured Products' mod='blockhomeproductslide'}</a> {else}{/if}</li> {else} <li></li> {/if} {if $nswitch == "1"} <li class="{if $fswitch == "1"}{else}active{/if}"> {if isset($new_products) && $new_products} <a data-toggle="tab" href="#tab2">{l s='New Arrivals' mod='blockhomeproductslide'}</a>{else} {/if} </li> {else} <li></li> {/if} {if $tswitch == "1"} <li class="{if $fswitch == "1"}{else}{if $nswitch == "1"}{else}active{/if}{/if}"> {if isset($bestsellers) && $bestsellers} <a data-toggle="tab" href="#tab3">{l s='Top Sellers' mod='blockhomeproductslide'}</a>{else} {/if} </li> {else} <li></li> {/if} {if $sswitch == "1"} <li class="{if $fswitch == "1"}{else}{if $nswitch == "1"}{else}{if $tswitch == "1"}{else}active{/if}{/if}{/if}"> {if isset($specials) && $specials} <a data-toggle="tab" href="#tab4">{l s='Special Products' mod='blockhomeproductslide'}</a>{else} {/if} </li> {else} <li></li> {/if} </ul> <div class="tab-content tab-margin"> {if $fswitch == "1"} <div id="tab1" class="tab-pane fade in active"> <div class="fns-slider"> <div class="slider-inner"> <div class="navslider-control"> <div class="navslider"> <a class="prev" href="#">Prev</a> <a class="next" href="#">Next</a> </div> </div> <div class="container-slider"> <div class="products-grid homeproductslide-demo"> {if isset($featured_products) && $featured_products} {foreach from=$featured_products item=product name=products} {assign var="prodId" value=$product.id_product} <article class="item pro-item ajax_block_product {if $smarty.foreach.products.first}first_item{elseif $smarty.foreach.products.last}last_item{/if}"> <div class="elemento introLoading"></div> <div class="item-wrap"> <div class="border_inside"> <div class="prodfns_img"> <div class="view_desk"> <div class="product-img-box"> <a href="{$product.link}" title="{$product.name|truncate:32:'...'|escape:'htmlall':'UTF-8'}" class="product-image product_image thumb"> <img class="img-lazy" src="{$img_ps_dir}white.gif" data-original="{$link->getImageLink($product.link_rewrite, $product.id_image, 'large_default')|escape:'html':'UTF-8'}" id="featuredproductImage_{$product.id_product}" /> <div style="display:none; visibility:hidden"> <input type="hidden" id="prodImage_{$product.id_product}" value="{$link->getImageLink($product.link_rewrite, $product.id_image, 'large_default')|escape:'html':'UTF-8'}" /> </div> </a> <div class="add-to-links"> <div class="cartbottom_btn"> {if isset($quick_view) && $quick_view} <div class="quick-view-wrapper"> <a class="quick-view toolstip" href="{$product.link|escape:'html':'UTF-8'}" title="{l s='Quick view' mod='blockhomeproductslide'}" rel="{$product.link|escape:'html':'UTF-8'}"> <i class="icon-eye-open"></i> </a> </div> {/if} {hook h='displayProductListFunctionalButtons' product=$product} {if isset($comparator_max_item) && $comparator_max_item} <div class="compare"> <a class="add_to_compare toolstip" title="{l s='Add to compare' mod='blockhomeproductslide'}" href="{$product.link|escape:'html':'UTF-8'}" data-id-product="{$product.id_product|intval}" ><i class="icon-signal"></i></a> </div> {/if} </div> </div> <span class="new-box"> {if isset($product.new) && $product.new == 1}<span class="new-label">{l s='New' mod='blockhomeproductslide'}</span>{/if} </span> {if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE} <span class="sale-label"> {l s='Sale!' mod='blockhomeproductslide'} </span> {/if} </div> <div class="imgrelative"> <ul class="thumbs_list"> {if isset($prodImages.$prodId)} {foreach from=$prodImages.$prodId item=image name=thumbnails} {assign var=imageIds value="`$prodId`-`$image.id_image`"} <div style="display:none; visibility:hidden"> <input type="hidden" value="{$link->getImageLink($product.link_rewrite, $imageIds, 'large_default')|escape:'html':'UTF-8'}" id="featuredhidden_{$image.id_image}" /> </div> <li id="thumbnail_{$image.id_image|escape:'intval'}" style="float:left;" class="thumbsimg"> <img id="thumb_{$image.id_image}_{$product.id_product}" src="{$link->getImageLink($product.link_rewrite, $imageIds, 'home_default')|escape:'html':'UTF-8'}" alt="{$product.name|escape:html:'UTF-8'}" class="featuredthumb_image"/> </li> {/foreach} {/if} </ul> </div> </div> <div class="view_portable prodc_img"> <div class="productowl-carousel productowl-demo"> {if isset($prodImages.$prodId)} {foreach from=$prodImages.$prodId item=image name=thumbnails} {assign var=imageIds value="`$prodId`-`$image.id_image`"} <a href="{$product.link}" title="{$product.name|escape:html:'UTF-8'}" class="product_image"> <img id="productImage_{$image.id_image}_{$product.id_product}" src="{$link->getImageLink($product.link_rewrite, $imageIds, 'large_default')|escape:'html':'UTF-8'}" height="{$homeSize.height}" width="{$homeSize.width}" alt="{$product.name|escape:html:'UTF-8'}"/> </a> {/foreach} {/if} </div> <div class="add-to-links"> <div class="cartbottom_btn"> {if isset($quick_view) && $quick_view} <div class="quick-view-wrapper"> <a class="quick-view toolstip" href="{$product.link|escape:'html':'UTF-8'}" title="{l s='Quick view' mod='blockhomeproductslide'}" rel="{$product.link|escape:'html':'UTF-8'}"> <i class="icon-eye-open"></i> </a> </div> {/if} {hook h='displayProductListFunctionalButtons' product=$product} {if isset($comparator_max_item) && $comparator_max_item} <div class="compare"> <a class="add_to_compare toolstip" title="{l s='Add to compare' mod='blockhomeproductslide'}" href="{$product.link|escape:'html':'UTF-8'}" data-id-product="{$product.id_product|intval}" ><i class="icon-signal"></i></a> </div> {/if} </div> </div> <span class="new-box"> {if isset($product.new) && $product.new == 1}<span class="new-label">{l s='New' mod='blockhomeproductslide'}</span>{/if} </span> {if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE} <span class="sale-label"> {l s='Sale!' mod='blockhomeproductslide'} </span> {/if} </div> </div> <div class="product-content"> {hook h='displayProductListReviews' product=$product} <h2 class="h5"><a class="product-name" href="{$product.link}" title="{$product.name|escape:'htmlall':'UTF-8'}">{$product.name|escape:'htmlall':'UTF-8'}</a></h2> {if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))} <div class="products_list_price"> {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)} <p class="price_container"><span class="price"> {if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if} </span> {if isset($product.specific_prices) && $product.specific_prices} <span class="old-price product-price"> {displayWtPrice p=$product.price_without_reduction} </span> {if isset($product.specific_prices.reduction) && $product.specific_prices.reduction && $product.specific_prices.reduction_type == 'percentage'} <span class="price-percent-reduction">-{$product.specific_prices.reduction * 100}%</span> {/if} {/if} </p> {/if} </div> {/if} <div class="cart rx-cart"> {if ($product.id_product_attribute == 0 || (isset($add_prod_display) && ($add_prod_display == 1))) && $product.available_for_order && !isset($restricted_country_mode) && $product.minimal_quantity <= 1 && $product.customizable != 2 && !$PS_CATALOG_MODE} {if ($product.allow_oosp || $product.quantity > 0)} {if isset($static_token)} <a class="ajax_add_to_cart_button ajax_add_to_cart toolstip" href="{$link->getPageLink('cart')|escape:'html'}?qty=1&id_product={$product.id_product}&token={$static_token}&add" rel="nofollow" title="{l s='Add to cart' mod='blockhomeproductslide'}" data-id-product="{$product.id_product|intval}"> <i class="icon-shopping-cart"></i>{l s='Add to cart' mod='blockhomeproductslide'}</a> {else} <a class="ajax_add_to_cart_button ajax_add_to_cart toolstip" href="{$link->getPageLink('cart',false, NULL, 'add=1&id_product={$product.id_product|intval}', false)|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='Add to cart' mod='blockhomeproductslide'}" data-id-product="{$product.id_product|intval}"> <i class="icon-shopping-cart"></i>{l s='Add to cart' mod='blockhomeproductslide'}</a> {/if} {else} <a itemprop="url" class="ajax_view_button ajax_add_to_cart toolstip" href="{$product.link|escape:'html':'UTF-8'}" title="{l s='View' mod='blockhomeproductslide'}"><i class="icon-search"></i>{l s='View' mod='blockhomeproductslide'}</a> {/if} {/if} </div> </div><!-- Product-content Class--> </div> </div> </article> {/foreach} {else} {/if} </div> </div> </div> </div> </div> {else} {/if} {if $nswitch == "1"} <div id="tab2" class="tab-pane fade {if $fswitch == "1"}{else}active in{/if}"> <div class="fns-slider"> <div class="slider-inner"> <div class="navslider-control"> <div class="navslider"> <a class="prev" href="#">Prev</a> <a class="next" href="#">Next</a> </div> </div> <div class="container-slider"> <div class="products-grid homeproductslide-demo"> {if isset($new_products) && $new_products} {foreach from=$new_products item=product name=products} {assign var="prodId" value=$product.id_product} <article class="item pro-item ajax_block_product {if $smarty.foreach.products.first}first_item{elseif $smarty.foreach.products.last}last_item{/if}"> <div class="elemento introLoading"></div> <div class="item-wrap"> <div class="border_inside"> <div class="prodfns_img"> <div class="view_desk"> <div class="product-img-box"> <a href="{$product.link}" title="{$product.name|truncate:32:'...'|escape:'htmlall':'UTF-8'}" class="product-image product_image thumb"> <img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'large_default')|escape:'html':'UTF-8'}" id="newproproductImage_{$product.id_product}" /> <div style="display:none; visibility:hidden"> <input type="hidden" id="prodImage_{$product.id_product}" value="{$link->getImageLink($product.link_rewrite, $product.id_image, 'large_default')|escape:'html':'UTF-8'}" /> </div> </a> <div class="add-to-links"> <div class="cartbottom_btn"> {if isset($quick_view) && $quick_view} <div class="quick-view-wrapper"> <a class="quick-view toolstip" href="{$product.link|escape:'html':'UTF-8'}" title="{l s='Quick view' mod='blockhomeproductslide'}" rel="{$product.link|escape:'html':'UTF-8'}"> <i class="icon-eye-open"></i> </a> </div> {/if} {hook h='displayProductListFunctionalButtons' product=$product} {if isset($comparator_max_item) && $comparator_max_item} <div class="compare"> <a class="add_to_compare toolstip" title="{l s='Add to compare' mod='blockhomeproductslide'}" href="{$product.link|escape:'html':'UTF-8'}" data-id-product="{$product.id_product|intval}" ><i class="icon-signal"></i></a> </div> {/if} </div> </div> <span class="new-box"> {if isset($product.new) && $product.new == 1}<span class="new-label">{l s='New' mod='blockhomeproductslide'}</span>{/if} </span> {if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE} <span class="sale-label"> {l s='Sale!' mod='blockhomeproductslide'} </span> {/if} </div> <div class="imgrelative"> <ul class="thumbs_list"> {if isset($prodImages.$prodId)} {foreach from=$prodImages.$prodId item=image name=thumbnails} {assign var=imageIds value="`$prodId`-`$image.id_image`"} <div style="display:none; visibility:hidden"> <input type="hidden" value="{$link->getImageLink($product.link_rewrite, $imageIds, 'large_default')|escape:'html':'UTF-8'}" id="newprodhidden_{$image.id_image}" /> </div> <li id="thumbnail_{$image.id_image|escape:'intval'}" style="float:left;" class="thumbsimg"> <img id="thumb_{$image.id_image}_{$product.id_product}" src="{$link->getImageLink($product.link_rewrite, $imageIds, 'home_default')|escape:'html':'UTF-8'}" alt="{$product.name|escape:html:'UTF-8'}" class="newprothumb_image"/> </li> {/foreach} {/if} </ul> </div> </div> <div class="view_portable prodc_img"> <div class="productowl-carousel productowl-demo"> {if isset($prodImages.$prodId)} {foreach from=$prodImages.$prodId item=image name=thumbnails} {assign var=imageIds value="`$prodId`-`$image.id_image`"} <a href="{$product.link}" title="{$product.name|escape:html:'UTF-8'}" class="product_image"> <img id="productImage_{$image.id_image}_{$product.id_product}" src="{$link->getImageLink($product.link_rewrite, $imageIds, 'large_default')|escape:'html':'UTF-8'}" height="{$homeSize.height}" width="{$homeSize.width}" alt="{$product.name|escape:html:'UTF-8'}"/> </a> {/foreach} {/if} </div> <div class="add-to-links"> <div class="cartbottom_btn"> {if isset($quick_view) && $quick_view} <div class="quick-view-wrapper"> <a class="quick-view toolstip" href="{$product.link|escape:'html':'UTF-8'}" title="{l s='Quick view' mod='blockhomeproductslide'}" rel="{$product.link|escape:'html':'UTF-8'}"> <i class="icon-eye-open"></i> </a> </div> {/if} {hook h='displayProductListFunctionalButtons' product=$product} {if isset($comparator_max_item) && $comparator_max_item} <div class="compare"> <a class="add_to_compare toolstip" title="{l s='Add to compare' mod='blockhomeproductslide'}" href="{$product.link|escape:'html':'UTF-8'}" data-id-product="{$product.id_product|intval}" ><i class="icon-signal"></i></a> </div> {/if} </div> </div> <span class="new-box"> {if isset($product.new) && $product.new == 1}<span class="new-label">{l s='New' mod='blockhomeproductslide'}</span>{/if} </span> {if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE} <span class="sale-label"> {l s='Sale!' mod='blockhomeproductslide'} </span> {/if} </div> </div> <div class="product-content"> {hook h='displayProductListReviews' product=$product} <h2 class="h3"><a href="{$product.link}" title="{$product.name|truncate:50:'...'|escape:'htmlall':'UTF-8'}">{$product.name|truncate:25:'...'|escape:'htmlall':'UTF-8'}</a></h2> {if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))} <div class="products_list_price"> {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)} <p class="price_container"><span class="price"> {if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if} </span> {if isset($product.specific_prices) && $product.specific_prices} <span class="old-price product-price"> {displayWtPrice p=$product.price_without_reduction} </span> {if isset($product.specific_prices.reduction) && $product.specific_prices.reduction && $product.specific_prices.reduction_type == 'percentage'} <span class="price-percent-reduction">-{$product.specific_prices.reduction * 100}%</span> {/if} {/if} </p> {/if} </div> {/if} <div class="cart rx-cart"> {if ($product.id_product_attribute == 0 || (isset($add_prod_display) && ($add_prod_display == 1))) && $product.available_for_order && !isset($restricted_country_mode) && $product.minimal_quantity <= 1 && $product.customizable != 2 && !$PS_CATALOG_MODE} {if ($product.allow_oosp || $product.quantity > 0)} {if isset($static_token)} <a class="ajax_add_to_cart_button ajax_add_to_cart toolstip" href="{$link->getPageLink('cart')|escape:'html'}?qty=1&id_product={$product.id_product}&token={$static_token}&add" rel="nofollow" title="{l s='Add to cart' mod='blockhomeproductslide'}" data-id-product="{$product.id_product|intval}"> <i class="icon-shopping-cart"></i>{l s='Add to cart' mod='blockhomeproductslide'}</a> {else} <a class="ajax_add_to_cart_button ajax_add_to_cart toolstip" href="{$link->getPageLink('cart',false, NULL, 'add=1&id_product={$product.id_product|intval}', false)|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='Add to cart' mod='blockhomeproductslide'}" data-id-product="{$product.id_product|intval}"> <i class="icon-shopping-cart"></i>{l s='Add to cart' mod='blockhomeproductslide'}</a> {/if} {else} <a itemprop="url" class="ajax_view_button ajax_add_to_cart toolstip" href="{$product.link|escape:'html':'UTF-8'}" title="{l s='View' mod='blockhomeproductslide'}"><i class="icon-search"></i>{l s='View' mod='blockhomeproductslide'}</a> {/if} {/if} </div> </div><!-- Product-content Class--> </div> </div> </article> {/foreach} {else} {/if} </div> </div> </div> </div> </div> {else} {/if} {if $tswitch == "1"} <div id="tab3" class="tab-pane fade {if $fswitch == "1"}{else}{if $nswitch == "1"}{else}active in{/if}{/if}"> <div class="fns-slider"> <div class="slider-inner"> <div class="navslider-control"> <div class="navslider"> <a class="prev" href="#">Prev</a> <a class="next" href="#">Next</a> </div> </div> <div class="container-slider"> <div class="products-grid homeproductslide-demo"> {if isset($bestsellers) && $bestsellers} {foreach from=$bestsellers item=product name=products} {assign var="prodId" value=$product.id_product} <article class="item pro-item ajax_block_product {if $smarty.foreach.products.first}first_item{elseif $smarty.foreach.products.last}last_item{/if}"> <div class="elemento introLoading"></div> <div class="item-wrap"> <div class="border_inside"> <div class="prodfns_img"> <div class="view_desk"> <div class="product-img-box"> <a href="{$product.link}" title="{$product.name|truncate:32:'...'|escape:'htmlall':'UTF-8'}" class="product-image product_image thumb"> <img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'large_default')|escape:'html':'UTF-8'}" id="topsellproductImage_{$product.id_product}" /> <div style="display:none; visibility:hidden"> <input type="hidden" id="prodImage_{$product.id_product}" value="{$link->getImageLink($product.link_rewrite, $product.id_image, 'large_default')|escape:'html':'UTF-8'}"/> </div> </a> <div class="add-to-links"> <div class="cartbottom_btn"> {if isset($quick_view) && $quick_view} <div class="quick-view-wrapper"> <a class="quick-view toolstip" href="{$product.link|escape:'html':'UTF-8'}" title="{l s='Quick view' mod='blockhomeproductslide'}" rel="{$product.link|escape:'html':'UTF-8'}"> <i class="icon-eye-open"></i> </a> </div> {/if} {hook h='displayProductListFunctionalButtons' product=$product} {if isset($comparator_max_item) && $comparator_max_item} <div class="compare"> <a class="add_to_compare toolstip" title="{l s='Add to compare' mod='blockhomeproductslide'}" href="{$product.link|escape:'html':'UTF-8'}" data-id-product="{$product.id_product|intval}" ><i class="icon-signal"></i></a> </div> {/if} </div> </div> <span class="new-box"> {if isset($product.new) && $product.new == 1}<span class="new-label">{l s='New' mod='blockhomeproductslide'}</span>{/if} </span> {if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE} <span class="sale-label"> {l s='Sale!' mod='blockhomeproductslide'} </span> {/if} </div> <div class="imgrelative"> <ul class="thumbs_list"> {if isset($prodImages.$prodId)} {foreach from=$prodImages.$prodId item=image name=thumbnails} {assign var=imageIds value="`$prodId`-`$image.id_image`"} <div style="display:none; visibility:hidden"> <input type="hidden" value="{$link->getImageLink($product.link_rewrite, $imageIds, 'large_default')|escape:'html':'UTF-8'}" id="topsellhidden_{$image.id_image}" /> </div> <li id="thumbnail_{$image.id_image|escape:'intval'}" style="float:left;" class="thumbsimg"> <img id="thumb_{$image.id_image}_{$product.id_product}" src="{$link->getImageLink($product.link_rewrite, $imageIds, 'home_default')|escape:'html':'UTF-8'}" alt="{$product.name|escape:html:'UTF-8'}" class="topsellthumb_image"/> </li> {/foreach} {/if} </ul> </div> </div> <div class="view_portable prodc_img"> <div class="productowl-carousel productowl-demo"> {if isset($prodImages.$prodId)} {foreach from=$prodImages.$prodId item=image name=thumbnails} {assign var=imageIds value="`$prodId`-`$image.id_image`"} <a href="{$product.link}" title="{$product.name|escape:html:'UTF-8'}" class="product_image"> <img id="productImage_{$image.id_image}_{$product.id_product}" src="{$link->getImageLink($product.link_rewrite, $imageIds, 'large_default')|escape:'html':'UTF-8'}" height="{$homeSize.height}" width="{$homeSize.width}" alt="{$product.name|escape:html:'UTF-8'}"/> </a> {/foreach} {/if} </div> <div class="add-to-links"> <div class="cartbottom_btn"> {if isset($quick_view) && $quick_view} <div class="quick-view-wrapper"> <a class="quick-view toolstip" href="{$product.link|escape:'html':'UTF-8'}" title="{l s='Quick view' mod='blockhomeproductslide'}" rel="{$product.link|escape:'html':'UTF-8'}"> <i class="icon-eye-open"></i> </a> </div> {/if} {hook h='displayProductListFunctionalButtons' product=$product} {if isset($comparator_max_item) && $comparator_max_item} <div class="compare"> <a class="add_to_compare toolstip" title="{l s='Add to compare' mod='blockhomeproductslide'}" href="{$product.link|escape:'html':'UTF-8'}" data-id-product="{$product.id_product|intval}" ><i class="icon-signal"></i></a> </div> {/if} </div> </div> <span class="new-box"> {if isset($product.new) && $product.new == 1}<span class="new-label">{l s='New' mod='blockhomeproductslide'}</span>{/if} </span> {if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE} <span class="sale-label"> {l s='Sale!' mod='blockhomeproductslide'} </span> {/if} </div> </div> <div class="product-content"> {hook h='displayProductListReviews' product=$product} <h2 class="h3"><a href="{$product.link}" title="{$product.name|truncate:50:'...'|escape:'htmlall':'UTF-8'}">{$product.name|truncate:25:'...'|escape:'htmlall':'UTF-8'}</a></h2> {if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))} <div class="products_list_price"> {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)} <p class="price_container"><span class="price"> {if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if} </span> {if isset($product.specific_prices) && $product.specific_prices} <span class="old-price product-price"> {displayWtPrice p=$product.price_without_reduction} </span> {if isset($product.specific_prices.reduction) && $product.specific_prices.reduction && $product.specific_prices.reduction_type == 'percentage'} <span class="price-percent-reduction">-{$product.specific_prices.reduction * 100}%</span> {/if} {/if} </p> {/if} </div> {/if} <div class="cart rx-cart"> {if ($product.id_product_attribute == 0 || (isset($add_prod_display) && ($add_prod_display == 1))) && $product.available_for_order && !isset($restricted_country_mode) && $product.minimal_quantity <= 1 && $product.customizable != 2 && !$PS_CATALOG_MODE} {if ($product.allow_oosp || $product.quantity > 0)} {if isset($static_token)} <a class="ajax_add_to_cart_button ajax_add_to_cart toolstip" href="{$link->getPageLink('cart')|escape:'html'}?qty=1&id_product={$product.id_product}&token={$static_token}&add" rel="nofollow" title="{l s='Add to cart' mod='blockhomeproductslide'}" data-id-product="{$product.id_product|intval}"> <i class="icon-shopping-cart"></i>{l s='Add to cart' mod='blockhomeproductslide'}</a> {else} <a class="ajax_add_to_cart_button ajax_add_to_cart toolstip" href="{$link->getPageLink('cart',false, NULL, 'add=1&id_product={$product.id_product|intval}', false)|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='Add to cart' mod='blockhomeproductslide'}" data-id-product="{$product.id_product|intval}"> <i class="icon-shopping-cart"></i>{l s='Add to cart' mod='blockhomeproductslide'}</a> {/if} {else} <a itemprop="url" class="ajax_view_button ajax_add_to_cart toolstip" href="{$product.link|escape:'html':'UTF-8'}" title="{l s='View' mod='blockhomeproductslide'}"><i class="icon-search"></i>{l s='View' mod='blockhomeproductslide'}</a> {/if} {/if} </div> </div><!-- Product-content Class--> </div> </div> </article> {/foreach} {else} {/if} </div> </div> </div> </div> </div> {else} {/if} {if $sswitch == "1"} <div id="tab4" class="tab-pane fade {if $fswitch == "1"}{else}{if $nswitch == "1"}{else}{if $tswitch == "1"}{else}active in{/if}{/if}{/if}"> <div class="fns-slider"> <div class="slider-inner"> <div class="navslider-control"> <div class="navslider"> <a class="prev" href="#">Prev</a> <a class="next" href="#">Next</a> </div> </div> <div class="container-slider"> <div class="products-grid homeproductslide-demo"> {if isset($specials) && $specials} {foreach from=$specials item=product name=products} {assign var="prodId" value=$product.id_product} <article class="item pro-item ajax_block_product {if $smarty.foreach.products.first}first_item{elseif $smarty.foreach.products.last}last_item{/if}"> <div class="elemento introLoading"></div> <div class="item-wrap"> <div class="border_inside"> <div class="prodfns_img"> <div class="view_desk"> <div class="product-img-box"> <a href="{$product.link}" title="{$product.name|truncate:32:'...'|escape:'htmlall':'UTF-8'}" class="product-image product_image thumb"> <img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'large_default')|escape:'html':'UTF-8'}" id="specialproductImage_{$product.id_product}" /> <div style="display:none; visibility:hidden"> <input type="hidden" id="prodImage_{$product.id_product}" value="{$link->getImageLink($product.link_rewrite, $product.id_image, 'large_default')|escape:'html':'UTF-8'}"/> </div> </a> <div class="add-to-links"> <div class="cartbottom_btn"> {if isset($quick_view) && $quick_view} <div class="quick-view-wrapper"> <a class="quick-view toolstip" href="{$product.link|escape:'html':'UTF-8'}" title="{l s='Quick view' mod='blockhomeproductslide'}" rel="{$product.link|escape:'html':'UTF-8'}"> <i class="icon-eye-open"></i> </a> </div> {/if} {hook h='displayProductListFunctionalButtons' product=$product} {if isset($comparator_max_item) && $comparator_max_item} <div class="compare"> <a class="add_to_compare toolstip" title="{l s='Add to compare' mod='blockhomeproductslide'}" href="{$product.link|escape:'html':'UTF-8'}" data-id-product="{$product.id_product|intval}" ><i class="icon-signal"></i></a> </div> {/if} </div> </div> <span class="new-box"> {if isset($product.new) && $product.new == 1}<span class="new-label">{l s='New' mod='blockhomeproductslide'}</span>{/if} </span> {if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE} <span class="sale-label"> {l s='Sale!' mod='blockhomeproductslide'} </span> {/if} </div> <div class="imgrelative"> <ul class="thumbs_list"> {if isset($prodImages.$prodId)} {foreach from=$prodImages.$prodId item=image name=thumbnails} {assign var=imageIds value="`$prodId`-`$image.id_image`"} <div style="display:none; visibility:hidden"> <input type="hidden" value="{$link->getImageLink($product.link_rewrite, $imageIds, 'large_default')|escape:'html':'UTF-8'}" id="specialhidden_{$image.id_image}" /> </div> <li id="thumbnail_{$image.id_image|escape:'intval'}" style="float:left;" class="thumbsimg"> <img id="thumb_{$image.id_image}_{$product.id_product}" src="{$link->getImageLink($product.link_rewrite, $imageIds, 'home_default')|escape:'html':'UTF-8'}" alt="{$product.name|escape:html:'UTF-8'}" class="specialthumb_image"/> </li> {/foreach} {/if} </ul> </div> </div> <div class="view_portable prodc_img"> <div class="productowl-carousel productowl-demo"> {if isset($prodImages.$prodId)} {foreach from=$prodImages.$prodId item=image name=thumbnails} {assign var=imageIds value="`$prodId`-`$image.id_image`"} <a href="{$product.link}" title="{$product.name|escape:html:'UTF-8'}" class="product_image"> <img id="productImage_{$image.id_image}_{$product.id_product}" src="{$link->getImageLink($product.link_rewrite, $imageIds, 'large_default')|escape:'html':'UTF-8'}" height="{$homeSize.height}" width="{$homeSize.width}" alt="{$product.name|escape:html:'UTF-8'}"/> </a> {/foreach} {/if} </div> <div class="add-to-links"> <div class="cartbottom_btn"> {if isset($quick_view) && $quick_view} <div class="quick-view-wrapper"> <a class="quick-view toolstip" href="{$product.link|escape:'html':'UTF-8'}" title="{l s='Quick view' mod='blockhomeproductslide'}" rel="{$product.link|escape:'html':'UTF-8'}"> <i class="icon-eye-open"></i> </a> </div> {/if} {hook h='displayProductListFunctionalButtons' product=$product} {if isset($comparator_max_item) && $comparator_max_item} <div class="compare"> <a class="add_to_compare toolstip" title="{l s='Add to compare' mod='blockhomeproductslide'}" href="{$product.link|escape:'html':'UTF-8'}" data-id-product="{$product.id_product|intval}" ><i class="icon-signal"></i></a> </div> {/if} </div> </div> <span class="new-box"> {if isset($product.new) && $product.new == 1}<span class="new-label">{l s='New' mod='blockhomeproductslide'}</span>{/if} </span> {if isset($product.on_sale) && $product.on_sale && isset($product.show_price) && $product.show_price && !$PS_CATALOG_MODE} <span class="sale-label"> {l s='Sale!' mod='blockhomeproductslide'} </span> {/if} </div> </div> <div class="product-content"> {hook h='displayProductListReviews' product=$product} <h2 class="h3"><a href="{$product.link}" title="{$product.name|truncate:50:'...'|escape:'htmlall':'UTF-8'}">{$product.name|truncate:25:'...'|escape:'htmlall':'UTF-8'}</a></h2> {if (!$PS_CATALOG_MODE AND ((isset($product.show_price) && $product.show_price) || (isset($product.available_for_order) && $product.available_for_order)))} <div class="products_list_price"> {if isset($product.show_price) && $product.show_price && !isset($restricted_country_mode)} <p class="price_container"><span class="price"> {if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if} </span> {if isset($product.specific_prices) && $product.specific_prices} <span class="old-price product-price"> {displayWtPrice p=$product.price_without_reduction} </span> {if isset($product.specific_prices.reduction) && $product.specific_prices.reduction && $product.specific_prices.reduction_type == 'percentage'} <span class="price-percent-reduction">-{$product.specific_prices.reduction * 100}%</span> {/if} {/if} </p> {/if} </div> {/if} <div class="cart rx-cart"> {if ($product.id_product_attribute == 0 || (isset($add_prod_display) && ($add_prod_display == 1))) && $product.available_for_order && !isset($restricted_country_mode) && $product.minimal_quantity <= 1 && $product.customizable != 2 && !$PS_CATALOG_MODE} {if ($product.allow_oosp || $product.quantity > 0)} {if isset($static_token)} <a class="ajax_add_to_cart_button ajax_add_to_cart toolstip" href="{$link->getPageLink('cart')|escape:'html'}?qty=1&id_product={$product.id_product}&token={$static_token}&add" rel="nofollow" title="{l s='Add to cart' mod='blockhomeproductslide'}" data-id-product="{$product.id_product|intval}"> <i class="icon-shopping-cart"></i>{l s='Add to cart' mod='blockhomeproductslide'}</a> {else} <a class="ajax_add_to_cart_button ajax_add_to_cart toolstip" href="{$link->getPageLink('cart',false, NULL, 'add=1&id_product={$product.id_product|intval}', false)|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='Add to cart' mod='blockhomeproductslide'}" data-id-product="{$product.id_product|intval}"> <i class="icon-shopping-cart"></i>{l s='Add to cart' mod='blockhomeproductslide'}</a> {/if} {else} <a itemprop="url" class="ajax_view_button ajax_add_to_cart toolstip" href="{$product.link|escape:'html':'UTF-8'}" title="{l s='View' mod='blockhomeproductslide'}"><i class="icon-search"></i>{l s='View' mod='blockhomeproductslide'}</a> {/if} {/if} </div> </div><!-- Product-content Class--> </div> </div> </article> {/foreach} {else} {/if} </div> </div> </div> </div> </div> {else} {/if} </div> </div> </div> </div> </section> Link to comment Share on other sites More sharing options...
Eolia Posted January 3, 2017 Share Posted January 3, 2017 Rien à voir avec le code mais plutot avec les images du slide^^ Donc, la configuration du slide, supprimez les images fournies avec le module et mettez les vôtres à la place Si ce sont des images de mise en page (boutons, icones ou autre) allez voir dans le css du module^^ Link to comment Share on other sites More sharing options...
kristo1980 Posted January 3, 2017 Author Share Posted January 3, 2017 Merci Eolia de votre aide se sont les images de mes produits voila un exemple de la même image servie de 4 url differents https://www.abcommerces.com/21614-large_default/bougie-rj19lm.jpg https://www.abcommerces.com/21751-large_default/bougie-cj8-champion.jpg https://www.abcommerces.com/45816-large_default/bougie-rj19lm.jpg https://www.abcommerces.com/46319-large_default/bougie-cj8-champion.jpg se ne sont pas des produit différents, c'est la même fiche produit mais il appel l'image 4 fois de cette manière Merci Link to comment Share on other sites More sharing options...
Eolia Posted January 3, 2017 Share Posted January 3, 2017 Les id images ne sont pas les mêmes^^ Combien d'images dans cette fiche produit ? Link to comment Share on other sites More sharing options...
kristo1980 Posted January 3, 2017 Author Share Posted January 3, 2017 il ya deux images https://www.abcommerces.com/bougies-champion/5925-bougie-cj8-champion-5010874505209.html Link to comment Share on other sites More sharing options...
Eolia Posted January 3, 2017 Share Posted January 3, 2017 Déjà, 2 images identiques, je pige pas l'intérêt... Je vous posais la question en BO car là votre produit est lié à 4 ID images différents qui existent sur votre serveur. https://www.abcommerces.com/img/p/4/6/3/1/9/ https://www.abcommerces.com/img/p/2/1/6/1/4/ https://www.abcommerces.com/img/p/2/1/7/5/1/ https://www.abcommerces.com/img/p/4/5/8/1/6/ Vous n'auriez pas effectué des imports successifs ? Le code php (pas celui du tpl) les trouve et les place dans la variable $prodImages Vous n'auriez pas effectué des imports successifs ? Link to comment Share on other sites More sharing options...
kristo1980 Posted January 3, 2017 Author Share Posted January 3, 2017 on a juste exporter/importer le thème à partir de la boutique en local, c'est pour ca peut être Link to comment Share on other sites More sharing options...
Eolia Posted January 3, 2017 Share Posted January 3, 2017 Vérifiez la configuration de votre module quand même... 1 Link to comment Share on other sites More sharing options...
kristo1980 Posted January 3, 2017 Author Share Posted January 3, 2017 Bravo Eolia c'était la configuration du module, il ya des options dedans il faut juste les décochés déjà c'est beaucoup mieux sur gtmetrix. Il reste que les deux images du slider il faut la même chose, l'image est appelé deux fois avec deux urls différents mais cette fois il ya rien dans la configuration du module . https://www.abcommerces.com/modules/simplesliders/views/img/f0432ff5afb152663d6df55a29487df592d1acb6_kingtony-compressor.jpg https://www.abcommerces.com/modules/simplesliders/views/img/f0432ff5afb152663d6df55a29487df592d1acb6_kingtony-compressor.jpg?1483454771738 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now