-
Notifications
You must be signed in to change notification settings - Fork 2
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
ilmente
committed
Mar 28, 2018
1 parent
9ac6f33
commit ad30e6f
Showing
6 changed files
with
57 additions
and
30 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
7 changes: 0 additions & 7 deletions
7
...ykerShop/Yves/ProductOptionWidget/Theme/default/_cart-page/cart-item-product-options.twig
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
...ykerShop/Yves/ProductOptionWidget/Theme/default/_product-detail-page/product-options.twig
This file was deleted.
Oops, something went wrong.
35 changes: 35 additions & 0 deletions
35
...Yves/ProductOptionWidget/Theme/default/views/option-configurator/option-configurator.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,35 @@ | ||
{% extends template('widget') %} | ||
|
||
{% define data = { | ||
optionGroups: _widget.productOptionGroups | ||
} %} | ||
|
||
{% block template %} | ||
{% if data.optionGroups is not empty %}{{parent()}}{% endif %} | ||
{% endblock %} | ||
|
||
{% block body %} | ||
<ul class="list list--spacing"> | ||
{% for optionGroup in data.optionGroups %} | ||
<li class="list__item"> | ||
<strong>{{optionGroup.name | trans}}</strong> | ||
{% embed atom('select') with { | ||
modifiers: ['expand'], | ||
attributes: { | ||
name: 'product-option[' ~ optionGroup.name ~ ']', | ||
}, | ||
embed: { | ||
options: optionGroup.productOptionValues | ||
} | ||
} only %} | ||
{% block options %} | ||
<option value="0">{{ 'product.product_options_select' | trans }}</option> | ||
{% for option in embed.options %} | ||
<option value="{{option.idProductOptionValue}}">{{ option.value | trans }} {{ option.price | money }}</option> | ||
{% endfor %} | ||
{% endblock %} | ||
{% endembed %} | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
{% endblock %} |
20 changes: 20 additions & 0 deletions
20
...rykerShop/Yves/ProductOptionWidget/Theme/default/views/option-display/option-display.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,20 @@ | ||
{% extends template('widget') %} | ||
|
||
{% define data = { | ||
options: _widget.cartItem.productOptions | ||
} %} | ||
|
||
{% block template %} | ||
{% if data.options is not empty %}{{parent()}}{% endif %} | ||
{% endblock %} | ||
|
||
{% block body %} | ||
<ul class="list list--expand"> | ||
{% for option in data.options %} | ||
<li class="list__item"> | ||
+ {{ option.value | trans }} | ||
<span class="float-right">{{ option.unitPrice | money }}</span> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
{% endblock %} |