forked from PrestaShop/hummingbird
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproduct-prices.tpl
More file actions
91 lines (80 loc) · 3.59 KB
/
product-prices.tpl
File metadata and controls
91 lines (80 loc) · 3.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
{**
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*}
{if $product.show_price}
<div class="product__prices js-product-prices">
{block name='product_price'}
<div class="prices__wrapper d-flex flex-column gap-2 mb-4">
{if $product.has_discount}
<div class="product__discount">
{hook h='displayProductPriceBlock' product=$product type="old_price"}
<span class="product__price-regular">{$product.regular_price}</span>
{if $product.discount_type === 'percentage'}
<span class="product__discount-percentage">
({l s='Save %percentage%' d='Shop.Theme.Catalog' sprintf=['%percentage%' => $product.discount_percentage_absolute]})
</span>
{else}
<span class="product__discount-amount">
({l s='Save %amount%' d='Shop.Theme.Catalog' sprintf=['%amount%' => $product.discount_to_display]})
</span>
{/if}
</div>
{/if}
<div class="d-flex align-items-center gap-2">
<div class="product__current-price">
{capture name='custom_price'}{hook h='displayProductPriceBlock' product=$product type='custom_price' hook_origin='product_sheet'}{/capture}
{if '' !== $smarty.capture.custom_price}
{$smarty.capture.custom_price nofilter}
{else}
{$product.price}
{/if}
</div>
{block name='product_unit_price'}
{if $displayUnitPrice}
<div class="product__unit-price">
{l s='(%unit_price%)' d='Shop.Theme.Catalog' sprintf=['%unit_price%' => $product.unit_price_full]}
</div>
{/if}
{/block}
</div>
{block name='product_pack_price'}
{if $displayPackPrice}
<div class="product__pack-price">
{l s='Instead of %price%' d='Shop.Theme.Catalog' sprintf=['%price%' => $noPackPrice]}
</div>
{/if}
{/block}
<div class="product__tax-info d-flex align-items-start gap-2">
<div class="product__tax-label">
{if !$configuration.taxes_enabled}
{l s='No tax' d='Shop.Theme.Catalog'}
{elseif $configuration.display_taxes_label}
{$product.labels.tax_long}
{/if}
{hook h='displayProductPriceBlock' product=$product type="price"}
{hook h='displayProductPriceBlock' product=$product type="after_price"}
</div>
{* Separator *}
{if $configuration.display_taxes_label && $product.ecotax.amount > 0}<span class="product__sep-price"> - </span>{/if}
{block name='product_ecotax'}
{if $product.ecotax.amount> 0}
<div class="product__ecotax-price">
{l s='Including %amount% for ecotax' d='Shop.Theme.Catalog' sprintf=['%amount%' => $product.ecotax.value]}
{if $product.has_discount}
{l s='(not impacted by the discount)' d='Shop.Theme.Catalog'}
{/if}
</div>
{/if}
{/block}
</div>
{block name='product_without_taxes'}
{if $priceDisplay == 2}
<p class="product__price-taxless">{l s='%price% tax excl.' d='Shop.Theme.Catalog' sprintf=['%price%' => $product.price_tax_exc]}</p>
{/if}
{/block}
</div>
{/block}
{hook h='displayProductPriceBlock' product=$product type="weight" hook_origin='product_sheet'}
</div>
{/if}