Skip to content

Commit 29cfcf2

Browse files
author
Ihor Melnychenko
committed
MAGETWO-50890: [Create Simple Product with All Custom Options' Types and Assigning it to the Category] The price on storefront does not increase
1 parent d349299 commit 29cfcf2

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

app/code/Magento/Catalog/view/base/web/js/price-option-date.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@ define([
1111
'use strict';
1212

1313
var globalOptions = {
14-
fromSelector: 'form',
15-
dropdownsSelector: '[data-role=calendar-dropdown]'
16-
};
14+
fromSelector: 'form',
15+
dropdownsSelector: '[data-role=calendar-dropdown]'
16+
},
17+
optionHandler = {};
18+
19+
optionHandler.optionHandlers = {};
1720

1821
$.widget('mage.priceOptionDate', {
1922
options: globalOptions,
@@ -26,13 +29,11 @@ define([
2629
var field = this.element,
2730
form = field.closest(this.options.fromSelector),
2831
dropdowns = $(this.options.dropdownsSelector, field),
29-
optionHandler = {},
3032
dateOptionId;
3133

3234
if (dropdowns.length) {
3335
dateOptionId = this.options.dropdownsSelector + dropdowns.attr('name');
3436

35-
optionHandler.optionHandlers = {};
3637
optionHandler.optionHandlers[dateOptionId] = onCalendarDropdownChange(dropdowns);
3738

3839
form.priceOptions(optionHandler);

0 commit comments

Comments
 (0)