You've already forked wc-bootstrap
Phase 8 (Emails) skipped: WooCommerce email rendering uses wc_get_template_html() which bypasses the Twig pipeline entirely. Email customization deferred to plugins or block email editor. Phase 9 - Supplementary (7 templates): - Brand description with thumbnail, taxonomy archive delegate - Brands A-Z shortcode with alphabetical index navigation - Single brand thumbnail shortcode - REST API OAuth login and grant-access forms - Back-in-stock notification form with email input Reusable Components (6 templates): - price: product price display with sale handling - rating: star rating with Bootstrap Icons (filled/half/empty) - address-card: billing/shipping address card with edit link - status-badge: contextual order status badges - quantity-input: +/- input group widget - form-field: universal form field renderer (text/select/textarea/checkbox) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
21 lines
417 B
Twig
21 lines
417 B
Twig
{#
|
|
# Price Component (Bootstrap 5)
|
|
#
|
|
# Reusable price display with sale/regular price handling.
|
|
#
|
|
# Expected context:
|
|
# product - WC_Product object
|
|
#
|
|
# Usage:
|
|
# {% include 'components/price.html.twig' with { product: product } %}
|
|
#
|
|
# @package WcBootstrap
|
|
# @since 0.1.0
|
|
#}
|
|
|
|
{% if product.get_price_html() %}
|
|
<span class="price">
|
|
{{ product.get_price_html()|raw }}
|
|
</span>
|
|
{% endif %}
|