Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated features - Delivery/Event Date, Configurable Fields #1407

Merged
merged 1 commit into from
Dec 19, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions templates/components/amp/products/product-options.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,11 @@
<form class="form" method="post" action="{{product.cart_url}}" enctype="multipart/form-data" data-cart-item-add target="_self">
<input type="hidden" name="action" value="add">
<input type="hidden" name="product_id" value="{{product.id}}"/>
{{#each product.customizations}}
{{{dynamicComponent 'components/products/customizations'}}}
{{/each}}
<div data-product-option-change>
{{#each product.options}}
{{{dynamicComponent 'components/products/options'}}}
{{/each}}
</div>
{{#if product.event_date}}
{{> components/products/event-date}}
{{/if}}
{{#if product.can_purchase}}
{{> components/products/add-to-cart}}
{{/if}}
Expand Down
5 changes: 0 additions & 5 deletions templates/components/cart/item-options.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<form method="post" action="{{urls.cart}}" enctype="multipart/form-data">
<input type="hidden" name="item_id" value="{{item.id}}">
<p>
{{#each product.customizations}}
<div>{{{dynamicComponent 'components/products/customizations'}}}</div>
{{/each}}
</p>
<p> Options
{{#each product.options}}
<div>{{{dynamicComponent 'components/products/options'}}}</div>
Expand Down
3 changes: 0 additions & 3 deletions templates/components/cart/modals/configure-product.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ <h2 class="modal-header-title">{{lang 'cart.reconfigure_product' name=product_na
<form id="CartEditProductFieldsForm" method="post" action="cart.php" enctype="multipart/form-data">
<input type="hidden" name="action" value="EditProductFieldsInCart">
<input type="hidden" name="item_id" value="{{quote_item_id}}">
{{#each customizations}}
{{{dynamicComponent 'components/products/customizations'}}}
{{/each}}

{{#each options}}
{{{dynamicComponent 'components/products/options'}}}
Expand Down
9 changes: 0 additions & 9 deletions templates/components/products/customizations/checkbox.html

This file was deleted.

13 changes: 0 additions & 13 deletions templates/components/products/customizations/file.html

This file was deleted.

14 changes: 0 additions & 14 deletions templates/components/products/customizations/select.html

This file was deleted.

9 changes: 0 additions & 9 deletions templates/components/products/customizations/text.html

This file was deleted.

9 changes: 0 additions & 9 deletions templates/components/products/customizations/textarea.html

This file was deleted.

24 changes: 0 additions & 24 deletions templates/components/products/event-date.html

This file was deleted.

6 changes: 0 additions & 6 deletions templates/components/products/product-view.html
Original file line number Diff line number Diff line change
Expand Up @@ -205,17 +205,11 @@ <h2 class="productView-brand"{{#if schema}} itemprop="brand" itemscope itemtype=
data-cart-item-add>
<input type="hidden" name="action" value="add">
<input type="hidden" name="product_id" value="{{product.id}}"/>
{{#each product.customizations}}
{{{dynamicComponent 'components/products/customizations'}}}
{{/each}}
<div data-product-option-change style="display:none;">
{{#each product.options}}
{{{dynamicComponent 'components/products/options'}}}
{{/each}}
</div>
{{#if product.event_date}}
{{> components/products/event-date}}
{{/if}}
<div class="form-field form-field--stock{{#unless product.stock_level}} u-hiddenVisually{{/unless}}">
<label class="form-label form-label--alternate">
{{lang 'products.current_stock'}}
Expand Down