Skip to content

Commit 8fd51ba

Browse files
author
Volodymyr Zaets
committed
MAGETWO-52329: [PR] Prepare and process PR
- Fix create order with configurable product
1 parent bd8c100 commit 8fd51ba

File tree

1 file changed

+10
-11
lines changed
  • app/code/Magento/Sales/view/adminhtml/templates/order/create

1 file changed

+10
-11
lines changed

app/code/Magento/Sales/view/adminhtml/templates/order/create/js.phtml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,19 @@
1010
require([
1111
"prototype",
1212
"Magento_Sales/order/create/form",
13-
"Magento_Catalog/catalog/product/composite/configure"
13+
"Magento_Catalog/catalog/product/composite/configure",
14+
"domReady!"
1415
], function(){
1516

1617
order.sidebarHide();
17-
Event.observe(window, 'load', function() {
18-
if (window.productConfigure) {
19-
productConfigure.addListType('product_to_add', {
20-
urlFetch: '<?php /* @escapeNotVerified */ echo $block->getUrl('sales/order_create/configureProductToAdd') ?>'
21-
});
22-
productConfigure.addListType('quote_items', {
23-
urlFetch: '<?php /* @escapeNotVerified */ echo $block->getUrl('sales/order_create/configureQuoteItems') ?>'
24-
});
25-
}
26-
});
18+
if (window.productConfigure) {
19+
productConfigure.addListType('product_to_add', {
20+
urlFetch: '<?php /* @escapeNotVerified */ echo $block->getUrl('sales/order_create/configureProductToAdd') ?>'
21+
});
22+
productConfigure.addListType('quote_items', {
23+
urlFetch: '<?php /* @escapeNotVerified */ echo $block->getUrl('sales/order_create/configureQuoteItems') ?>'
24+
});
25+
}
2726

2827
});
2928
</script>

0 commit comments

Comments
 (0)