You've already forked wc-bootstrap
22 lines
558 B
Twig
22 lines
558 B
Twig
|
|
{#
|
||
|
|
# Loop Product Price (Bootstrap 5 Override)
|
||
|
|
#
|
||
|
|
# Renders the product price within the shop loop.
|
||
|
|
# Price HTML is pre-formatted by WooCommerce (includes sale/regular markup).
|
||
|
|
#
|
||
|
|
# Expected context:
|
||
|
|
# product - WC_Product object with:
|
||
|
|
# .get_price_html() - Formatted price HTML (includes <del>/<ins> for sales)
|
||
|
|
#
|
||
|
|
# WooCommerce PHP equivalent: loop/price.php
|
||
|
|
#
|
||
|
|
# @package WcBootstrap
|
||
|
|
# @since 0.1.0
|
||
|
|
#}
|
||
|
|
|
||
|
|
{% if product is defined %}
|
||
|
|
<span class="price fs-6 fw-semibold">
|
||
|
|
{{ product.get_price_html()|raw }}
|
||
|
|
</span>
|
||
|
|
{% endif %}
|