commerce-wishlist-item-details.html.twig in Commerce Wishlist 8.3
Template for the wishlist item details.
Do not remove or modify the wrapping div, it is used by WishlistItemDetailsForm::successfulAjaxSubmit().
Available variables:
- wishlist_item_entity: The wishlist item entity.
2 theme calls to commerce-wishlist-item-details.html.twig
- WishlistItemDetailsForm::successfulAjaxSubmit in src/
Form/ WishlistItemDetailsForm.php - Allows the form to respond to a successful AJAX submission.
- WishlistUserForm::form in src/
Form/ WishlistUserForm.php - Gets the actual form array to be built.
File
templates/commerce-wishlist-item-details.html.twigView source
- {#
- /**
- * @file
- * Template for the wishlist item details.
- *
- * Do not remove or modify the wrapping div, it is used by
- * WishlistItemDetailsForm::successfulAjaxSubmit().
- *
- * Available variables:
- * - wishlist_item_entity: The wishlist item entity.
- *
- * @ingroup themeable
- */
- #}
- <div id="wishlist-item-details-{{ wishlist_item_entity.id }}">
- {% if wishlist_item_entity.getComment %}
- <div class="wishlist-item__comment">
- {{ wishlist_item_entity.getComment }}
- </div>
- {% endif %}
- <div class="wishlist-item__quantity">
- {{ 'Quantity:'|t }} {{ wishlist_item_entity.getQuantity|number_format }}
- </div>
- </div>