Skip to content

Commit 69238c2

Browse files
committed
MAGETWO-77744: [Magento Cloud] - Error message when uploading unsupported file format
1 parent a503eb9 commit 69238c2

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

app/code/Magento/ConfigurableProduct/view/frontend/web/js/catalog-add-to-cart.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ require([
77
], function ($) {
88
'use strict';
99

10+
/**
11+
* Add selected configurable attributes to redirect url
12+
*
13+
* @see Magento_Catalog/js/catalog-add-to-cart
14+
*/
1015
$('body').on('catalogCategoryAddToCartRedirect', function (event, data) {
1116
$(data.form).find('select[name*="super"]').each(function (index, item) {
1217
data.redirectParameters.push(item.config.id + '=' + $(item).val());

app/code/Magento/Swatches/view/frontend/web/js/catalog-add-to-cart.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ require([
77
], function ($) {
88
'use strict';
99

10+
/**
11+
* Add selected swatch attributes to redirect url
12+
*
13+
* @see Magento_Catalog/js/catalog-add-to-cart
14+
*/
1015
$('body').on('catalogCategoryAddToCartRedirect', function (event, data) {
1116
$(data.form).find('[name*="super"]').each(function (index, item) {
1217
var $item = $(item),

0 commit comments

Comments
 (0)