Enhance product price display and styling
- Added `flex-wrap: wrap;` to the product display container in custom.scss for better layout management.
- Introduced a new CSS class `.gm_omniprice` to ensure price elements are displayed as block and take full width.
- Moved the hook `{hook h='displayProductPriceBlock' product=$product type="after_price"}` to the product-prices template for improved modularity and flexibility in price display.
- Removed the redundant hook call from the product template to maintain a clean structure.
This commit is contained in:
@@ -64,6 +64,7 @@
|
||||
<span class="regular-price">{$product.regular_price}</span>
|
||||
</div>
|
||||
{/if}
|
||||
{hook h='displayProductPriceBlock' product=$product type="after_price"}
|
||||
{/block}
|
||||
|
||||
{block name='product_without_taxes'}
|
||||
|
||||
@@ -84,7 +84,6 @@
|
||||
{/block}
|
||||
{block name='product_prices'}
|
||||
{include file='catalog/_partials/product-prices.tpl'}
|
||||
{hook h='displayProductPriceBlock' product=$product type="after_price"}
|
||||
{/block}
|
||||
|
||||
<div class="product-information">
|
||||
|
||||
Reference in New Issue
Block a user