Update free delivery threshold from 299 zł to 149 zł
This commit is contained in:
@@ -153,11 +153,11 @@
|
||||
}
|
||||
$(".product-additional").each(function () {
|
||||
if (listProductImg[$(this).data("idproduct")]) {
|
||||
var str_image = listProductImg[$(this).data("idproduct")];
|
||||
var str_image = listProductImg[$(this).data("idproduct")];console.log( str_image );
|
||||
if ($(this).data("image-type")) {
|
||||
src_image = str_image.replace('home_default',$(this).data("image-type"));
|
||||
src_image = str_image.replace('home_default','large_default');
|
||||
}else{
|
||||
src_image = str_image.replace('home_default', 'home_default');
|
||||
src_image = str_image.replace('home_default', 'large_default');
|
||||
}
|
||||
var name_image = listProductName[$(this).data("idproduct")];
|
||||
// $(this).html('<img class="img-fluid" title="'+name_image+'" alt="'+name_image+'" src="' + src_image.replace( 'https://redline.com.pl', '//cdn.optipic.io/site-102426/' ) + '" width="'+iw+'" height="'+ih+'"/>');
|
||||
|
||||
@@ -8,158 +8,70 @@
|
||||
<article class="product-miniature js-product-miniature" data-id-product="{$product.id_product}" data-id-product-attribute="{$product.id_product_attribute}" itemscope itemtype="http://schema.org/Product">
|
||||
<div class="thumbnail-container">
|
||||
<div class="product-image">
|
||||
{block name='product_thumbnail'}
|
||||
{if isset($cfg_product_list_image) && $cfg_product_list_image}
|
||||
<div class="leo-more-info" data-idproduct="{$product.id_product}"></div>
|
||||
{/if}
|
||||
|
||||
{if $product.cover}
|
||||
{if isset($formAtts) && isset($formAtts.lazyload) && $formAtts.lazyload}
|
||||
|
||||
|
||||
{if $lmobile_swipe && $isMobile}
|
||||
<div class="product-list-images-mobile">
|
||||
<div>
|
||||
{/if}
|
||||
<a href="{$product.url}" class="thumbnail product-thumbnail">
|
||||
<img
|
||||
class="img-fluid lazyOwl"
|
||||
src = ""
|
||||
data-src = "{$product.cover.bySize.home_default.url}"
|
||||
alt = "{$product.cover.legend}"
|
||||
data-full-size-image-url = "{$product.cover.large.url}"
|
||||
>
|
||||
{if isset($cfg_product_one_img) && $cfg_product_one_img}
|
||||
<span class="product-additional" data-idproduct="{if $lmobile_swipe && $isMobile}0{else}{$product.id_product}{/if}"></span>
|
||||
{/if}
|
||||
</a>
|
||||
{if $lmobile_swipe == 1 && $isMobile}
|
||||
</div>
|
||||
{foreach from=$product.images item=image}
|
||||
{if $product.cover.bySize.home_default.url != $image.bySize.home_default.url}
|
||||
<div>
|
||||
<a href="{$product.url}" class="thumbnail product-thumbnail">
|
||||
<img
|
||||
class="img-fluid thumb js-thumb {if $image.id_image == $product.cover.id_image} selected {/if}{if $aplazyload} lazy{/if}"
|
||||
data-src="{$image.bySize.home_default.url}"
|
||||
alt="{$image.legend}"
|
||||
title="{$image.legend}"
|
||||
itemprop="image"
|
||||
>
|
||||
</a>
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
<div>
|
||||
{/if}
|
||||
{else}
|
||||
{if $lmobile_swipe == 1 && $isMobile}
|
||||
<div class="product-list-images-mobile">
|
||||
<div>
|
||||
{/if}
|
||||
<a href="{$product.url}" class="thumbnail product-thumbnail">
|
||||
<img
|
||||
class="img-fluid"
|
||||
src = "{$product.cover.bySize.home_default.url}"
|
||||
alt = "{$product.cover.legend}"
|
||||
data-full-size-image-url = "{$product.cover.large.url}"
|
||||
>
|
||||
{if isset($cfg_product_one_img) && $cfg_product_one_img}
|
||||
<span class="product-additional" data-idproduct="{if $lmobile_swipe && $isMobile}0{else}{$product.id_product}{/if}"></span>
|
||||
{/if}
|
||||
</a>
|
||||
|
||||
{if $lmobile_swipe == 1 && $isMobile}
|
||||
</div>
|
||||
{foreach from=$product.images item=image}
|
||||
{if $product.cover.bySize.home_default.url != $image.bySize.home_default.url}
|
||||
<div>
|
||||
<a href="{$product.url}" class="thumbnail product-thumbnail">
|
||||
<img
|
||||
class="thumb js-thumb img-fluid {if $image.id_image == $product.cover.id_image} selected {/if}"
|
||||
src="{$image.bySize.home_default.url}"
|
||||
alt="{$image.legend}"
|
||||
title="{$image.legend}"
|
||||
itemprop="image"
|
||||
>
|
||||
</a>
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
{else}
|
||||
<a href="{$product.url}" class="thumbnail product-thumbnail leo-noimage">
|
||||
<img
|
||||
{if $aplazyload}class="lazy" data-src{else}src{/if} = "{$urls.no_picture_image.bySize.home_default.url}"
|
||||
>
|
||||
</a>
|
||||
{/if}
|
||||
|
||||
{/block}
|
||||
|
||||
|
||||
<!-- @file modules\appagebuilder\views\templates\front\products\file_tpl -->
|
||||
{hook h='displayLeoWishlistButton' product=$product}
|
||||
<div class="functional-buttons clearfix">
|
||||
<!-- @file modules\appagebuilder\views\templates\front\products\file_tpl -->
|
||||
<div class="quickview{if !$product.main_variants} no-variants{/if} hidden-sm-down">
|
||||
<a
|
||||
href="#"
|
||||
class="quick-view"
|
||||
data-link-action="quickview" title="{l s='Quick view' d='Shop.Theme.Global'}"
|
||||
>
|
||||
<span class="leo-quickview-bt-loading cssload-speeding-wheel"></span>
|
||||
<span class="leo-quickview-bt-content">
|
||||
<i class="material-icons search"></i>
|
||||
<span>{l s='Quick view' d='Shop.Theme.Global'}</span>
|
||||
</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<!-- @file modules\appagebuilder\views\templates\front\products\file_tpl -->
|
||||
{hook h='displayLeoCartButton' product=$product}
|
||||
|
||||
<!-- @file modules\appagebuilder\views\templates\front\products\file_tpl -->
|
||||
{hook h='displayLeoCompareButton' product=$product}
|
||||
</div></div>
|
||||
<div class="product-meta">
|
||||
<!-- @file modules\appagebuilder\views\templates\front\products\file_tpl -->
|
||||
{block name='product_name'}
|
||||
<h3 class="h3 product-title" itemprop="name"><a href="{$product.url}">{$product.name}</a></h3>
|
||||
{/block}
|
||||
|
||||
<!-- @file modules\appagebuilder\views\templates\front\products\file_tpl -->
|
||||
{block name='product_price_and_shipping'}
|
||||
{if $product.show_price}
|
||||
<div class="product-price-and-shipping {if $product.has_discount}has_discount{/if}">
|
||||
{if $product.has_discount}
|
||||
{hook h='displayProductPriceBlock' product=$product type="old_price"}
|
||||
<span class="sr-only">{l s='Regular price' d='Shop.Theme.Catalog'}</span>
|
||||
<span class="regular-price">{$product.regular_price}</span>
|
||||
{/if}
|
||||
|
||||
{hook h='displayProductPriceBlock' product=$product type="before_price"}
|
||||
|
||||
<span class="sr-only">{l s='Price' d='Shop.Theme.Catalog'}</span>
|
||||
<span class="price" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
|
||||
<span itemprop="priceCurrency" content="{$currency.iso_code}"></span><span itemprop="price" content="{$product.price_amount}">{$product.price}</span>
|
||||
</span>
|
||||
{if $product.has_discount}
|
||||
{if $product.discount_type === 'percentage'}
|
||||
<span class="discount-percentage">{$product.discount_percentage}</span>
|
||||
{elseif $product.discount_type === 'amount'}
|
||||
<span class="discount-amount discount-product">{$product.discount_amount_to_display}</span>
|
||||
{block name='product_thumbnail'}
|
||||
{if isset($cfg_product_list_image) && $cfg_product_list_image}
|
||||
<div class="leo-more-info" data-idproduct="{$product.id_product}"></div>
|
||||
{/if}
|
||||
{/if}
|
||||
{if $product.cover}
|
||||
{if isset($formAtts) && isset($formAtts.lazyload) && $formAtts.lazyload}
|
||||
{if $lmobile_swipe && $isMobile}
|
||||
<div class="product-list-images-mobile">
|
||||
<div>
|
||||
{/if}
|
||||
<a href="{$product.url}" class="thumbnail product-thumbnail">
|
||||
<img class="img-fluid lazyOwl" src="" data-src="{$product.cover.bySize.large_default.url}" alt="{$product.cover.legend}" data-full-size-image-url="{$product.cover.large.url}">
|
||||
{if isset($cfg_product_one_img) && $cfg_product_one_img}
|
||||
<span class="product-additional" data-idproduct="{if $lmobile_swipe && $isMobile}0{else}{$product.id_product}{/if}"></span>
|
||||
{/if}
|
||||
</a>
|
||||
{if $lmobile_swipe == 1 && $isMobile}
|
||||
</div>
|
||||
{foreach from=$product.images item=image}
|
||||
{if $product.cover.bySize.large_default.url != $image.bySize.large_default.url}
|
||||
<div>
|
||||
<a href="{$product.url}" class="thumbnail product-thumbnail">
|
||||
<img class="img-fluid thumb js-thumb {if $image.id_image == $product.cover.id_image} selected {/if}{if $aplazyload} lazy{/if}" data-src="{$image.bySize.large_default.url}" alt="{$image.legend}" title="{$image.legend}" itemprop="image">
|
||||
</a>
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
<div>
|
||||
{/if}
|
||||
{else}
|
||||
{if $lmobile_swipe == 1 && $isMobile}
|
||||
<div class="product-list-images-mobile">
|
||||
<div>
|
||||
{/if}
|
||||
<a href="{$product.url}" class="thumbnail product-thumbnail">
|
||||
<img class="img-fluid" src="{$product.cover.bySize.large_default.url}" alt="{$product.cover.legend}" data-full-size-image-url="{$product.cover.large.url}">
|
||||
{if isset($cfg_product_one_img) && $cfg_product_one_img}
|
||||
<span class="product-additional" data-idproduct="{if $lmobile_swipe && $isMobile}0{else}{$product.id_product}{/if}"></span>
|
||||
{/if}
|
||||
</a>
|
||||
|
||||
{hook h='displayProductPriceBlock' product=$product type='unit_price'}
|
||||
{if $lmobile_swipe == 1 && $isMobile}
|
||||
</div>
|
||||
{foreach from=$product.images item=image}
|
||||
{if $product.cover.bySize.home_default.url != $image.bySize.home_default.url}
|
||||
<div>
|
||||
<a href="{$product.url}" class="thumbnail product-thumbnail">
|
||||
<img class="thumb js-thumb img-fluid {if $image.id_image == $product.cover.id_image} selected {/if}" src="{$image.bySize.large_default.url}" alt="{$image.legend}" title="{$image.legend}" itemprop="image">
|
||||
</a>
|
||||
</div>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
{else}
|
||||
<a href="{$product.url}" class="thumbnail product-thumbnail leo-noimage">
|
||||
<img {if $aplazyload}class="lazy" data-src{else}src{/if}="{$urls.no_picture_image.bySize.large_default.url}">
|
||||
</a>
|
||||
{/if}
|
||||
|
||||
{hook h='displayProductPriceBlock' product=$product type='weight'}
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
{/block}
|
||||
|
||||
</div>
|
||||
<div class="product-meta"></div>
|
||||
</div>
|
||||
</article>
|
||||
@@ -98,7 +98,7 @@
|
||||
{hook h='displayProductPriceBlock' product=$product type="price"}
|
||||
</div>
|
||||
<div class="product-free-delivery">
|
||||
{l s='Free delivery from' d='Shop.Theme.Global'} <strong>299 zł</strong>
|
||||
{l s='Free delivery from' d='Shop.Theme.Global'} <strong>149 zł</strong>
|
||||
</div>
|
||||
{hook h='displayProductPriceBlock' product=$product type="after_price"}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user