2026-02-28 10:28:13 +01:00
|
|
|
{#
|
|
|
|
|
# Product Short Description (Bootstrap 5 Override)
|
|
|
|
|
#
|
|
|
|
|
# Expected context:
|
2026-02-28 17:55:39 +01:00
|
|
|
# product - WC_Product object (from TemplateOverride)
|
|
|
|
|
# short_description - Product short description HTML (optional)
|
2026-02-28 10:28:13 +01:00
|
|
|
#
|
|
|
|
|
# WooCommerce PHP equivalent: single-product/short-description.php
|
|
|
|
|
#
|
|
|
|
|
# @package WcBootstrap
|
|
|
|
|
# @since 0.1.0
|
|
|
|
|
#}
|
|
|
|
|
|
2026-02-28 17:55:39 +01:00
|
|
|
{# Compute short description when not passed as context. #}
|
|
|
|
|
{% if short_description is not defined %}
|
|
|
|
|
{% set short_description = apply_filters('woocommerce_short_description', product.get_short_description()) %}
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
{% if short_description %}
|
2026-02-28 10:28:13 +01:00
|
|
|
<div class="woocommerce-product-details__short-description lead text-body-secondary mb-3">
|
|
|
|
|
{{ short_description|raw }}
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|