{# # Product Meta (Bootstrap 5 Override) # # Renders SKU, categories, and tags as a definition list. # # Expected context: # product - WC_Product object with: # .get_sku() - SKU string # .get_id() - Product ID # sku - SKU string (fallback) # categories_html - Pre-rendered category links HTML # tags_html - Pre-rendered tag links HTML # # WooCommerce PHP equivalent: single-product/meta.php # # @package WcBootstrap # @since 0.1.0 #}
{{ do_action('woocommerce_product_meta_start') }}
{% if product.get_sku() is defined and product.get_sku() %}
{{ __('SKU:') }}
{{ product.get_sku()|esc_html }}
{% endif %} {% if categories_html is defined and categories_html %}
{{ __('Categories:') }}
{{ categories_html|raw }}
{% endif %} {% if tags_html is defined and tags_html %}
{{ __('Tags:') }}
{{ tags_html|raw }}
{% endif %}
{{ do_action('woocommerce_product_meta_end') }}