From 3712046713bf3b622680fc1f39db964f3ce178db Mon Sep 17 00:00:00 2001 From: Gianmarco Brunialti Date: Sat, 21 Sep 2024 10:55:10 +0200 Subject: [PATCH] LPD-34676 Commerce Site Initializer layouts --- .../cart/display-page-template.json | 6 +++ .../cart/page-definition.json | 41 +++++++++++++++++++ .../order/display-page-template.json | 6 +++ .../order/page-definition.json | 41 +++++++++++++++++++ .../pending-orders/page-definition.json | 30 ++++++++++++++ .../placed-orders/page-definition.json | 30 ++++++++++++++ 6 files changed, 154 insertions(+) create mode 100644 modules/apps/commerce/commerce-site-initializer/commerce-site-initializer/src/main/resources/site-initializer/layout-page-templates/display-page-templates/cart/display-page-template.json create mode 100644 modules/apps/commerce/commerce-site-initializer/commerce-site-initializer/src/main/resources/site-initializer/layout-page-templates/display-page-templates/cart/page-definition.json create mode 100644 modules/apps/commerce/commerce-site-initializer/commerce-site-initializer/src/main/resources/site-initializer/layout-page-templates/display-page-templates/order/display-page-template.json create mode 100644 modules/apps/commerce/commerce-site-initializer/commerce-site-initializer/src/main/resources/site-initializer/layout-page-templates/display-page-templates/order/page-definition.json diff --git a/modules/apps/commerce/commerce-site-initializer/commerce-site-initializer/src/main/resources/site-initializer/layout-page-templates/display-page-templates/cart/display-page-template.json b/modules/apps/commerce/commerce-site-initializer/commerce-site-initializer/src/main/resources/site-initializer/layout-page-templates/display-page-templates/cart/display-page-template.json new file mode 100644 index 00000000000000..462e77f2a825b2 --- /dev/null +++ b/modules/apps/commerce/commerce-site-initializer/commerce-site-initializer/src/main/resources/site-initializer/layout-page-templates/display-page-templates/cart/display-page-template.json @@ -0,0 +1,6 @@ +{ + "contentType": { + "className": "com.liferay.commerce.model.CommerceOrder" + }, + "name": "cart" +} \ No newline at end of file diff --git a/modules/apps/commerce/commerce-site-initializer/commerce-site-initializer/src/main/resources/site-initializer/layout-page-templates/display-page-templates/cart/page-definition.json b/modules/apps/commerce/commerce-site-initializer/commerce-site-initializer/src/main/resources/site-initializer/layout-page-templates/display-page-templates/cart/page-definition.json new file mode 100644 index 00000000000000..37c1b7c66fff43 --- /dev/null +++ b/modules/apps/commerce/commerce-site-initializer/commerce-site-initializer/src/main/resources/site-initializer/layout-page-templates/display-page-templates/cart/page-definition.json @@ -0,0 +1,41 @@ +{ + "pageElement": { + "pageElements": [ + { + "definition": { + "fragmentSettings": { + "unallowedFragments": [ + ] + } + }, + "type": "DropZone" + }, + { + "definition": { + "fragment": { + "key": "com.liferay.frontend.data.set.admin.web.internal.fragment.renderer.FDSAdminFragmentRenderer" + }, + "fragmentConfig": { + "itemSelector": { + "className": "com.liferay.object.model.ObjectDefinition#[$OBJECT_DEFINITION_ID:FDSView$]", + "classPK": "[$FDS_VIEW_ERC:commerce-pending-order-items-data-set-view$]", + "externalReferenceCode": "commerce-pending-order-items-data-set-view", + "itemType": "_com_liferay_layout_content_page_editor_web_internal_portlet_ContentPageEditorPortlet_selectInfoItem" + } + }, + "fragmentFields": [ + ], + "indexed": true + }, + "type": "Fragment" + } + ], + "type": "Root" + }, + "settings": { + "masterPage": { + "key": "commerce-classic-master" + } + }, + "version": 1.1 +} \ No newline at end of file diff --git a/modules/apps/commerce/commerce-site-initializer/commerce-site-initializer/src/main/resources/site-initializer/layout-page-templates/display-page-templates/order/display-page-template.json b/modules/apps/commerce/commerce-site-initializer/commerce-site-initializer/src/main/resources/site-initializer/layout-page-templates/display-page-templates/order/display-page-template.json new file mode 100644 index 00000000000000..7a2f086f3335a9 --- /dev/null +++ b/modules/apps/commerce/commerce-site-initializer/commerce-site-initializer/src/main/resources/site-initializer/layout-page-templates/display-page-templates/order/display-page-template.json @@ -0,0 +1,6 @@ +{ + "contentType": { + "className": "com.liferay.commerce.model.CommerceOrder" + }, + "name": "order" +} \ No newline at end of file diff --git a/modules/apps/commerce/commerce-site-initializer/commerce-site-initializer/src/main/resources/site-initializer/layout-page-templates/display-page-templates/order/page-definition.json b/modules/apps/commerce/commerce-site-initializer/commerce-site-initializer/src/main/resources/site-initializer/layout-page-templates/display-page-templates/order/page-definition.json new file mode 100644 index 00000000000000..288a0b2070a93d --- /dev/null +++ b/modules/apps/commerce/commerce-site-initializer/commerce-site-initializer/src/main/resources/site-initializer/layout-page-templates/display-page-templates/order/page-definition.json @@ -0,0 +1,41 @@ +{ + "pageElement": { + "pageElements": [ + { + "definition": { + "fragmentSettings": { + "unallowedFragments": [ + ] + } + }, + "type": "DropZone" + }, + { + "definition": { + "fragment": { + "key": "com.liferay.frontend.data.set.admin.web.internal.fragment.renderer.FDSAdminFragmentRenderer" + }, + "fragmentConfig": { + "itemSelector": { + "className": "com.liferay.object.model.ObjectDefinition#[$OBJECT_DEFINITION_ID:FDSView$]", + "classPK": "[$FDS_VIEW_ERC:commerce-placed-order-items-data-set-view$]", + "externalReferenceCode": "commerce-placed-order-items-data-set-view", + "itemType": "_com_liferay_layout_content_page_editor_web_internal_portlet_ContentPageEditorPortlet_selectInfoItem" + } + }, + "fragmentFields": [ + ], + "indexed": true + }, + "type": "Fragment" + } + ], + "type": "Root" + }, + "settings": { + "masterPage": { + "key": "commerce-classic-master" + } + }, + "version": 1.1 +} \ No newline at end of file diff --git a/modules/apps/commerce/commerce-site-initializer/commerce-site-initializer/src/main/resources/site-initializer/layouts/pending-orders/page-definition.json b/modules/apps/commerce/commerce-site-initializer/commerce-site-initializer/src/main/resources/site-initializer/layouts/pending-orders/page-definition.json index da212350c6edba..35858eb58e3d70 100644 --- a/modules/apps/commerce/commerce-site-initializer/commerce-site-initializer/src/main/resources/site-initializer/layouts/pending-orders/page-definition.json +++ b/modules/apps/commerce/commerce-site-initializer/commerce-site-initializer/src/main/resources/site-initializer/layouts/pending-orders/page-definition.json @@ -1,5 +1,35 @@ { "pageElement": { + "pageElements": [ + { + "definition": { + "fragmentSettings": { + "unallowedFragments": [ + ] + } + }, + "type": "DropZone" + }, + { + "definition": { + "fragment": { + "key": "com.liferay.frontend.data.set.admin.web.internal.fragment.renderer.FDSAdminFragmentRenderer" + }, + "fragmentConfig": { + "itemSelector": { + "className": "com.liferay.object.model.ObjectDefinition#[$OBJECT_DEFINITION_ID:FDSView$]", + "classPK": "[$FDS_VIEW_ERC:commerce-pending-orders-data-set-view$]", + "externalReferenceCode": "commerce-pending-orders-data-set-view", + "itemType": "_com_liferay_layout_content_page_editor_web_internal_portlet_ContentPageEditorPortlet_selectInfoItem" + } + }, + "fragmentFields": [ + ], + "indexed": true + }, + "type": "Fragment" + } + ], "type": "Root" }, "settings": { diff --git a/modules/apps/commerce/commerce-site-initializer/commerce-site-initializer/src/main/resources/site-initializer/layouts/placed-orders/page-definition.json b/modules/apps/commerce/commerce-site-initializer/commerce-site-initializer/src/main/resources/site-initializer/layouts/placed-orders/page-definition.json index da212350c6edba..ec96e905160b84 100644 --- a/modules/apps/commerce/commerce-site-initializer/commerce-site-initializer/src/main/resources/site-initializer/layouts/placed-orders/page-definition.json +++ b/modules/apps/commerce/commerce-site-initializer/commerce-site-initializer/src/main/resources/site-initializer/layouts/placed-orders/page-definition.json @@ -1,5 +1,35 @@ { "pageElement": { + "pageElements": [ + { + "definition": { + "fragmentSettings": { + "unallowedFragments": [ + ] + } + }, + "type": "DropZone" + }, + { + "definition": { + "fragment": { + "key": "com.liferay.frontend.data.set.admin.web.internal.fragment.renderer.FDSAdminFragmentRenderer" + }, + "fragmentConfig": { + "itemSelector": { + "className": "com.liferay.object.model.ObjectDefinition#[$OBJECT_DEFINITION_ID:FDSView$]", + "classPK": "[$FDS_VIEW_ERC:commerce-placed-orders-data-set-view$]", + "externalReferenceCode": "commerce-placed-orders-data-set-view", + "itemType": "_com_liferay_layout_content_page_editor_web_internal_portlet_ContentPageEditorPortlet_selectInfoItem" + } + }, + "fragmentFields": [ + ], + "indexed": true + }, + "type": "Fragment" + } + ], "type": "Root" }, "settings": {