You've already forked wc-bootstrap
Add 15 Twig template overrides for the product archive and shop loop: - archive-product: 3+9 grid layout with optional filter sidebar - content-product: card component with hook-based content injection - content-product-cat: category card with thumbnail - product-searchform: input-group with search icon button - loop/loop-start, loop-end: responsive row-cols grid - loop/header: archive title with description hook - loop/result-count: showing X-Y of Z with aria-relevant - loop/orderby: form-select-sm sort dropdown - loop/pagination: delegates to components/pagination.html.twig - loop/no-products-found: alert-info empty state - loop/add-to-cart: btn-primary-sm with AJAX data attributes - loop/price: fw-semibold with sale/regular markup - loop/rating: Bootstrap Icon stars (full, half, empty) - loop/sale-flash: badge bg-danger positioned overlay CSS additions: product card hover, sale badge z-index, star rating sizing, price del/ins styling, WooCommerce grid reset. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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 %}
|