You've already forked wc-bootstrap
25 lines
692 B
Twig
25 lines
692 B
Twig
|
|
{#
|
||
|
|
# Cart Item Data / Variation Details (Bootstrap 5 Override)
|
||
|
|
#
|
||
|
|
# Renders variation/custom data for a cart item.
|
||
|
|
#
|
||
|
|
# Expected context:
|
||
|
|
# item_data - Array of variation data, each with:
|
||
|
|
# .key - Attribute label
|
||
|
|
# .value - Attribute value (HTML)
|
||
|
|
#
|
||
|
|
# WooCommerce PHP equivalent: cart/cart-item-data.php
|
||
|
|
#
|
||
|
|
# @package WcBootstrap
|
||
|
|
# @since 0.1.0
|
||
|
|
#}
|
||
|
|
|
||
|
|
{% if item_data is defined and item_data|length > 0 %}
|
||
|
|
<dl class="variation small text-body-secondary mb-0 mt-1">
|
||
|
|
{% for data in item_data %}
|
||
|
|
<dt class="d-inline">{{ data.key|raw }}:</dt>
|
||
|
|
<dd class="d-inline me-2">{{ data.value|raw }}</dd>
|
||
|
|
{% endfor %}
|
||
|
|
</dl>
|
||
|
|
{% endif %}
|