Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/scss/prestashop/components/cart/_cart-product-line.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ $component-name: product-line;
font-size: 0.875rem;
}

&-price-block {
width: 100%;
}

&--info {
display: flex;
flex-wrap: wrap;
Expand Down
11 changes: 8 additions & 3 deletions templates/checkout/_partials/cart-detailed-product-line.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
<div class="product-line__item product-line__item--prices">
<span class="product-line__item-price">{$product.price}</span>
{if $product.unit_price_full}
<div class="product-line__item-unit-price">{$product.unit_price_full}</div>
<span class="product-line__item-unit-price">{$product.unit_price_full}</span>
{/if}

{if $product.has_discount}
Expand All @@ -112,6 +112,13 @@
</span>
{/if}
{/if}

{capture name='product_price_block'}{hook h='displayProductPriceBlock' product=$product type="unit_price"}{/capture}
{if $smarty.capture.product_price_block}
<div class="product-line__item-price-block">
{$smarty.capture.product_price_block}
</div>
{/if}
</div>
</div>

Expand Down Expand Up @@ -146,8 +153,6 @@
<div class="product-line__price">{$product.total}</div>
{/if}
{/if}

{hook h='displayProductPriceBlock' product=$product type="unit_price"}
</div>

<div class="product-line__actions">
Expand Down
Loading