Advertisement
Guest User

Untitled

a guest
May 10th, 2019
434
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.20 KB | None | 0 0
  1. themes/PRS01/templates/catalog/_partials/miniatures/product.tpl
  2.  
  3. {**
  4. * 2007-2019 PrestaShop
  5. *
  6. * NOTICE OF LICENSE
  7. *
  8. * This source file is subject to the Academic Free License 3.0 (AFL-3.0)
  9. * that is bundled with this package in the file LICENSE.txt.
  10. * It is also available through the world-wide-web at this URL:
  11. * https://opensource.org/licenses/AFL-3.0
  12. * If you did not receive a copy of the license and are unable to
  13. * obtain it through the world-wide-web, please send an email
  14. * to license@prestashop.com so we can send you a copy immediately.
  15. *
  16. * DISCLAIMER
  17. *
  18. * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
  19. * versions in the future. If you wish to customize PrestaShop for your
  20. * needs please refer to http://www.prestashop.com for more information.
  21. *
  22. * @author PrestaShop SA <contact@prestashop.com>
  23. * @copyright 2007-2019 PrestaShop SA
  24. * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
  25. * International Registered Trademark & Property of PrestaShop SA
  26. *}
  27. {block name='product_miniature_item'}
  28. <article class="product-miniature js-product-miniature col-sm-4" data-id-product="{$product.id_product}" data-id-product-attribute="{$product.id_product_attribute}" itemscope itemtype="http://schema.org/Product">
  29. <div class="thumbnail-container">
  30. <div class="ttproduct-image">
  31. {block name='product_thumbnail'}
  32. {if $product.cover}
  33. <a href="{$product.url}" class="thumbnail product-thumbnail">
  34. <img
  35. class="ttproduct-img1"
  36. src = "{$product.cover.bySize.home_default.url}"
  37. alt = "{if !empty($product.cover.legend)}{$product.cover.legend}{else}{$product.name|truncate:300:'...'}{/if}"
  38. data-full-size-image-url = "{$product.cover.large.url}"
  39. >
  40. {hook h="displayTtproductImageHover" id_product=$product.id_product home='home_default' large='large_default'}
  41. </a>
  42. {else}
  43. <a href="{$product.url}" class="thumbnail product-thumbnail">
  44. <img
  45. class="ttproduct-img1"
  46. src = "{$urls.no_picture_image.bySize.home_default.url}"
  47. >
  48. </a>
  49. {/if}
  50. {/block}
  51. {block name='product_flags'}
  52. <ul class="product-flags">
  53. {foreach from=$product.flags item=flag}
  54. <li class="{$flag.type}">{$flag.label}</li>
  55. {/foreach}
  56. </ul>
  57. {/block}
  58. {block name='product_reviews'}
  59. {hook h='displayProductListReviews' product=$product}
  60. {/block}
  61.  
  62. <div class="ttproducthover">
  63. <div class="tt-button-container">
  64. {include file='catalog/_partials/customize/button-cart.tpl' product=$product}
  65. </div>
  66. {hook h='displayTtWishListButton' product=$product}
  67. {hook h='displayTtCompareButton' product=$product}
  68. {block name='quick_view'}
  69. <div class="quick-view-block">
  70. <a href="#" class="quick-view btn" data-link-action="quickview" title="{l s='Quick view'}">
  71. <i class="material-icons search">&#xE8B6;</i> <span>{l s='Quick view' d='Shop.Theme.Actions'}</span>
  72. </a>
  73. </div>
  74. {/block}
  75. </div>
  76. </div>
  77.  
  78. <div class="ttproduct-desc">
  79. <div class="product-description">
  80. <h5 class="cat-name">{$product.category|escape:'html':'UTF-8'}</h5>
  81.  
  82. {block name='product_name'}
  83. {if $page.page_name == 'index'}
  84. <span class="h3 product-title" itemprop="name"><a href="{$product.url}">{$product.name|truncate:300:'...'}</a></span>
  85. {else}
  86. <span class="h3 product-title" itemprop="name"><a href="{$product.url}">{$product.name|truncate:300:'...'}</a></span>
  87. {/if}
  88. {/block}
  89.  
  90. {block name='product_description_short'}
  91. <div class="product-desc-short" itemprop="description">{$product.description_short|strip_tags:'UTF-8'|truncate:300:'...' nofilter}</div>
  92. {/block}
  93.  
  94.  
  95. <div class="highlighted-informations{if !$product.main_variants} no-variants{/if} hidden-sm-down">
  96. {block name='product_variants'}
  97. {if $product.main_variants}
  98. {include file='catalog/_partials/variant-links.tpl' variants=$product.main_variants}
  99. {/if}
  100. {/block}
  101. </div>
  102.  
  103. {block name='product_price_and_shipping'}
  104. {if $product.show_price}
  105. <div class="product-price-and-shipping">
  106. <span itemprop="price" class="price">{$product.price}</span>
  107. {if $product.has_discount}
  108. {hook h='displayProductPriceBlock' product=$product type="old_price"}
  109. <span class="sr-only">{l s='Regular price' d='Shop.Theme.Catalog'}</span>
  110. {if $product.discount_type === 'percentage'}
  111. <span class="discount-percentage discount-product">{$product.discount_percentage}</span>
  112. {elseif $product.discount_type === 'amount'}
  113. <span class="discount-amount discount-product">{$product.discount_amount_to_display}</span>
  114. {/if}
  115. <span class="regular-price">{$product.regular_price}</span>
  116. {/if}
  117. {hook h='displayProductPriceBlock' product=$product type="before_price"}
  118. <span class="sr-only">{l s='Price' d='Shop.Theme.Catalog'}</span>
  119. {hook h='displayProductPriceBlock' product=$product type='unit_price'}
  120. {hook h='displayProductPriceBlock' product=$product type='weight'}
  121. </div>
  122. {/if}
  123. {/block}
  124. </div>
  125. </div>
  126. </div>
  127. </article>
  128. {/block}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement