This commit is contained in:
Roman Pyrih
2024-11-21 15:57:25 +01:00
parent d6060a1695
commit 92c7691d79
13 changed files with 7663 additions and 7040 deletions

View File

@@ -24,7 +24,7 @@
*}
{block name='product_miniature_item'}
<div class="js-product product{if !empty($productClasses)} {$productClasses}{/if}">
<article class="product-miniature js-product-miniature" data-id-product="{$product.id_product}" data-id-product-attribute="{$product.id_product_attribute}">
<article class="product-miniature js-product-miniature product-card" data-id-product="{$product.id_product}" data-id-product-attribute="{$product.id_product_attribute}">
<div class="thumbnail-container">
<div class="thumbnail-top">
{block name='product_thumbnail'}
@@ -71,7 +71,8 @@
<input type="hidden" name="token" value="{$static_token}">
<input type="hidden" name="id_product" value="{$product.id}" id="product_page_product_id">
<button class="btn btn-primary add-to-cart {if $product.quantity < 1}out-of-stock{/if}" data-button-action="add-to-cart" type="submit">
<i class="material-icons shopping-cart"></i>
{* <i class="material-icons shopping-cart"></i> *}
<span>+</span>
{l s='Add to cart' d='Shop.Theme.Actions'}
</button>
</form>
@@ -83,24 +84,34 @@
{block name='product_name'}
{if $page.page_name == 'index'}
<h3 class="h3 product-title"><a href="{$product.url}" content="{$product.url}">{$product.name|truncate:30:'...'}</a></h3>
<h3 class="h3 product-title">
<a href="{$product.url}" content="{$product.url}">
{$product.name}
{* {$product.name|truncate:30:'...'} *}
</a>
</h3>
{else}
<h2 class="h3 product-title"><a href="{$product.url}" content="{$product.url}">{$product.name|truncate:30:'...'}</a></h2>
<h2 class="h3 product-title">
<a href="{$product.url}" content="{$product.url}">
{$product.name}
{* {$product.name|truncate:30:'...'} *}
</a>
</h2>
{/if}
{/block}
{block name='product_price_and_shipping'}
{if $product.show_price}
<div class="product-price-and-shipping">
<div class="product-price-and-shipping {if $product.has_discount}product-price-discount{/if}">
{if $product.has_discount}
{hook h='displayProductPriceBlock' product=$product type="old_price"}
<span class="regular-price" aria-label="{l s='Regular price' d='Shop.Theme.Catalog'}">{$product.regular_price}</span>
{if $product.discount_type === 'percentage'}
{* {if $product.discount_type === 'percentage'}
<span class="discount-percentage discount-product">{$product.discount_percentage}</span>
{elseif $product.discount_type === 'amount'}
<span class="discount-amount discount-product">{$product.discount_amount_to_display}</span>
{/if}
{/if} *}
{/if}
{hook h='displayProductPriceBlock' product=$product type="before_price"}