Advertisement
Guest User

Untitled

a guest
Feb 15th, 2017
695
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 79.51 KB | None | 0 0
  1. var dump = {
  2. "*": {
  3. "Magento_Ui/js/core/app": {
  4. "types": {
  5. "dataSource": {"component": "Magento_Ui\/js\/form\/provider"},
  6. "input": {"extends": "type_form"},
  7. "form.input": {"extends": "input"},
  8. "fieldset": {"component": "Magento_Ui\/js\/form\/components\/fieldset", "extends": "type_form"},
  9. "container": {"extends": "type_form"},
  10. "actionDelete": {"extends": "type_form"},
  11. "type_form": {
  12. "component": "Magento_Ui\/js\/form\/form",
  13. "provider": "type_form.type_form_data_source",
  14. "deps": "type_form.type_form_data_source",
  15. "namespace": "type_form"
  16. },
  17. "html_content": {"component": "Magento_Ui\/js\/form\/components\/html", "extends": "type_form"}
  18. },
  19. "components": {
  20. "type_form": {
  21. "children": {
  22. "type_form": {
  23. "type": "type_form",
  24. "name": "type_form",
  25. "children": {
  26. "general": {
  27. "type": "fieldset",
  28. "name": "general",
  29. "children": {
  30. "id": {
  31. "type": "form.input",
  32. "name": "id",
  33. "dataScope": "id",
  34. "config": {
  35. "component": "Magento_Ui\/js\/form\/element\/abstract",
  36. "template": "ui\/form\/field",
  37. "visible": false,
  38. "dataType": "text",
  39. "formElement": "input",
  40. "source": "type"
  41. }
  42. },
  43. "name": {
  44. "type": "form.input",
  45. "name": "name",
  46. "dataScope": "name",
  47. "config": {
  48. "component": "Magento_Ui\/js\/form\/element\/abstract",
  49. "template": "ui\/form\/field",
  50. "dataType": "text",
  51. "label": "Name",
  52. "formElement": "input",
  53. "scope": "type",
  54. "validation": {"required-entry": true}
  55. }
  56. }
  57. },
  58. "config": {
  59. "label": "General",
  60. "collapsible": true,
  61. "opened": true,
  62. "sortOrder": "10"
  63. }
  64. },
  65. "related": {
  66. "type": "fieldset",
  67. "name": "related",
  68. "children": {
  69. "related": {
  70. "type": "fieldset",
  71. "name": "related",
  72. "children": {
  73. "button_set": {
  74. "type": "container",
  75. "name": "button_set",
  76. "children": {
  77. "button_related": {
  78. "type": "container",
  79. "name": "button_related",
  80. "config": {
  81. "component": "Magento_Ui\/js\/form\/components\/button",
  82. "formElement": "container",
  83. "componentType": "container",
  84. "actions": [{
  85. "targetName": "type_form.type_form.related.related.modal",
  86. "actionName": "toggleModal"
  87. }, {
  88. "targetName": "type_form.type_form.related.related.modal.related_product_listing",
  89. "actionName": "render"
  90. }],
  91. "title": "Add Related Products",
  92. "provider": null
  93. }
  94. }
  95. },
  96. "config": {
  97. "component": "uiComponent",
  98. "formElement": "container",
  99. "componentType": "container",
  100. "label": false,
  101. "content": "Related products are shown to customers in addition to the item the customer is looking at.",
  102. "template": "ui\/form\/components\/complex"
  103. }
  104. },
  105. "modal": {
  106. "type": "container",
  107. "name": "modal",
  108. "children": {
  109. "related_product_listing": {
  110. "type": "container",
  111. "name": "related_product_listing",
  112. "dataScope": "related_product_listing",
  113. "config": {
  114. "component": "Magento_Ui\/js\/form\/components\/insert-listing",
  115. "update_url": "http:\/\/mage2.local\/admin\/mui\/index\/render\/key\/3a9a937fa74a8a8a0e9f75c650a54756b5e8d8ab4b90ee33cf262f841d95b947\/",
  116. "render_url": "http:\/\/mage2.local\/admin\/mui\/index\/render\/key\/3a9a937fa74a8a8a0e9f75c650a54756b5e8d8ab4b90ee33cf262f841d95b947\/",
  117. "autoRender": false,
  118. "dataLinks": {"imports": false, "exports": true},
  119. "realTimeLink": true,
  120. "componentType": "insertListing",
  121. "externalProvider": "related_product_listing.related_product_listing_data_source",
  122. "selectionsProvider": "related_product_listing.related_product_listing.product_columns.ids",
  123. "ns": "related_product_listing",
  124. "behaviourType": "simple",
  125. "externalFilterMode": true,
  126. "imports": {
  127. "productId": "${ $.provider }:data.product.current_product_id",
  128. "storeId": "${ $.provider }:data.product.current_store_id"
  129. },
  130. "exports": {
  131. "productId": "${ $.externalProvider }:params.current_product_id",
  132. "storeId": "${ $.externalProvider }:params.current_store_id"
  133. },
  134. "storageConfig": {"provider": "type_form.type_form_data_source"}
  135. }
  136. }
  137. },
  138. "dataScope": "",
  139. "config": {
  140. "component": "Magento_Ui\/js\/modal\/modal-component",
  141. "options": {
  142. "type": "slide",
  143. "title": "Add Related Products",
  144. "buttons": [{
  145. "text": "Cancel",
  146. "actions": ["closeModal"]
  147. }, {
  148. "text": "Add Selected Products",
  149. "class": "action-primary",
  150. "actions": [{
  151. "targetName": "index = related_product_listing",
  152. "actionName": "save"
  153. }, "closeModal"]
  154. }]
  155. },
  156. "componentType": "modal"
  157. }
  158. },
  159. "related": {
  160. "type": "container",
  161. "name": "related",
  162. "children": {
  163. "record": {
  164. "type": "container",
  165. "name": "record",
  166. "children": {
  167. "id": {
  168. "type": "form.input",
  169. "name": "id",
  170. "dataScope": "id",
  171. "config": {
  172. "component": "Magento_Ui\/js\/form\/element\/text",
  173. "template": "ui\/form\/field",
  174. "componentType": "field",
  175. "formElement": "input",
  176. "elementTmpl": "ui\/dynamic-rows\/cells\/text",
  177. "dataType": "text",
  178. "fit": false,
  179. "label": "ID",
  180. "sortOrder": 0
  181. }
  182. },
  183. "thumbnail": {
  184. "type": "form.input",
  185. "name": "thumbnail",
  186. "dataScope": "thumbnail",
  187. "config": {
  188. "component": "Magento_Ui\/js\/form\/element\/abstract",
  189. "template": "ui\/form\/field",
  190. "componentType": "field",
  191. "formElement": "input",
  192. "elementTmpl": "ui\/dynamic-rows\/cells\/thumbnail",
  193. "dataType": "text",
  194. "fit": true,
  195. "label": "Thumbnail",
  196. "sortOrder": 10
  197. }
  198. },
  199. "name": {
  200. "type": "form.input",
  201. "name": "name",
  202. "dataScope": "name",
  203. "config": {
  204. "component": "Magento_Ui\/js\/form\/element\/text",
  205. "template": "ui\/form\/field",
  206. "componentType": "field",
  207. "formElement": "input",
  208. "elementTmpl": "ui\/dynamic-rows\/cells\/text",
  209. "dataType": "text",
  210. "fit": false,
  211. "label": "Name",
  212. "sortOrder": 20
  213. }
  214. },
  215. "status": {
  216. "type": "form.input",
  217. "name": "status",
  218. "dataScope": "status",
  219. "config": {
  220. "component": "Magento_Ui\/js\/form\/element\/text",
  221. "template": "ui\/form\/field",
  222. "componentType": "field",
  223. "formElement": "input",
  224. "elementTmpl": "ui\/dynamic-rows\/cells\/text",
  225. "dataType": "text",
  226. "fit": true,
  227. "label": "Status",
  228. "sortOrder": 30
  229. }
  230. },
  231. "attribute_set": {
  232. "type": "form.input",
  233. "name": "attribute_set",
  234. "dataScope": "attribute_set",
  235. "config": {
  236. "component": "Magento_Ui\/js\/form\/element\/text",
  237. "template": "ui\/form\/field",
  238. "componentType": "field",
  239. "formElement": "input",
  240. "elementTmpl": "ui\/dynamic-rows\/cells\/text",
  241. "dataType": "text",
  242. "fit": false,
  243. "label": "Attribute Set",
  244. "sortOrder": 40
  245. }
  246. },
  247. "sku": {
  248. "type": "form.input",
  249. "name": "sku",
  250. "dataScope": "sku",
  251. "config": {
  252. "component": "Magento_Ui\/js\/form\/element\/text",
  253. "template": "ui\/form\/field",
  254. "componentType": "field",
  255. "formElement": "input",
  256. "elementTmpl": "ui\/dynamic-rows\/cells\/text",
  257. "dataType": "text",
  258. "fit": true,
  259. "label": "SKU",
  260. "sortOrder": 50
  261. }
  262. },
  263. "price": {
  264. "type": "form.input",
  265. "name": "price",
  266. "dataScope": "price",
  267. "config": {
  268. "component": "Magento_Ui\/js\/form\/element\/text",
  269. "template": "ui\/form\/field",
  270. "componentType": "field",
  271. "formElement": "input",
  272. "elementTmpl": "ui\/dynamic-rows\/cells\/text",
  273. "dataType": "text",
  274. "fit": true,
  275. "label": "Price",
  276. "sortOrder": 60
  277. }
  278. },
  279. "actionDelete": {
  280. "type": "actionDelete",
  281. "name": "actionDelete",
  282. "config": {
  283. "component": "Magento_Ui\/js\/form\/element\/abstract",
  284. "elementTmpl": "ui\/dynamic-rows\/cells\/action-delete",
  285. "template": "ui\/dynamic-rows\/cells\/action-delete",
  286. "additionalClasses": "data-grid-actions-cell",
  287. "componentType": "actionDelete",
  288. "dataType": "text",
  289. "label": "Actions",
  290. "sortOrder": 70,
  291. "fit": true
  292. }
  293. },
  294. "position": {
  295. "type": "form.input",
  296. "name": "position",
  297. "dataScope": "position",
  298. "config": {
  299. "component": "Magento_Ui\/js\/form\/element\/abstract",
  300. "template": "ui\/form\/field",
  301. "dataType": "number",
  302. "formElement": "input",
  303. "componentType": "field",
  304. "sortOrder": 80,
  305. "visible": false
  306. }
  307. }
  308. },
  309. "dataScope": "",
  310. "config": {
  311. "component": "Magento_Ui\/js\/dynamic-rows\/record",
  312. "componentType": "container",
  313. "isTemplate": true,
  314. "is_collection": true
  315. }
  316. }
  317. },
  318. "dataScope": "data.links",
  319. "config": {
  320. "component": "Magento_Ui\/js\/dynamic-rows\/dynamic-rows-grid",
  321. "template": "ui\/dynamic-rows\/templates\/grid",
  322. "additionalClasses": "admin__field-wide",
  323. "componentType": "dynamicRows",
  324. "label": null,
  325. "columnsHeader": false,
  326. "columnsHeaderAfterRender": true,
  327. "renderDefaultRecord": false,
  328. "addButton": false,
  329. "recordTemplate": "record",
  330. "deleteButtonLabel": "Remove",
  331. "dataProvider": "related_product_listing",
  332. "map": {
  333. "id": "entity_id",
  334. "name": "name",
  335. "status": "status_text",
  336. "attribute_set": "attribute_set_text",
  337. "sku": "sku",
  338. "price": "price",
  339. "thumbnail": "thumbnail_src"
  340. },
  341. "links": {"insertData": "${ $.provider }:${ $.dataProvider }"},
  342. "sortOrder": 2
  343. }
  344. }
  345. },
  346. "dataScope": "",
  347. "config": {
  348. "additionalClasses": "admin__fieldset-section",
  349. "label": "Related Products",
  350. "collapsible": false,
  351. "componentType": "fieldset",
  352. "sortOrder": 10
  353. }
  354. },
  355. "upsell": {
  356. "type": "fieldset",
  357. "name": "upsell",
  358. "children": {
  359. "button_set": {
  360. "type": "container",
  361. "name": "button_set",
  362. "children": {
  363. "button_upsell": {
  364. "type": "container",
  365. "name": "button_upsell",
  366. "config": {
  367. "component": "Magento_Ui\/js\/form\/components\/button",
  368. "formElement": "container",
  369. "componentType": "container",
  370. "actions": [{
  371. "targetName": "type_form.type_form.related.upsell.modal",
  372. "actionName": "toggleModal"
  373. }, {
  374. "targetName": "type_form.type_form.related.upsell.modal.upsell_product_listing",
  375. "actionName": "render"
  376. }],
  377. "title": "Add Up-Sell Products",
  378. "provider": null
  379. }
  380. }
  381. },
  382. "config": {
  383. "component": "uiComponent",
  384. "formElement": "container",
  385. "componentType": "container",
  386. "label": false,
  387. "content": "An up-sell item is offered to the customer as a pricier or higher-quality alternative to the product the customer is looking at.",
  388. "template": "ui\/form\/components\/complex"
  389. }
  390. },
  391. "modal": {
  392. "type": "container",
  393. "name": "modal",
  394. "children": {
  395. "upsell_product_listing": {
  396. "type": "container",
  397. "name": "upsell_product_listing",
  398. "dataScope": "upsell_product_listing",
  399. "config": {
  400. "component": "Magento_Ui\/js\/form\/components\/insert-listing",
  401. "update_url": "http:\/\/mage2.local\/admin\/mui\/index\/render\/key\/3a9a937fa74a8a8a0e9f75c650a54756b5e8d8ab4b90ee33cf262f841d95b947\/",
  402. "render_url": "http:\/\/mage2.local\/admin\/mui\/index\/render\/key\/3a9a937fa74a8a8a0e9f75c650a54756b5e8d8ab4b90ee33cf262f841d95b947\/",
  403. "autoRender": false,
  404. "dataLinks": {"imports": false, "exports": true},
  405. "realTimeLink": true,
  406. "componentType": "insertListing",
  407. "externalProvider": "upsell_product_listing.upsell_product_listing_data_source",
  408. "selectionsProvider": "upsell_product_listing.upsell_product_listing.product_columns.ids",
  409. "ns": "upsell_product_listing",
  410. "behaviourType": "simple",
  411. "externalFilterMode": true,
  412. "imports": {
  413. "productId": "${ $.provider }:data.product.current_product_id",
  414. "storeId": "${ $.provider }:data.product.current_store_id"
  415. },
  416. "exports": {
  417. "productId": "${ $.externalProvider }:params.current_product_id",
  418. "storeId": "${ $.externalProvider }:params.current_store_id"
  419. },
  420. "storageConfig": {"provider": "type_form.type_form_data_source"}
  421. }
  422. }
  423. },
  424. "dataScope": "",
  425. "config": {
  426. "component": "Magento_Ui\/js\/modal\/modal-component",
  427. "options": {
  428. "type": "slide",
  429. "title": "Add Up-Sell Products",
  430. "buttons": [{
  431. "text": "Cancel",
  432. "actions": ["closeModal"]
  433. }, {
  434. "text": "Add Selected Products",
  435. "class": "action-primary",
  436. "actions": [{
  437. "targetName": "index = upsell_product_listing",
  438. "actionName": "save"
  439. }, "closeModal"]
  440. }]
  441. },
  442. "componentType": "modal"
  443. }
  444. },
  445. "upsell": {
  446. "type": "container",
  447. "name": "upsell",
  448. "children": {
  449. "record": {
  450. "type": "container",
  451. "name": "record",
  452. "children": {
  453. "id": {
  454. "type": "form.input",
  455. "name": "id",
  456. "dataScope": "id",
  457. "config": {
  458. "component": "Magento_Ui\/js\/form\/element\/text",
  459. "template": "ui\/form\/field",
  460. "componentType": "field",
  461. "formElement": "input",
  462. "elementTmpl": "ui\/dynamic-rows\/cells\/text",
  463. "dataType": "text",
  464. "fit": false,
  465. "label": "ID",
  466. "sortOrder": 0
  467. }
  468. },
  469. "thumbnail": {
  470. "type": "form.input",
  471. "name": "thumbnail",
  472. "dataScope": "thumbnail",
  473. "config": {
  474. "component": "Magento_Ui\/js\/form\/element\/abstract",
  475. "template": "ui\/form\/field",
  476. "componentType": "field",
  477. "formElement": "input",
  478. "elementTmpl": "ui\/dynamic-rows\/cells\/thumbnail",
  479. "dataType": "text",
  480. "fit": true,
  481. "label": "Thumbnail",
  482. "sortOrder": 10
  483. }
  484. },
  485. "name": {
  486. "type": "form.input",
  487. "name": "name",
  488. "dataScope": "name",
  489. "config": {
  490. "component": "Magento_Ui\/js\/form\/element\/text",
  491. "template": "ui\/form\/field",
  492. "componentType": "field",
  493. "formElement": "input",
  494. "elementTmpl": "ui\/dynamic-rows\/cells\/text",
  495. "dataType": "text",
  496. "fit": false,
  497. "label": "Name",
  498. "sortOrder": 20
  499. }
  500. },
  501. "status": {
  502. "type": "form.input",
  503. "name": "status",
  504. "dataScope": "status",
  505. "config": {
  506. "component": "Magento_Ui\/js\/form\/element\/text",
  507. "template": "ui\/form\/field",
  508. "componentType": "field",
  509. "formElement": "input",
  510. "elementTmpl": "ui\/dynamic-rows\/cells\/text",
  511. "dataType": "text",
  512. "fit": true,
  513. "label": "Status",
  514. "sortOrder": 30
  515. }
  516. },
  517. "attribute_set": {
  518. "type": "form.input",
  519. "name": "attribute_set",
  520. "dataScope": "attribute_set",
  521. "config": {
  522. "component": "Magento_Ui\/js\/form\/element\/text",
  523. "template": "ui\/form\/field",
  524. "componentType": "field",
  525. "formElement": "input",
  526. "elementTmpl": "ui\/dynamic-rows\/cells\/text",
  527. "dataType": "text",
  528. "fit": false,
  529. "label": "Attribute Set",
  530. "sortOrder": 40
  531. }
  532. },
  533. "sku": {
  534. "type": "form.input",
  535. "name": "sku",
  536. "dataScope": "sku",
  537. "config": {
  538. "component": "Magento_Ui\/js\/form\/element\/text",
  539. "template": "ui\/form\/field",
  540. "componentType": "field",
  541. "formElement": "input",
  542. "elementTmpl": "ui\/dynamic-rows\/cells\/text",
  543. "dataType": "text",
  544. "fit": true,
  545. "label": "SKU",
  546. "sortOrder": 50
  547. }
  548. },
  549. "price": {
  550. "type": "form.input",
  551. "name": "price",
  552. "dataScope": "price",
  553. "config": {
  554. "component": "Magento_Ui\/js\/form\/element\/text",
  555. "template": "ui\/form\/field",
  556. "componentType": "field",
  557. "formElement": "input",
  558. "elementTmpl": "ui\/dynamic-rows\/cells\/text",
  559. "dataType": "text",
  560. "fit": true,
  561. "label": "Price",
  562. "sortOrder": 60
  563. }
  564. },
  565. "actionDelete": {
  566. "type": "actionDelete",
  567. "name": "actionDelete",
  568. "config": {
  569. "component": "Magento_Ui\/js\/form\/element\/abstract",
  570. "elementTmpl": "ui\/dynamic-rows\/cells\/action-delete",
  571. "template": "ui\/dynamic-rows\/cells\/action-delete",
  572. "additionalClasses": "data-grid-actions-cell",
  573. "componentType": "actionDelete",
  574. "dataType": "text",
  575. "label": "Actions",
  576. "sortOrder": 70,
  577. "fit": true
  578. }
  579. },
  580. "position": {
  581. "type": "form.input",
  582. "name": "position",
  583. "dataScope": "position",
  584. "config": {
  585. "component": "Magento_Ui\/js\/form\/element\/abstract",
  586. "template": "ui\/form\/field",
  587. "dataType": "number",
  588. "formElement": "input",
  589. "componentType": "field",
  590. "sortOrder": 80,
  591. "visible": false
  592. }
  593. }
  594. },
  595. "dataScope": "",
  596. "config": {
  597. "component": "Magento_Ui\/js\/dynamic-rows\/record",
  598. "componentType": "container",
  599. "isTemplate": true,
  600. "is_collection": true
  601. }
  602. }
  603. },
  604. "dataScope": "data.links",
  605. "config": {
  606. "component": "Magento_Ui\/js\/dynamic-rows\/dynamic-rows-grid",
  607. "template": "ui\/dynamic-rows\/templates\/grid",
  608. "additionalClasses": "admin__field-wide",
  609. "componentType": "dynamicRows",
  610. "label": null,
  611. "columnsHeader": false,
  612. "columnsHeaderAfterRender": true,
  613. "renderDefaultRecord": false,
  614. "addButton": false,
  615. "recordTemplate": "record",
  616. "deleteButtonLabel": "Remove",
  617. "dataProvider": "upsell_product_listing",
  618. "map": {
  619. "id": "entity_id",
  620. "name": "name",
  621. "status": "status_text",
  622. "attribute_set": "attribute_set_text",
  623. "sku": "sku",
  624. "price": "price",
  625. "thumbnail": "thumbnail_src"
  626. },
  627. "links": {"insertData": "${ $.provider }:${ $.dataProvider }"},
  628. "sortOrder": 2
  629. }
  630. }
  631. },
  632. "dataScope": "",
  633. "config": {
  634. "additionalClasses": "admin__fieldset-section",
  635. "label": "Up-Sell Products",
  636. "collapsible": false,
  637. "componentType": "fieldset",
  638. "sortOrder": 20
  639. }
  640. },
  641. "crosssell": {
  642. "type": "fieldset",
  643. "name": "crosssell",
  644. "children": {
  645. "button_set": {
  646. "type": "container",
  647. "name": "button_set",
  648. "children": {
  649. "button_crosssell": {
  650. "type": "container",
  651. "name": "button_crosssell",
  652. "config": {
  653. "component": "Magento_Ui\/js\/form\/components\/button",
  654. "formElement": "container",
  655. "componentType": "container",
  656. "actions": [{
  657. "targetName": "type_form.type_form.related.crosssell.modal",
  658. "actionName": "toggleModal"
  659. }, {
  660. "targetName": "type_form.type_form.related.crosssell.modal.crosssell_product_listing",
  661. "actionName": "render"
  662. }],
  663. "title": "Add Cross-Sell Products",
  664. "provider": null
  665. }
  666. }
  667. },
  668. "config": {
  669. "component": "uiComponent",
  670. "formElement": "container",
  671. "componentType": "container",
  672. "label": false,
  673. "content": "These \"impulse-buy\" products appear next to the shopping cart as cross-sells to the items already in the shopping cart.",
  674. "template": "ui\/form\/components\/complex"
  675. }
  676. },
  677. "modal": {
  678. "type": "container",
  679. "name": "modal",
  680. "children": {
  681. "crosssell_product_listing": {
  682. "type": "container",
  683. "name": "crosssell_product_listing",
  684. "dataScope": "crosssell_product_listing",
  685. "config": {
  686. "component": "Magento_Ui\/js\/form\/components\/insert-listing",
  687. "update_url": "http:\/\/mage2.local\/admin\/mui\/index\/render\/key\/3a9a937fa74a8a8a0e9f75c650a54756b5e8d8ab4b90ee33cf262f841d95b947\/",
  688. "render_url": "http:\/\/mage2.local\/admin\/mui\/index\/render\/key\/3a9a937fa74a8a8a0e9f75c650a54756b5e8d8ab4b90ee33cf262f841d95b947\/",
  689. "autoRender": false,
  690. "dataLinks": {"imports": false, "exports": true},
  691. "realTimeLink": true,
  692. "componentType": "insertListing",
  693. "externalProvider": "crosssell_product_listing.crosssell_product_listing_data_source",
  694. "selectionsProvider": "crosssell_product_listing.crosssell_product_listing.product_columns.ids",
  695. "ns": "crosssell_product_listing",
  696. "behaviourType": "simple",
  697. "externalFilterMode": true,
  698. "imports": {
  699. "productId": "${ $.provider }:data.product.current_product_id",
  700. "storeId": "${ $.provider }:data.product.current_store_id"
  701. },
  702. "exports": {
  703. "productId": "${ $.externalProvider }:params.current_product_id",
  704. "storeId": "${ $.externalProvider }:params.current_store_id"
  705. },
  706. "storageConfig": {"provider": "type_form.type_form_data_source"}
  707. }
  708. }
  709. },
  710. "dataScope": "",
  711. "config": {
  712. "component": "Magento_Ui\/js\/modal\/modal-component",
  713. "options": {
  714. "type": "slide",
  715. "title": "Add Cross-Sell Products",
  716. "buttons": [{
  717. "text": "Cancel",
  718. "actions": ["closeModal"]
  719. }, {
  720. "text": "Add Selected Products",
  721. "class": "action-primary",
  722. "actions": [{
  723. "targetName": "index = crosssell_product_listing",
  724. "actionName": "save"
  725. }, "closeModal"]
  726. }]
  727. },
  728. "componentType": "modal"
  729. }
  730. },
  731. "crosssell": {
  732. "type": "container",
  733. "name": "crosssell",
  734. "children": {
  735. "record": {
  736. "type": "container",
  737. "name": "record",
  738. "children": {
  739. "id": {
  740. "type": "form.input",
  741. "name": "id",
  742. "dataScope": "id",
  743. "config": {
  744. "component": "Magento_Ui\/js\/form\/element\/text",
  745. "template": "ui\/form\/field",
  746. "componentType": "field",
  747. "formElement": "input",
  748. "elementTmpl": "ui\/dynamic-rows\/cells\/text",
  749. "dataType": "text",
  750. "fit": false,
  751. "label": "ID",
  752. "sortOrder": 0
  753. }
  754. },
  755. "thumbnail": {
  756. "type": "form.input",
  757. "name": "thumbnail",
  758. "dataScope": "thumbnail",
  759. "config": {
  760. "component": "Magento_Ui\/js\/form\/element\/abstract",
  761. "template": "ui\/form\/field",
  762. "componentType": "field",
  763. "formElement": "input",
  764. "elementTmpl": "ui\/dynamic-rows\/cells\/thumbnail",
  765. "dataType": "text",
  766. "fit": true,
  767. "label": "Thumbnail",
  768. "sortOrder": 10
  769. }
  770. },
  771. "name": {
  772. "type": "form.input",
  773. "name": "name",
  774. "dataScope": "name",
  775. "config": {
  776. "component": "Magento_Ui\/js\/form\/element\/text",
  777. "template": "ui\/form\/field",
  778. "componentType": "field",
  779. "formElement": "input",
  780. "elementTmpl": "ui\/dynamic-rows\/cells\/text",
  781. "dataType": "text",
  782. "fit": false,
  783. "label": "Name",
  784. "sortOrder": 20
  785. }
  786. },
  787. "status": {
  788. "type": "form.input",
  789. "name": "status",
  790. "dataScope": "status",
  791. "config": {
  792. "component": "Magento_Ui\/js\/form\/element\/text",
  793. "template": "ui\/form\/field",
  794. "componentType": "field",
  795. "formElement": "input",
  796. "elementTmpl": "ui\/dynamic-rows\/cells\/text",
  797. "dataType": "text",
  798. "fit": true,
  799. "label": "Status",
  800. "sortOrder": 30
  801. }
  802. },
  803. "attribute_set": {
  804. "type": "form.input",
  805. "name": "attribute_set",
  806. "dataScope": "attribute_set",
  807. "config": {
  808. "component": "Magento_Ui\/js\/form\/element\/text",
  809. "template": "ui\/form\/field",
  810. "componentType": "field",
  811. "formElement": "input",
  812. "elementTmpl": "ui\/dynamic-rows\/cells\/text",
  813. "dataType": "text",
  814. "fit": false,
  815. "label": "Attribute Set",
  816. "sortOrder": 40
  817. }
  818. },
  819. "sku": {
  820. "type": "form.input",
  821. "name": "sku",
  822. "dataScope": "sku",
  823. "config": {
  824. "component": "Magento_Ui\/js\/form\/element\/text",
  825. "template": "ui\/form\/field",
  826. "componentType": "field",
  827. "formElement": "input",
  828. "elementTmpl": "ui\/dynamic-rows\/cells\/text",
  829. "dataType": "text",
  830. "fit": true,
  831. "label": "SKU",
  832. "sortOrder": 50
  833. }
  834. },
  835. "price": {
  836. "type": "form.input",
  837. "name": "price",
  838. "dataScope": "price",
  839. "config": {
  840. "component": "Magento_Ui\/js\/form\/element\/text",
  841. "template": "ui\/form\/field",
  842. "componentType": "field",
  843. "formElement": "input",
  844. "elementTmpl": "ui\/dynamic-rows\/cells\/text",
  845. "dataType": "text",
  846. "fit": true,
  847. "label": "Price",
  848. "sortOrder": 60
  849. }
  850. },
  851. "actionDelete": {
  852. "type": "actionDelete",
  853. "name": "actionDelete",
  854. "config": {
  855. "component": "Magento_Ui\/js\/form\/element\/abstract",
  856. "elementTmpl": "ui\/dynamic-rows\/cells\/action-delete",
  857. "template": "ui\/dynamic-rows\/cells\/action-delete",
  858. "additionalClasses": "data-grid-actions-cell",
  859. "componentType": "actionDelete",
  860. "dataType": "text",
  861. "label": "Actions",
  862. "sortOrder": 70,
  863. "fit": true
  864. }
  865. },
  866. "position": {
  867. "type": "form.input",
  868. "name": "position",
  869. "dataScope": "position",
  870. "config": {
  871. "component": "Magento_Ui\/js\/form\/element\/abstract",
  872. "template": "ui\/form\/field",
  873. "dataType": "number",
  874. "formElement": "input",
  875. "componentType": "field",
  876. "sortOrder": 80,
  877. "visible": false
  878. }
  879. }
  880. },
  881. "dataScope": "",
  882. "config": {
  883. "component": "Magento_Ui\/js\/dynamic-rows\/record",
  884. "componentType": "container",
  885. "isTemplate": true,
  886. "is_collection": true
  887. }
  888. }
  889. },
  890. "dataScope": "data.links",
  891. "config": {
  892. "component": "Magento_Ui\/js\/dynamic-rows\/dynamic-rows-grid",
  893. "template": "ui\/dynamic-rows\/templates\/grid",
  894. "additionalClasses": "admin__field-wide",
  895. "componentType": "dynamicRows",
  896. "label": null,
  897. "columnsHeader": false,
  898. "columnsHeaderAfterRender": true,
  899. "renderDefaultRecord": false,
  900. "addButton": false,
  901. "recordTemplate": "record",
  902. "deleteButtonLabel": "Remove",
  903. "dataProvider": "crosssell_product_listing",
  904. "map": {
  905. "id": "entity_id",
  906. "name": "name",
  907. "status": "status_text",
  908. "attribute_set": "attribute_set_text",
  909. "sku": "sku",
  910. "price": "price",
  911. "thumbnail": "thumbnail_src"
  912. },
  913. "links": {"insertData": "${ $.provider }:${ $.dataProvider }"},
  914. "sortOrder": 2
  915. }
  916. }
  917. },
  918. "dataScope": "",
  919. "config": {
  920. "additionalClasses": "admin__fieldset-section",
  921. "label": "Cross-Sell Products",
  922. "collapsible": false,
  923. "componentType": "fieldset",
  924. "sortOrder": 30
  925. }
  926. }
  927. },
  928. "dataScope": "",
  929. "config": {
  930. "label": "Related Products, Up-Sells, and Cross-Sells",
  931. "collapsible": true,
  932. "componentType": "fieldset",
  933. "sortOrder": 90
  934. }
  935. }
  936. },
  937. "dataScope": "data",
  938. "config": {"namespace": "type_form"}
  939. },
  940. "type_form_data_source": {
  941. "type": "dataSource",
  942. "name": "type_form_data_source",
  943. "dataScope": "type_form",
  944. "config": {
  945. "data": {
  946. "id": "1",
  947. "name": "Name",
  948. "links": {"crosssell": [], "related": [], "upsell": []}
  949. },
  950. "submit_url": "http:\/\/mage2.local\/admin\/ibundlemanager\/type\/save\/key\/77249d1598c0dceb5ed5b39cf69604a72beade3280370992aea974ed865e0b7f\/",
  951. "params": {"namespace": "type_form"}
  952. }
  953. }
  954. }
  955. }
  956. }
  957. }
  958. }
  959. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement