-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
36 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
sylius_twig_hooks: | ||
hooks: | ||
'sylius_shop.product.show.content.info.summary.add_to_cart': | ||
bundle: | ||
template: "@BitBagSyliusProductBundlePlugin/Shop/product/show/page/info/summary/add_to_cart/addProductBundleToCart.html.twig" | ||
priority: 20 |
40 changes: 0 additions & 40 deletions
40
src/Resources/views/Shop/Product/_addProductBundleToCart.html.twig
This file was deleted.
Oops, something went wrong.
29 changes: 29 additions & 0 deletions
29
...es/views/Shop/Product/show/page/info/summary/add_to_cart/addProductBundleToCart.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{#{% if hookable_metadata.context.resource is defined %}#} | ||
{{ dump() }} | ||
{% set product = hookable_metadata.context.resource %} | ||
{% if product.isBundle %} | ||
{% set form = hookable_metadata.context.form %} | ||
{% set configuration = hookable_metadata.context.configuration %} | ||
{% set product_bundle_items = form.productBundleItems %} | ||
|
||
{% form_theme form '@SyliusShop/Form/theme.html.twig' %} | ||
|
||
<div id="sylius-product-selecting-variant"> | ||
<h4 class="mt-4">{{ 'bitbag_sylius_product_bundle.ui.products_in_bundle'|trans }}</h4> | ||
{% for item in product_bundle_items %} | ||
{% set data = item.vars.data %} | ||
<div class="card"> | ||
<div class="card-body"> | ||
<strong> | ||
{{ data.quantity }} x {{ data.productVariant.product.name }} | ||
</strong> | ||
{% if item.productVariant is defined %} | ||
{{ form_row(item.productVariant) }} | ||
{% endif %} | ||
</div> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
<div class="mb-3"></div> | ||
{% endif %} | ||
{#{% endif %}#} |
File renamed without changes.