Single selection filter for default value fields.
<\/div>",
- "renderingClass": null,
- "renderingData": null,
- "border": false,
- "name": "Layout",
- "type": null,
- "region": null,
- "title": "",
- "width": null,
- "height": null,
- "collapsible": false,
- "collapsed": false,
- "bodyStyle": "padding: 10px; background-color: #d9edf7; border-color: #bce8f1 !important; color: #31708f;",
- "datatype": "layout",
- "permissions": null,
- "children": [],
- "locked": false
- },
- {
- "fieldtype": "input",
- "width": 400,
- "defaultValue": null,
- "queryColumnType": "varchar",
- "columnType": "varchar",
- "columnLength": 255,
- "regex": "",
- "unique": false,
- "showCharCount": false,
- "name": "label",
- "title": "Label",
- "tooltip": "",
- "mandatory": false,
- "noteditable": false,
- "index": null,
- "locked": false,
- "style": "",
- "permissions": null,
- "datatype": "data",
- "relationType": false,
- "invisible": false,
- "visibleGridView": false,
- "visibleSearch": false,
- "defaultValueGenerator": ""
- },
- {
- "fieldtype": "indexFieldSelection",
- "queryColumnType": {
- "tenant": "varchar(100)",
- "field": "varchar(200)",
- "preSelect": "text"
- },
- "columnType": {
- "tenant": "varchar(100)",
- "field": "varchar(200)",
- "preSelect": "text"
- },
- "width": 400,
- "considerTenants": true,
- "multiPreSelect": "remote_single",
- "filterGroups": [
- "string",
- "double"
- ],
- "predefinedPreSelectOptions": [],
- "name": "field",
- "title": "Field",
- "tooltip": "",
- "mandatory": false,
- "noteditable": false,
- "index": null,
- "locked": false,
- "style": "",
- "permissions": null,
- "datatype": "data",
- "relationType": false,
- "invisible": false,
- "visibleGridView": false,
- "visibleSearch": false
- },
- {
- "fieldtype": "input",
- "width": 400,
- "defaultValue": null,
- "queryColumnType": "varchar",
- "columnType": "varchar",
- "columnLength": 255,
- "regex": "",
- "unique": false,
- "showCharCount": false,
- "name": "scriptPath",
- "title": "Script Path",
- "tooltip": "",
- "mandatory": false,
- "noteditable": false,
- "index": null,
- "locked": false,
- "style": "",
- "permissions": null,
- "datatype": "data",
- "relationType": false,
- "invisible": false,
- "visibleGridView": false,
- "visibleSearch": false,
- "defaultValueGenerator": ""
- }
- ],
- "locked": false,
- "icon": "",
- "labelWidth": 100,
- "labelAlign": "left"
- }
- ],
- "locked": false,
- "icon": null,
- "labelWidth": 100,
- "labelAlign": "left"
- }
-}
diff --git a/bundles/EcommerceFrameworkBundle/src/Resources/install/fieldcollection_sources/fieldcollection_OrderByFields_export.json b/bundles/EcommerceFrameworkBundle/src/Resources/install/fieldcollection_sources/fieldcollection_OrderByFields_export.json
deleted file mode 100644
index f95113ec0b3..00000000000
--- a/bundles/EcommerceFrameworkBundle/src/Resources/install/fieldcollection_sources/fieldcollection_OrderByFields_export.json
+++ /dev/null
@@ -1,194 +0,0 @@
-{
- "key": null,
- "parentClass": "",
- "implementsInterfaces": "",
- "title": "",
- "group": "Filter Definition",
- "layoutDefinitions": {
- "fieldtype": "panel",
- "layout": null,
- "border": false,
- "name": null,
- "type": null,
- "region": null,
- "title": null,
- "width": 0,
- "height": 0,
- "collapsible": false,
- "collapsed": false,
- "bodyStyle": null,
- "datatype": "layout",
- "permissions": null,
- "children": [
- {
- "fieldtype": "panel",
- "layout": "",
- "border": false,
- "name": "Layout",
- "type": "",
- "region": "",
- "title": "",
- "width": "",
- "height": "",
- "collapsible": false,
- "collapsed": false,
- "bodyStyle": "",
- "datatype": "layout",
- "permissions": null,
- "children": [
- {
- "fieldtype": "indexFieldSelectionCombo",
- "specificPriceField": false,
- "showAllFields": false,
- "considerTenants": true,
- "options": [
- {
- "key": "categoryIds",
- "value": "categoryIds"
- },
- {
- "key": "name",
- "value": "name"
- },
- {
- "key": "seoname",
- "value": "seoname"
- },
- {
- "key": "description",
- "value": "description"
- },
- {
- "key": "ean",
- "value": "ean"
- },
- {
- "key": "artno",
- "value": "artno"
- },
- {
- "key": "gender",
- "value": "gender"
- },
- {
- "key": "color",
- "value": "color"
- },
- {
- "key": "size",
- "value": "size"
- },
- {
- "key": "price",
- "value": "price"
- },
- {
- "key": "foottype",
- "value": "foottype"
- },
- {
- "key": "gaittype",
- "value": "gaittype"
- },
- {
- "key": "fittings",
- "value": "fittings"
- },
- {
- "key": "zips",
- "value": "zips"
- },
- {
- "key": "approvals",
- "value": "approvals"
- },
- {
- "key": "rating",
- "value": "rating"
- },
- {
- "key": "features",
- "value": "features"
- },
- {
- "key": "attributes",
- "value": "attributes"
- },
- {
- "key": "technologies",
- "value": "technologies"
- }
- ],
- "width": 300,
- "defaultValue": null,
- "optionsProviderClass": null,
- "optionsProviderData": null,
- "queryColumnType": "varchar(255)",
- "columnType": "varchar(255)",
- "columnLength": 190,
- "dynamicOptions": false,
- "name": "field",
- "title": "Field",
- "tooltip": "",
- "mandatory": false,
- "noteditable": false,
- "index": null,
- "locked": false,
- "style": "",
- "permissions": null,
- "datatype": "data",
- "relationType": false,
- "invisible": false,
- "visibleGridView": false,
- "visibleSearch": false,
- "defaultValueGenerator": ""
- },
- {
- "fieldtype": "select",
- "options": [
- {
- "key": "asc",
- "value": "asc"
- },
- {
- "key": "desc",
- "value": "desc"
- }
- ],
- "width": 500,
- "defaultValue": "",
- "optionsProviderClass": null,
- "optionsProviderData": null,
- "queryColumnType": "varchar(255)",
- "columnType": "varchar(255)",
- "columnLength": 190,
- "dynamicOptions": false,
- "name": "direction",
- "title": "Direction",
- "tooltip": "",
- "mandatory": false,
- "noteditable": false,
- "index": null,
- "locked": false,
- "style": "",
- "permissions": null,
- "datatype": "data",
- "relationType": false,
- "invisible": false,
- "visibleGridView": false,
- "visibleSearch": false,
- "defaultValueGenerator": ""
- }
- ],
- "locked": false,
- "icon": null,
- "labelWidth": 100,
- "labelAlign": "left"
- }
- ],
- "locked": false,
- "icon": null,
- "labelWidth": 100,
- "labelAlign": "left"
- }
-}
diff --git a/bundles/EcommerceFrameworkBundle/src/Resources/install/fieldcollection_sources/fieldcollection_OrderPriceModifications_export.json b/bundles/EcommerceFrameworkBundle/src/Resources/install/fieldcollection_sources/fieldcollection_OrderPriceModifications_export.json
deleted file mode 100644
index dd0c4b4815c..00000000000
--- a/bundles/EcommerceFrameworkBundle/src/Resources/install/fieldcollection_sources/fieldcollection_OrderPriceModifications_export.json
+++ /dev/null
@@ -1,164 +0,0 @@
-{
- "key": null,
- "parentClass": "",
- "implementsInterfaces": "",
- "title": "",
- "group": "Order Details",
- "layoutDefinitions": {
- "fieldtype": "panel",
- "layout": null,
- "border": false,
- "name": null,
- "type": null,
- "region": null,
- "title": null,
- "width": 0,
- "height": 0,
- "collapsible": false,
- "collapsed": false,
- "bodyStyle": null,
- "datatype": "layout",
- "permissions": null,
- "children": [
- {
- "fieldtype": "panel",
- "layout": "",
- "border": false,
- "name": "Layout",
- "type": null,
- "region": "",
- "title": "",
- "width": "",
- "height": "",
- "collapsible": false,
- "collapsed": false,
- "bodyStyle": "",
- "datatype": "layout",
- "permissions": null,
- "children": [
- {
- "fieldtype": "input",
- "width": 300,
- "defaultValue": null,
- "queryColumnType": "varchar",
- "columnType": "varchar",
- "columnLength": 255,
- "regex": "",
- "unique": false,
- "showCharCount": false,
- "name": "name",
- "title": "Name",
- "tooltip": "",
- "mandatory": false,
- "noteditable": false,
- "index": null,
- "locked": false,
- "style": "",
- "permissions": null,
- "datatype": "data",
- "relationType": false,
- "invisible": false,
- "visibleGridView": false,
- "visibleSearch": false,
- "defaultValueGenerator": ""
- },
- {
- "fieldtype": "numeric",
- "width": 300,
- "defaultValue": null,
- "queryColumnType": "double",
- "columnType": "double",
- "integer": false,
- "unsigned": false,
- "minValue": null,
- "maxValue": null,
- "unique": false,
- "decimalSize": 19,
- "decimalPrecision": 4,
- "name": "netAmount",
- "title": "NetAmount",
- "tooltip": "",
- "mandatory": false,
- "noteditable": true,
- "index": null,
- "locked": false,
- "style": "",
- "permissions": null,
- "datatype": "data",
- "relationType": false,
- "invisible": false,
- "visibleGridView": false,
- "visibleSearch": false,
- "defaultValueGenerator": ""
- },
- {
- "fieldtype": "numeric",
- "width": null,
- "defaultValue": null,
- "queryColumnType": "double",
- "columnType": "double",
- "integer": true,
- "unsigned": false,
- "minValue": null,
- "maxValue": null,
- "unique": false,
- "decimalSize": null,
- "decimalPrecision": null,
- "name": "pricingRuleId",
- "title": "Applied pricing rule ID",
- "tooltip": "",
- "mandatory": false,
- "noteditable": true,
- "index": null,
- "locked": false,
- "style": "",
- "permissions": null,
- "datatype": "data",
- "relationType": false,
- "invisible": false,
- "visibleGridView": false,
- "visibleSearch": false,
- "defaultValueGenerator": ""
- },
- {
- "fieldtype": "numeric",
- "width": 300,
- "defaultValue": null,
- "queryColumnType": "double",
- "columnType": "double",
- "integer": false,
- "unsigned": false,
- "minValue": null,
- "maxValue": null,
- "unique": false,
- "decimalSize": 19,
- "decimalPrecision": 4,
- "name": "amount",
- "title": "Amount",
- "tooltip": "",
- "mandatory": false,
- "noteditable": true,
- "index": null,
- "locked": false,
- "style": "",
- "permissions": null,
- "datatype": "data",
- "relationType": false,
- "invisible": false,
- "visibleGridView": false,
- "visibleSearch": false,
- "defaultValueGenerator": ""
- }
- ],
- "locked": false,
- "icon": null,
- "labelWidth": 100,
- "labelAlign": "left"
- }
- ],
- "locked": false,
- "icon": null,
- "labelWidth": 100,
- "labelAlign": "left"
- }
-}
diff --git a/bundles/EcommerceFrameworkBundle/src/Resources/install/fieldcollection_sources/fieldcollection_PaymentInfo_export.json b/bundles/EcommerceFrameworkBundle/src/Resources/install/fieldcollection_sources/fieldcollection_PaymentInfo_export.json
deleted file mode 100644
index 376854bd4b6..00000000000
--- a/bundles/EcommerceFrameworkBundle/src/Resources/install/fieldcollection_sources/fieldcollection_PaymentInfo_export.json
+++ /dev/null
@@ -1,251 +0,0 @@
-{
- "key": null,
- "parentClass": "\\Pimcore\\Bundle\\EcommerceFrameworkBundle\\Model\\AbstractPaymentInformation",
- "implementsInterfaces": "",
- "title": "",
- "group": "Order Details",
- "layoutDefinitions": {
- "fieldtype": "panel",
- "layout": null,
- "border": false,
- "name": null,
- "type": null,
- "region": null,
- "title": null,
- "width": 0,
- "height": 0,
- "collapsible": false,
- "collapsed": false,
- "bodyStyle": null,
- "datatype": "layout",
- "permissions": null,
- "children": [
- {
- "fieldtype": "panel",
- "layout": null,
- "border": false,
- "name": "Layout",
- "type": null,
- "region": null,
- "title": "",
- "width": null,
- "height": null,
- "collapsible": false,
- "collapsed": false,
- "bodyStyle": "",
- "datatype": "layout",
- "permissions": null,
- "children": [
- {
- "fieldtype": "datetime",
- "queryColumnType": "bigint(20)",
- "columnType": "bigint(20)",
- "defaultValue": null,
- "useCurrentDate": false,
- "name": "paymentStart",
- "title": "Payment Start",
- "tooltip": "",
- "mandatory": false,
- "noteditable": true,
- "index": null,
- "locked": false,
- "style": "",
- "permissions": null,
- "datatype": "data",
- "relationType": false,
- "invisible": false,
- "visibleGridView": false,
- "visibleSearch": false,
- "defaultValueGenerator": ""
- },
- {
- "fieldtype": "datetime",
- "queryColumnType": "bigint(20)",
- "columnType": "bigint(20)",
- "defaultValue": null,
- "useCurrentDate": false,
- "name": "paymentFinish",
- "title": "Payment Finish",
- "tooltip": "",
- "mandatory": false,
- "noteditable": true,
- "index": null,
- "locked": false,
- "style": "",
- "permissions": null,
- "datatype": "data",
- "relationType": false,
- "invisible": false,
- "visibleGridView": false,
- "visibleSearch": false,
- "defaultValueGenerator": ""
- },
- {
- "fieldtype": "input",
- "width": 500,
- "defaultValue": null,
- "queryColumnType": "varchar",
- "columnType": "varchar",
- "columnLength": 255,
- "regex": "",
- "unique": false,
- "showCharCount": false,
- "name": "paymentReference",
- "title": "Payment Reference",
- "tooltip": "",
- "mandatory": false,
- "noteditable": true,
- "index": null,
- "locked": false,
- "style": "",
- "permissions": null,
- "datatype": "data",
- "relationType": false,
- "invisible": false,
- "visibleGridView": false,
- "visibleSearch": false,
- "defaultValueGenerator": ""
- },
- {
- "fieldtype": "select",
- "options": [
- {
- "key": "Committed",
- "value": "committed"
- },
- {
- "key": "Cancelled",
- "value": "cancelled"
- },
- {
- "key": "Payment Init",
- "value": "paymentInit"
- },
- {
- "key": "Payment Pending",
- "value": "paymentPending"
- },
- {
- "key": "Payment Authorized",
- "value": "paymentAuthorized"
- },
- {
- "key": "Aborted",
- "value": "aborted"
- },
- {
- "key": "Aborted but Response Received",
- "value": "abortedButResponseReceived"
- }
- ],
- "width": 500,
- "defaultValue": "",
- "optionsProviderClass": null,
- "optionsProviderData": null,
- "queryColumnType": "varchar(255)",
- "columnType": "varchar(255)",
- "columnLength": 190,
- "dynamicOptions": false,
- "name": "paymentState",
- "title": "Payment State",
- "tooltip": "",
- "mandatory": false,
- "noteditable": true,
- "index": null,
- "locked": false,
- "style": "",
- "permissions": null,
- "datatype": "data",
- "relationType": false,
- "invisible": false,
- "visibleGridView": false,
- "visibleSearch": false,
- "defaultValueGenerator": ""
- },
- {
- "fieldtype": "input",
- "width": 500,
- "defaultValue": null,
- "queryColumnType": "varchar",
- "columnType": "varchar",
- "columnLength": 255,
- "regex": "",
- "unique": false,
- "showCharCount": false,
- "name": "internalPaymentId",
- "title": "Internal Payment ID",
- "tooltip": "",
- "mandatory": false,
- "noteditable": true,
- "index": null,
- "locked": false,
- "style": "",
- "permissions": null,
- "datatype": "data",
- "relationType": false,
- "invisible": false,
- "visibleGridView": false,
- "visibleSearch": false,
- "defaultValueGenerator": ""
- },
- {
- "fieldtype": "textarea",
- "width": 500,
- "height": 100,
- "maxLength": null,
- "showCharCount": false,
- "excludeFromSearchIndex": false,
- "queryColumnType": "longtext",
- "columnType": "longtext",
- "name": "message",
- "title": "Message",
- "tooltip": "",
- "mandatory": false,
- "noteditable": true,
- "index": null,
- "locked": false,
- "style": "",
- "permissions": null,
- "datatype": "data",
- "relationType": false,
- "invisible": false,
- "visibleGridView": false,
- "visibleSearch": false
- },
- {
- "fieldtype": "textarea",
- "width": 500,
- "height": 200,
- "maxLength": null,
- "showCharCount": false,
- "excludeFromSearchIndex": false,
- "queryColumnType": "longtext",
- "columnType": "longtext",
- "name": "providerData",
- "title": "Provider Data",
- "tooltip": "JSON",
- "mandatory": false,
- "noteditable": true,
- "index": null,
- "locked": false,
- "style": "",
- "permissions": null,
- "datatype": "data",
- "relationType": false,
- "invisible": false,
- "visibleGridView": false,
- "visibleSearch": false
- }
- ],
- "locked": false,
- "icon": null,
- "labelWidth": 150,
- "labelAlign": "left"
- }
- ],
- "locked": false,
- "icon": null,
- "labelWidth": 100,
- "labelAlign": "left"
- }
-}
diff --git a/bundles/EcommerceFrameworkBundle/src/Resources/install/fieldcollection_sources/fieldcollection_PricingRule_export.json b/bundles/EcommerceFrameworkBundle/src/Resources/install/fieldcollection_sources/fieldcollection_PricingRule_export.json
deleted file mode 100644
index 668b0fdd81f..00000000000
--- a/bundles/EcommerceFrameworkBundle/src/Resources/install/fieldcollection_sources/fieldcollection_PricingRule_export.json
+++ /dev/null
@@ -1,139 +0,0 @@
-{
- "key": null,
- "parentClass": "",
- "implementsInterfaces": "",
- "title": "",
- "group": "Order Details",
- "layoutDefinitions": {
- "fieldtype": "panel",
- "layout": null,
- "border": false,
- "name": null,
- "type": null,
- "region": null,
- "title": null,
- "width": 0,
- "height": 0,
- "collapsible": false,
- "collapsed": false,
- "bodyStyle": null,
- "datatype": "layout",
- "permissions": null,
- "children": [
- {
- "fieldtype": "panel",
- "layout": null,
- "border": false,
- "name": "Layout",
- "type": null,
- "region": null,
- "title": null,
- "width": null,
- "height": null,
- "collapsible": false,
- "collapsed": false,
- "bodyStyle": null,
- "datatype": "layout",
- "permissions": null,
- "children": [
- {
- "fieldtype": "numeric",
- "width": 100,
- "defaultValue": null,
- "queryColumnType": "double",
- "columnType": "double",
- "integer": false,
- "unsigned": false,
- "minValue": null,
- "maxValue": null,
- "unique": false,
- "decimalSize": null,
- "decimalPrecision": null,
- "name": "ruleId",
- "title": "Rule Id",
- "tooltip": "",
- "mandatory": false,
- "noteditable": false,
- "index": null,
- "locked": false,
- "style": "",
- "permissions": null,
- "datatype": "data",
- "relationType": false,
- "invisible": false,
- "visibleGridView": false,
- "visibleSearch": false,
- "defaultValueGenerator": ""
- },
- {
- "fieldtype": "localizedfields",
- "children": [
- {
- "fieldtype": "input",
- "width": 300,
- "defaultValue": null,
- "queryColumnType": "varchar",
- "columnType": "varchar",
- "columnLength": 255,
- "regex": "",
- "unique": false,
- "showCharCount": false,
- "name": "name",
- "title": "Name",
- "tooltip": "",
- "mandatory": false,
- "noteditable": false,
- "index": null,
- "locked": false,
- "style": "",
- "permissions": null,
- "datatype": "data",
- "relationType": false,
- "invisible": false,
- "visibleGridView": false,
- "visibleSearch": false,
- "defaultValueGenerator": ""
- }
- ],
- "name": "localizedfields",
- "region": null,
- "layout": null,
- "title": "",
- "width": "",
- "height": "",
- "maxTabs": null,
- "border": false,
- "provideSplitView": null,
- "tabPosition": "top",
- "hideLabelsWhenTabsReached": null,
- "fieldDefinitionsCache": null,
- "permissionView": [],
- "permissionEdit": [],
- "tooltip": "",
- "mandatory": false,
- "noteditable": false,
- "index": null,
- "locked": false,
- "style": "",
- "permissions": null,
- "datatype": "data",
- "relationType": false,
- "invisible": false,
- "visibleGridView": true,
- "visibleSearch": true,
- "labelWidth": null,
- "labelAlign": "left"
- }
- ],
- "locked": false,
- "icon": null,
- "labelWidth": 100,
- "labelAlign": "left"
- }
- ],
- "locked": false,
- "icon": null,
- "labelWidth": 100,
- "labelAlign": "left"
- }
-}
diff --git a/bundles/EcommerceFrameworkBundle/src/Resources/install/fieldcollection_sources/fieldcollection_SimilarityField_export.json b/bundles/EcommerceFrameworkBundle/src/Resources/install/fieldcollection_sources/fieldcollection_SimilarityField_export.json
deleted file mode 100644
index fcb04de9e1f..00000000000
--- a/bundles/EcommerceFrameworkBundle/src/Resources/install/fieldcollection_sources/fieldcollection_SimilarityField_export.json
+++ /dev/null
@@ -1,187 +0,0 @@
-{
- "key": null,
- "parentClass": "",
- "implementsInterfaces": "",
- "title": "",
- "group": "Filter Definition",
- "layoutDefinitions": {
- "fieldtype": "panel",
- "layout": null,
- "border": false,
- "name": null,
- "type": null,
- "region": null,
- "title": null,
- "width": 0,
- "height": 0,
- "collapsible": false,
- "collapsed": false,
- "bodyStyle": null,
- "datatype": "layout",
- "permissions": null,
- "children": [
- {
- "fieldtype": "panel",
- "layout": "",
- "border": false,
- "name": "Layout",
- "type": "",
- "region": "",
- "title": "",
- "width": "",
- "height": "",
- "collapsible": false,
- "collapsed": false,
- "bodyStyle": "",
- "datatype": "layout",
- "permissions": null,
- "children": [
- {
- "fieldtype": "indexFieldSelectionCombo",
- "specificPriceField": false,
- "showAllFields": true,
- "considerTenants": true,
- "options": [
- {
- "key": "categoryIds",
- "value": "categoryIds"
- },
- {
- "key": "name",
- "value": "name"
- },
- {
- "key": "seoname",
- "value": "seoname"
- },
- {
- "key": "description",
- "value": "description"
- },
- {
- "key": "ean",
- "value": "ean"
- },
- {
- "key": "artno",
- "value": "artno"
- },
- {
- "key": "gender",
- "value": "gender"
- },
- {
- "key": "color",
- "value": "color"
- },
- {
- "key": "size",
- "value": "size"
- },
- {
- "key": "price",
- "value": "price"
- },
- {
- "key": "foottype",
- "value": "foottype"
- },
- {
- "key": "gaittype",
- "value": "gaittype"
- },
- {
- "key": "fittings",
- "value": "fittings"
- },
- {
- "key": "zips",
- "value": "zips"
- },
- {
- "key": "approvals",
- "value": "approvals"
- },
- {
- "key": "rating",
- "value": "rating"
- },
- {
- "key": "features",
- "value": "features"
- },
- {
- "key": "attributes",
- "value": "attributes"
- },
- {
- "key": "technologies",
- "value": "technologies"
- }
- ],
- "width": 300,
- "defaultValue": null,
- "optionsProviderClass": null,
- "optionsProviderData": null,
- "queryColumnType": "varchar(255)",
- "columnType": "varchar(255)",
- "columnLength": 190,
- "dynamicOptions": false,
- "name": "field",
- "title": "Field",
- "tooltip": "",
- "mandatory": false,
- "noteditable": false,
- "index": null,
- "locked": false,
- "style": "",
- "permissions": null,
- "datatype": "data",
- "relationType": false,
- "invisible": false,
- "visibleGridView": false,
- "visibleSearch": false,
- "defaultValueGenerator": ""
- },
- {
- "fieldtype": "numeric",
- "width": 300,
- "defaultValue": 1,
- "queryColumnType": "double",
- "columnType": "double",
- "integer": false,
- "unsigned": false,
- "minValue": null,
- "maxValue": null,
- "unique": false,
- "decimalSize": null,
- "decimalPrecision": null,
- "name": "weight",
- "title": "Weight",
- "tooltip": "",
- "mandatory": false,
- "noteditable": false,
- "index": null,
- "locked": false,
- "style": "",
- "permissions": null,
- "datatype": "data",
- "relationType": false,
- "invisible": false,
- "visibleGridView": false,
- "visibleSearch": false,
- "defaultValueGenerator": ""
- }
- ],
- "locked": false,
- "icon": null,
- "labelWidth": 100,
- "labelAlign": "left"
- }
- ],
- "locked": false,
- "icon": null,
- "labelWidth": 100,
- "labelAlign": "left"
- }
-}
diff --git a/bundles/EcommerceFrameworkBundle/src/Resources/install/fieldcollection_sources/fieldcollection_TaxEntry_export.json b/bundles/EcommerceFrameworkBundle/src/Resources/install/fieldcollection_sources/fieldcollection_TaxEntry_export.json
deleted file mode 100644
index 6ac70af543a..00000000000
--- a/bundles/EcommerceFrameworkBundle/src/Resources/install/fieldcollection_sources/fieldcollection_TaxEntry_export.json
+++ /dev/null
@@ -1,166 +0,0 @@
-{
- "key": null,
- "parentClass": "",
- "implementsInterfaces": "",
- "title": "",
- "group": "",
- "layoutDefinitions": {
- "fieldtype": "panel",
- "layout": null,
- "border": false,
- "name": null,
- "type": null,
- "region": null,
- "title": null,
- "width": 0,
- "height": 0,
- "collapsible": false,
- "collapsed": false,
- "bodyStyle": null,
- "datatype": "layout",
- "permissions": null,
- "children": [
- {
- "fieldtype": "panel",
- "layout": null,
- "border": false,
- "name": "Layout",
- "type": null,
- "region": null,
- "title": null,
- "width": null,
- "height": null,
- "collapsible": false,
- "collapsed": false,
- "bodyStyle": null,
- "datatype": "layout",
- "permissions": null,
- "children": [
- {
- "fieldtype": "localizedfields",
- "children": [
- {
- "fieldtype": "input",
- "width": null,
- "defaultValue": null,
- "queryColumnType": "varchar",
- "columnType": "varchar",
- "columnLength": 190,
- "regex": "",
- "unique": false,
- "showCharCount": false,
- "name": "name",
- "title": "Name",
- "tooltip": "",
- "mandatory": true,
- "noteditable": false,
- "index": null,
- "locked": false,
- "style": "",
- "permissions": null,
- "datatype": "data",
- "relationType": false,
- "invisible": false,
- "visibleGridView": false,
- "visibleSearch": false,
- "defaultValueGenerator": ""
- }
- ],
- "name": "localizedfields",
- "region": null,
- "layout": null,
- "title": "",
- "width": "",
- "height": "",
- "maxTabs": null,
- "border": false,
- "provideSplitView": null,
- "tabPosition": "top",
- "hideLabelsWhenTabsReached": null,
- "fieldDefinitionsCache": {
- "name": {
- "fieldtype": "input",
- "width": null,
- "defaultValue": null,
- "queryColumnType": "varchar",
- "columnType": "varchar",
- "columnLength": 190,
- "regex": "",
- "unique": false,
- "showCharCount": false,
- "name": "name",
- "title": "Name",
- "tooltip": "",
- "mandatory": true,
- "noteditable": false,
- "index": null,
- "locked": false,
- "style": "",
- "permissions": null,
- "datatype": "data",
- "relationType": false,
- "invisible": false,
- "visibleGridView": false,
- "visibleSearch": false,
- "defaultValueGenerator": ""
- }
- },
- "permissionView": [],
- "permissionEdit": [],
- "tooltip": "",
- "mandatory": false,
- "noteditable": false,
- "index": null,
- "locked": false,
- "style": "",
- "permissions": null,
- "datatype": "data",
- "relationType": false,
- "invisible": false,
- "visibleGridView": true,
- "visibleSearch": true,
- "labelWidth": null,
- "labelAlign": "left"
- },
- {
- "fieldtype": "numeric",
- "width": "",
- "defaultValue": null,
- "queryColumnType": "double",
- "columnType": "double",
- "integer": false,
- "unsigned": false,
- "minValue": null,
- "maxValue": null,
- "unique": false,
- "decimalSize": null,
- "decimalPrecision": null,
- "name": "percent",
- "title": "Tax Rate in Percent",
- "tooltip": "",
- "mandatory": true,
- "noteditable": false,
- "index": null,
- "locked": false,
- "style": "",
- "permissions": null,
- "datatype": "data",
- "relationType": false,
- "invisible": false,
- "visibleGridView": false,
- "visibleSearch": false,
- "defaultValueGenerator": ""
- }
- ],
- "locked": false,
- "icon": null,
- "labelWidth": 100,
- "labelAlign": "left"
- }
- ],
- "locked": false,
- "icon": null,
- "labelWidth": 100,
- "labelAlign": "left"
- }
-}
diff --git a/bundles/EcommerceFrameworkBundle/src/Resources/install/fieldcollection_sources/fieldcollection_VoucherTokenTypePattern_export.json b/bundles/EcommerceFrameworkBundle/src/Resources/install/fieldcollection_sources/fieldcollection_VoucherTokenTypePattern_export.json
deleted file mode 100644
index a8d017398e9..00000000000
--- a/bundles/EcommerceFrameworkBundle/src/Resources/install/fieldcollection_sources/fieldcollection_VoucherTokenTypePattern_export.json
+++ /dev/null
@@ -1,330 +0,0 @@
-{
- "key": null,
- "parentClass": "\\Pimcore\\Bundle\\EcommerceFrameworkBundle\\Model\\AbstractVoucherTokenType",
- "implementsInterfaces": null,
- "title": "",
- "group": "Voucher",
- "layoutDefinitions": {
- "fieldtype": "panel",
- "layout": null,
- "border": false,
- "name": null,
- "type": null,
- "region": null,
- "title": null,
- "width": null,
- "height": null,
- "collapsible": false,
- "collapsed": false,
- "bodyStyle": null,
- "datatype": "layout",
- "permissions": null,
- "children": [
- {
- "fieldtype": "panel",
- "layout": "",
- "border": false,
- "name": "Layout",
- "type": null,
- "region": "",
- "title": "Pattern",
- "width": "",
- "height": "",
- "collapsible": false,
- "collapsed": false,
- "bodyStyle": "",
- "datatype": "layout",
- "permissions": null,
- "children": [
- {
- "fieldtype": "text",
- "html": "Generate tokens based on a pattern with specific settings. ",
- "renderingClass": null,
- "renderingData": null,
- "border": false,
- "name": "Layout",
- "type": null,
- "region": null,
- "title": "",
- "width": null,
- "height": null,
- "collapsible": false,
- "collapsed": false,
- "bodyStyle": "padding: 10px; background-color: #d9edf7; border-color: #bce8f1 !important; color: #31708f;",
- "datatype": "layout",
- "permissions": null,
- "children": [],
- "locked": false
- },
- {
- "fieldtype": "fieldset",
- "name": "general settings",
- "type": null,
- "region": "",
- "title": "General Settings",
- "width": null,
- "height": null,
- "collapsible": false,
- "collapsed": false,
- "bodyStyle": "150",
- "datatype": "layout",
- "permissions": null,
- "children": [
- {
- "fieldtype": "numeric",
- "width": 400,
- "defaultValue": null,
- "queryColumnType": "double",
- "columnType": "double",
- "integer": true,
- "unsigned": true,
- "minValue": 1,
- "maxValue": null,
- "unique": false,
- "decimalSize": null,
- "decimalPrecision": null,
- "name": "count",
- "title": "Token Count",
- "tooltip": "",
- "mandatory": false,
- "noteditable": false,
- "index": null,
- "locked": false,
- "style": "",
- "permissions": null,
- "datatype": "data",
- "relationType": false,
- "invisible": false,
- "visibleGridView": false,
- "visibleSearch": false,
- "defaultValueGenerator": ""
- },
- {
- "fieldtype": "input",
- "width": 400,
- "defaultValue": null,
- "queryColumnType": "varchar",
- "columnType": "varchar",
- "columnLength": 255,
- "regex": "",
- "unique": false,
- "showCharCount": false,
- "name": "prefix",
- "title": "Prefix",
- "tooltip": "",
- "mandatory": false,
- "noteditable": false,
- "index": null,
- "locked": false,
- "style": "",
- "permissions": null,
- "datatype": "data",
- "relationType": false,
- "invisible": false,
- "visibleGridView": false,
- "visibleSearch": false,
- "defaultValueGenerator": ""
- },
- {
- "fieldtype": "numeric",
- "width": 400,
- "defaultValue": null,
- "queryColumnType": "double",
- "columnType": "double",
- "integer": true,
- "unsigned": true,
- "minValue": 1,
- "maxValue": null,
- "unique": false,
- "decimalSize": null,
- "decimalPrecision": null,
- "name": "length",
- "title": "Length",
- "tooltip": "",
- "mandatory": false,
- "noteditable": false,
- "index": null,
- "locked": false,
- "style": "",
- "permissions": null,
- "datatype": "data",
- "relationType": false,
- "invisible": false,
- "visibleGridView": false,
- "visibleSearch": false,
- "defaultValueGenerator": ""
- },
- {
- "fieldtype": "select",
- "options": [
- {
- "key": "Alpha",
- "value": "alpha"
- },
- {
- "key": "Numeric",
- "value": "numeric"
- },
- {
- "key": "Alpha-Numeric",
- "value": "alphaNumeric"
- }
- ],
- "width": 400,
- "defaultValue": "",
- "optionsProviderClass": null,
- "optionsProviderData": null,
- "queryColumnType": "varchar(255)",
- "columnType": "varchar(255)",
- "columnLength": 190,
- "dynamicOptions": false,
- "name": "characterType",
- "title": "Character Type",
- "tooltip": "",
- "mandatory": true,
- "noteditable": false,
- "index": null,
- "locked": false,
- "style": "",
- "permissions": null,
- "datatype": "data",
- "relationType": false,
- "invisible": false,
- "visibleGridView": false,
- "visibleSearch": false,
- "defaultValueGenerator": ""
- }
- ],
- "locked": false,
- "labelWidth": 100,
- "labelAlign": "left"
- },
- {
- "fieldtype": "fieldset",
- "name": "additionals",
- "type": null,
- "region": "",
- "title": "Additional Settings",
- "width": "",
- "height": "",
- "collapsible": false,
- "collapsed": false,
- "bodyStyle": "",
- "datatype": "layout",
- "permissions": null,
- "children": [
- {
- "fieldtype": "input",
- "width": 400,
- "defaultValue": null,
- "queryColumnType": "varchar",
- "columnType": "varchar",
- "columnLength": 255,
- "regex": "^[\\-|\\.|\\#|\\,|\\\/|\\+\\_]{1}$",
- "unique": false,
- "showCharCount": false,
- "name": "separator",
- "title": "Separator",
- "tooltip": "",
- "mandatory": false,
- "noteditable": false,
- "index": null,
- "locked": false,
- "style": "",
- "permissions": null,
- "datatype": "data",
- "relationType": false,
- "invisible": false,
- "visibleGridView": false,
- "visibleSearch": false,
- "defaultValueGenerator": ""
- },
- {
- "fieldtype": "numeric",
- "width": 400,
- "defaultValue": 4,
- "queryColumnType": "double",
- "columnType": "double",
- "integer": true,
- "unsigned": true,
- "minValue": 1,
- "maxValue": null,
- "unique": false,
- "decimalSize": null,
- "decimalPrecision": null,
- "name": "separatorCount",
- "title": "Every x character",
- "tooltip": "",
- "mandatory": false,
- "noteditable": false,
- "index": null,
- "locked": false,
- "style": "",
- "permissions": null,
- "datatype": "data",
- "relationType": false,
- "invisible": false,
- "visibleGridView": false,
- "visibleSearch": false,
- "defaultValueGenerator": ""
- },
- {
- "fieldtype": "checkbox",
- "defaultValue": 0,
- "queryColumnType": "tinyint(1)",
- "columnType": "tinyint(1)",
- "name": "allowOncePerCart",
- "title": "Only allow one token of this type per cart",
- "tooltip": "",
- "mandatory": false,
- "noteditable": false,
- "index": null,
- "locked": false,
- "style": "",
- "permissions": null,
- "datatype": "data",
- "relationType": false,
- "invisible": false,
- "visibleGridView": false,
- "visibleSearch": false,
- "defaultValueGenerator": ""
- },
- {
- "fieldtype": "checkbox",
- "defaultValue": 0,
- "queryColumnType": "tinyint(1)",
- "columnType": "tinyint(1)",
- "name": "onlyTokenPerCart",
- "title": "Only token of a cart",
- "tooltip": "",
- "mandatory": false,
- "noteditable": false,
- "index": null,
- "locked": false,
- "style": "",
- "permissions": null,
- "datatype": "data",
- "relationType": false,
- "invisible": false,
- "visibleGridView": false,
- "visibleSearch": false,
- "defaultValueGenerator": ""
- }
- ],
- "locked": false,
- "labelWidth": 100,
- "labelAlign": "left"
- }
- ],
- "locked": false,
- "icon": null,
- "labelWidth": 100,
- "labelAlign": "left"
- }
- ],
- "locked": false,
- "icon": null,
- "labelWidth": 100,
- "labelAlign": "left"
- }
-}
diff --git a/bundles/EcommerceFrameworkBundle/src/Resources/install/fieldcollection_sources/fieldcollection_VoucherTokenTypeSingle_export.json b/bundles/EcommerceFrameworkBundle/src/Resources/install/fieldcollection_sources/fieldcollection_VoucherTokenTypeSingle_export.json
deleted file mode 100644
index 0f4df66a2b3..00000000000
--- a/bundles/EcommerceFrameworkBundle/src/Resources/install/fieldcollection_sources/fieldcollection_VoucherTokenTypeSingle_export.json
+++ /dev/null
@@ -1,147 +0,0 @@
-{
- "key": null,
- "parentClass": "\\Pimcore\\Bundle\\EcommerceFrameworkBundle\\Model\\AbstractVoucherTokenType",
- "implementsInterfaces": null,
- "title": "",
- "group": "Voucher",
- "layoutDefinitions": {
- "fieldtype": "panel",
- "layout": null,
- "border": false,
- "name": null,
- "type": null,
- "region": null,
- "title": null,
- "width": null,
- "height": null,
- "collapsible": false,
- "collapsed": false,
- "bodyStyle": null,
- "datatype": "layout",
- "permissions": null,
- "children": [
- {
- "fieldtype": "panel",
- "layout": null,
- "border": false,
- "name": "Layout",
- "type": null,
- "region": null,
- "title": "Single",
- "width": null,
- "height": null,
- "collapsible": false,
- "collapsed": false,
- "bodyStyle": "",
- "datatype": "layout",
- "permissions": null,
- "children": [
- {
- "fieldtype": "text",
- "html": "Specify one single token and allow usage of this token multiple times. ",
- "renderingClass": null,
- "renderingData": null,
- "border": false,
- "name": "Layout",
- "type": null,
- "region": null,
- "title": "",
- "width": null,
- "height": null,
- "collapsible": false,
- "collapsed": false,
- "bodyStyle": "padding: 10px; background-color: #d9edf7; border-color: #bce8f1 !important; color: #31708f;",
- "datatype": "layout",
- "permissions": null,
- "children": [],
- "locked": false
- },
- {
- "fieldtype": "input",
- "width": 500,
- "defaultValue": null,
- "queryColumnType": "varchar",
- "columnType": "varchar",
- "columnLength": 255,
- "regex": "^((?!\\s).)*$",
- "unique": false,
- "showCharCount": false,
- "name": "token",
- "title": "Token",
- "tooltip": "",
- "mandatory": false,
- "noteditable": false,
- "index": null,
- "locked": false,
- "style": "",
- "permissions": null,
- "datatype": "data",
- "relationType": false,
- "invisible": false,
- "visibleGridView": false,
- "visibleSearch": false,
- "defaultValueGenerator": ""
- },
- {
- "fieldtype": "numeric",
- "width": 500,
- "defaultValue": 1,
- "queryColumnType": "double",
- "columnType": "double",
- "integer": true,
- "unsigned": true,
- "minValue": 1,
- "maxValue": null,
- "unique": false,
- "decimalSize": null,
- "decimalPrecision": null,
- "name": "usages",
- "title": "Usage count",
- "tooltip": "",
- "mandatory": false,
- "noteditable": false,
- "index": null,
- "locked": false,
- "style": "",
- "permissions": null,
- "datatype": "data",
- "relationType": false,
- "invisible": false,
- "visibleGridView": false,
- "visibleSearch": false,
- "defaultValueGenerator": ""
- },
- {
- "fieldtype": "checkbox",
- "defaultValue": 0,
- "queryColumnType": "tinyint(1)",
- "columnType": "tinyint(1)",
- "name": "onlyTokenPerCart",
- "title": "Only token of a cart",
- "tooltip": "",
- "mandatory": false,
- "noteditable": false,
- "index": null,
- "locked": false,
- "style": "",
- "permissions": null,
- "datatype": "data",
- "relationType": false,
- "invisible": false,
- "visibleGridView": false,
- "visibleSearch": false,
- "defaultValueGenerator": ""
- }
- ],
- "locked": false,
- "icon": null,
- "labelWidth": 150,
- "labelAlign": "left"
- }
- ],
- "locked": false,
- "icon": null,
- "labelWidth": 100,
- "labelAlign": "left"
- }
-}
diff --git a/bundles/EcommerceFrameworkBundle/src/Resources/public/css/back-office.css b/bundles/EcommerceFrameworkBundle/src/Resources/public/css/back-office.css
deleted file mode 100644
index 3a92b027fd5..00000000000
--- a/bundles/EcommerceFrameworkBundle/src/Resources/public/css/back-office.css
+++ /dev/null
@@ -1,159 +0,0 @@
-/**
- * Pimcore
- *
- * This source file is available under two different licenses:
- * - GNU General Public License version 3 (GPLv3)
- * - Pimcore Commercial License (PCL)
- * Full copyright and license information is available in
- * LICENSE.md which is distributed with this source code.
- *
- * @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org)
- * @license http://www.pimcore.org/license GPLv3 and PCL
- */
-
-a {
- color: #428bca;
- text-decoration: none;
-}
-
-.table th, .table td {
- padding: 0.5rem;
-}
-
-.order-detail .tabpanel-customer-info {
- margin-bottom: 20px;
-}
-.order-detail .tabpanel-customer-info .tab-content {
- border: 1px solid #ddd;
- padding: 15px;
- border-top: 0;
- border-bottom-right-radius: 4px;
- border-bottom-left-radius: 4px;
-}
-.order-detail .tabpanel-customer-info .tab-content .address-map {
- margin: -15px 0 -15px 0;
-}
-
-.timeline {
- position: relative;
- padding: 21px 0 10px;
- margin-bottom: 20px;
-}
-
-.timeline .line {
- position: absolute;
- width: 4px;
- display: block;
- background: currentColor;
- top: 0;
- bottom: 40px;
- margin-left: 30px;
-}
-
-.timeline .separator {
- border-top: 1px solid currentColor;
- padding: 5px;
- padding-left: 40px;
- font-style: italic;
- font-size: .9em;
- margin-left: 30px;
-}
-
-.timeline .line::before { top: -4px; }
-.timeline .line::after { bottom: -4px; }
-.timeline .line::before,
-.timeline .line::after {
- content: '';
- position: absolute;
- left: -4px;
- width: 12px;
- height: 12px;
- display: block;
- border-radius: 50%;
- background: currentColor;
-}
-
-.timeline .panel {
- position: relative;
- margin: 10px 0px 21px 70px;
- clear: both;
-}
-
-.timeline .panel::before {
- position: absolute;
- display: block;
- top: 8px;
- left: -24px;
- content: '';
- width: 0px;
- height: 0px;
- border: inherit;
- border-width: 12px;
- border-top-color: transparent;
- border-bottom-color: transparent;
- border-left-color: transparent;
-}
-
-.timeline .panel .panel-heading.icon * { font-size: 18px; vertical-align: middle; line-height: 40px; }
-.timeline .panel .panel-heading.icon {
- position: absolute;
- left: -59px;
- display: block;
- width: 40px;
- height: 40px;
- padding: 0px;
- border-radius: 50%;
- text-align: center;
- float: left;
-}
-
-.timeline .panel-outline {
- border-color: transparent;
- background: transparent;
- box-shadow: none;
-}
-
-.timeline .panel-outline .panel-body {
- padding: 10px 0px;
-}
-
-.timeline .panel-outline .panel-heading:not(.icon),
-.timeline .panel-outline .panel-footer {
- display: none;
-}
-
-
-.table.table-order-items {
-
-}
-
-.fa {
- line-height: 1.5;
-}
-
-.picker__holder {
- min-width: 300px;
- overflow: hidden;
-}
-
-/*
-.count-circle {
- position: absolute;
- top: -2%;
- right: 12%;
- font-size: 10px;
- font-weight: 800;
- background: rgba(41,200,41,0.9);
- color: rgb(255,255,255);
- line-height: 1em;
- padding: 3px 5px;
- -webkit-border-radius: 10px;
- -moz-border-radius: 10px;
- -ms-border-radius: 10px;
- -o-border-radius: 10px;
- border-radius: 10px;
- z-index: 400;
- top: 12%;
- font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
-}
-*/
\ No newline at end of file
diff --git a/bundles/EcommerceFrameworkBundle/src/Resources/public/css/backend.css b/bundles/EcommerceFrameworkBundle/src/Resources/public/css/backend.css
deleted file mode 100644
index 581565eee2c..00000000000
--- a/bundles/EcommerceFrameworkBundle/src/Resources/public/css/backend.css
+++ /dev/null
@@ -1,46 +0,0 @@
-/**
- * Pimcore
- *
- * This source file is available under two different licenses:
- * - GNU General Public License version 3 (GPLv3)
- * - Pimcore Commercial License (PCL)
- * Full copyright and license information is available in
- * LICENSE.md which is distributed with this source code.
- *
- * @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org)
- * @license http://www.pimcore.org/license GPLv3 and PCL
- */
-
-
-.bundle_ecommerce_nav_icon_shopping_cart{
- background: url('/bundles/pimcoreadmin/img/material-icons/outline-shopping_cart-24px.svg') center center no-repeat !important;
-}
-
-.pimcore_icon_indexFieldSelectionField {
- background: url("/bundles/pimcoreadmin/img/flat-color-icons/empty_filter.svg") no-repeat center center !important;
-}
-
-.pimcore_icon_indexFieldSelectionCombo {
- background: url("/bundles/pimcoreadmin/img/flat-color-icons/tree_select.svg") no-repeat scroll center center transparent !important;
-}
-
-.pimcore_icon_indexFieldSelection {
- background: url("/bundles/pimcoreadmin/img/flat-color-icons/filled_filter.svg") no-repeat center center !important;
-}
-
-
-.pimcore_icon_data_group_ecommerce {
- background: url("/bundles/pimcoreadmin/img/flat-color-icons/shopping-cart.svg") center center no-repeat !important;
-}
-
-.bundle_ecommerce_clear_config_cache {
- background: url("/bundles/pimcoreadmin/img/flat-color-icons/flash_on.svg") center center no-repeat !important;
-}
-
-.bundle_ecommerce_back-office_order {
- background: url("/bundles/pimcoreadmin/img/flat-color-icons/tachometer.svg") center center no-repeat !important;
-}
-
-.plugin_voucherservice_icon {
- background: url("/bundles/pimcoreadmin/img/flat-color-icons/diamond.svg") center center no-repeat !important;
-}
diff --git a/bundles/EcommerceFrameworkBundle/src/Resources/public/css/pricing.css b/bundles/EcommerceFrameworkBundle/src/Resources/public/css/pricing.css
deleted file mode 100644
index 1aead8cf1b6..00000000000
--- a/bundles/EcommerceFrameworkBundle/src/Resources/public/css/pricing.css
+++ /dev/null
@@ -1,112 +0,0 @@
-/**
- * Pimcore
- *
- * This source file is available under two different licenses:
- * - GNU General Public License version 3 (GPLv3)
- * - Pimcore Commercial License (PCL)
- * Full copyright and license information is available in
- * LICENSE.md which is distributed with this source code.
- *
- * @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org)
- * @license http://www.pimcore.org/license GPLv3 and PCL
- */
-
-
-/** Main Menu **/
-.bundle_ecommerce_pricing_rules {
- background: url("/bundles/pimcoreadmin/img/flat-color-icons/percent.svg") no-repeat center center !important;
-}
-
-/** Tree **/
-.bundle_ecommerce_pricing_icon_rule_additiv {
- position: relative;
- background: url("/bundles/pimcoreadmin/img/flat-color-icons/percent.svg") no-repeat center center !important;
-}
-.bundle_ecommerce_pricing_icon_rule_additiv:before {
- position: absolute;
- width: 9px;
- height: 9px;
- bottom: 4px;
- right: 0;
- content: "";
- background: url(/bundles/pimcoreadmin/img/flat-color-icons/plus-circle.svg) center center no-repeat;
- background-size: cover;
-}
-
-
-.bundle_ecommerce_pricing_icon_rule_stopExecute {
- position: relative;
- background: url("/bundles/pimcoreadmin/img/flat-color-icons/percent.svg") no-repeat center center !important;
-}
-.bundle_ecommerce_pricing_icon_rule_stopExecute:before {
- position: absolute;
- width: 9px;
- height: 9px;
- bottom: 4px;
- right: 0;
- content: "";
- background: url(/bundles/pimcoreadmin/img/flat-color-icons/stop-circle.svg) center center no-repeat;
- background-size: cover;
-}
-
-.bundle_ecommerce_pricing_icon_rule_disabled {
- background: url("/bundles/pimcoreadmin/img/flat-color-icons/percent.svg") no-repeat center center !important;
- -webkit-filter: grayscale(100%) brightness(200%);
- filter: grayscale(100%) brightness(200%);
-
-}
-
-/** Condition **/
-.bundle_ecommerce_pricing_icon_condition_bracket {
- margin: 0 20px !important;
-}
-.bundle_ecommerce_pricing_icon_conditionCartAmount {
- background: url("/bundles/pimcoreadmin/img/flat-color-icons/shopping-cart.svg") no-repeat center center !important;
-}
-.bundle_ecommerce_pricing_icon_conditionDateRange {
- background: url("/bundles/pimcoreadmin/img/flat-color-icons/calendar.svg") no-repeat center center !important;
-}
-.bundle_ecommerce_pricing_icon_conditionCatalogProduct {
- background: url("/bundles/pimcoreadmin/img/flat-color-icons/camera.svg") no-repeat center center !important;
-}
-.bundle_ecommerce_pricing_icon_conditionCatalogCategory {
- background: url("/bundles/pimcoreadmin/img/flat-color-icons/folder.svg") no-repeat center center !important;
-}
-.bundle_ecommerce_pricing_icon_conditionCatalogCategory:before {
- position: absolute;
- width: 15px;
- height: 15px;
- top: 4px;
- right: 0;
- content: "";
- background: url(/bundles/pimcoreadmin/img/flat-color-icons/camera.svg) center center no-repeat;
- background-size: cover;
-}
-.bundle_ecommerce_pricing_icon_conditionSold,
-.bundle_ecommerce_pricing_icon_conditionSales {
- background: url("/bundles/pimcoreadmin/img/flat-color-icons/sales_performance.svg") no-repeat center center !important;
-}
-.bundle_ecommerce_pricing_icon_conditionClientIp {
- background: url("/bundles/pimcoreadmin/img/flat-color-icons/laptop.svg") no-repeat center center !important;
-}
-.bundle_ecommerce_pricing_icon_conditionVoucherToken {
- background: url("/bundles/pimcoreadmin/img/flat-color-icons/diamond.svg") no-repeat center center !important;
-}
-.bundle_ecommerce_pricing_icon_conditionTenant {
- background: url("/bundles/pimcoreadmin/img/flat-color-icons/department.svg") no-repeat center center !important;
-}
-.bundle_ecommerce_pricing_icon_conditionTargetGroup {
- background: url("/bundles/pimcoreadmin/img/flat-color-icons/manager.svg") no-repeat center center !important;
-}
-
-/** Actions **/
-.bundle_ecommerce_pricing_icon_actionGift {
- background: url("/bundles/pimcoreadmin/img/flat-color-icons/gift.svg") no-repeat center center !important;
-}
-.bundle_ecommerce_pricing_icon_actionCartDiscount,
-.bundle_ecommerce_pricing_icon_actionProductDiscount {
- background: url("/bundles/pimcoreadmin/img/flat-color-icons/donate.svg") no-repeat center center !important;
-}
-.bundle_ecommerce_pricing_icon_actionFreeShipping {
- background: url("/bundles/pimcoreadmin/img/flat-color-icons/in_transit.svg") no-repeat center center !important;
-}
diff --git a/bundles/EcommerceFrameworkBundle/src/Resources/public/css/voucherservice/style.css b/bundles/EcommerceFrameworkBundle/src/Resources/public/css/voucherservice/style.css
deleted file mode 100644
index c473f786bcb..00000000000
--- a/bundles/EcommerceFrameworkBundle/src/Resources/public/css/voucherservice/style.css
+++ /dev/null
@@ -1,226 +0,0 @@
-/**
- * Pimcore
- *
- * This source file is available under two different licenses:
- * - GNU General Public License version 3 (GPLv3)
- * - Pimcore Commercial License (PCL)
- * Full copyright and license information is available in
- * LICENSE.md which is distributed with this source code.
- *
- * @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org)
- * @license http://www.pimcore.org/license GPLv3 and PCL
- */
-
-a {
- color: #428bca;
- text-decoration: none;
-}
-
-.picker__holder {
- min-width: 300px;
-}
-
-.border{
- border: 1px solid #ccc;
-}
-div.statistics {
- padding: 25px;
-}
-
-h3 {
- margin-top: 0;
-}
-
-div.table-container table td {
- font-size: 0.8em;
- padding: 2px;
-}
-
-div.table-container table tr td:first-of-type{
- max-width: 300px;
- word-wrap: break-word;
-}
-.token {
- font-family: courier;
-}
-
-div.form-group.form-group-50 {
- width: 50%
-}
-
-.form-control.form-control-25 {
- width: 25%;
-}
-
-.form-control.form-control-50 {
- width: 50%;
-}
-
-.form-control[type="checkbox"]{
- height: 25px;
-}
-.form-control.js-datepicker{
- cursor: pointer;
- background-color: #ffffff;
-}
-
-.header button.btn, .header a.btn {
- min-width: 150px;
-}
-
-.tab-content {
- border: 1px solid #ccc;
- border-top: 0;
- padding: 35px;
-}
-
-.nav.nav-tabs {
- margin-top: 20px;
-}
-
-div.token-container {
- border: 1px solid #ccc;
- padding: 25px;
-}
-
-div.token-overview {
- padding-right: 4%;
-}
-div.token-filter {
- padding-right: 3%;
-}
-
-div.header {
- padding: 25px;
- border: 1px solid #ccc;
- margin-bottom: 25px;
-}
-
-div.paging {
- padding-top: 15px;
-}
-
-ul.pagination {
- margin: 0;
-}
-
-div.alert {
- margin-bottom: 0;
- padding: 6px 25px;
-}
-
-.token-container .col h3 {
- margin-top: 5px;
- margin-bottom: 30px;
-}
-
-.table th {
- padding-top: 0;
-}
-
-.table.table-only-body{
- margin-bottom: 0;
- margin-top: 15px;
-}
-
-.form-horizontal {
- margin-top: 45px;
-}
-
-.token-container .table-container{
- margin-top: 20px;
-}
-.table.table-only-body tr:first-of-type td{
- border-top: 0;
-}
-
-.form-horizontal div.form-group {
- margin: 15px 0;
-}
-
-.filter .form-group .col {
- padding-right:0;
-}
-
-.token-container h5.subtitle{
- color: #909090;
- margin: 0;
- margin-left: 12px;
- margin-top: -15px;
-}
-
-/* MEDIA QUERIES */
-
-@media screen and (max-width: 1366px) {
- div.header, div.token-container {
- padding: 15px 5px;
- }
-
- .token-container div.col {
- padding: 0 5px;
- }
-
- .token-container .token-overview h3, .token-container h5 {
- padding-left: 15px;
- }
-
- .token-container .col.filter {
- padding-left: 25px;
- }
-}
-
-/* MODAL STYLING */
-
-div.modal-body-content, div.modal-footer {
- padding: 15px 35px;
-}
-
-.modal-body-content .form-group {
- margin: 25px 0;
-}
-
-.modal h3 {
- margin-top: 0;
-}
-
-
-.fade.in {
- opacity: 1;
-}
-.modal.in .modal-dialog {
- -webkit-transform: translate(0, 0);
- -o-transform: translate(0, 0);
- transform: translate(0, 0);
-}
-.modal-backdrop.in {
- opacity: 0.5;
-}
-
-div.content-block{
- padding-bottom: 50px;
-}
-
-.sort:hover{
- cursor: pointer;
-}
-.sort{
- font-size: 0.7em;
-}
-.sort.active{
- font-size: 1em;
-}
-a.pages-count{
- text-decoration: none;
- color: black;
-}
-a.pages-count:hover, a.pages-count.active{
- font-weight: bold;
-}
-
-.token-container h5.subtitle.pages{
- margin-right: 12px;
-}
-
-.form-horizontal .cleanup-radio{
- min-width: 100px;
-}
\ No newline at end of file
diff --git a/bundles/EcommerceFrameworkBundle/src/Resources/public/img/icon/gift.png b/bundles/EcommerceFrameworkBundle/src/Resources/public/img/icon/gift.png
deleted file mode 100644
index 98e563e1582..00000000000
Binary files a/bundles/EcommerceFrameworkBundle/src/Resources/public/img/icon/gift.png and /dev/null differ
diff --git a/bundles/EcommerceFrameworkBundle/src/Resources/public/img/icon/icon_onlineshop.png b/bundles/EcommerceFrameworkBundle/src/Resources/public/img/icon/icon_onlineshop.png
deleted file mode 100644
index bf9665206aa..00000000000
Binary files a/bundles/EcommerceFrameworkBundle/src/Resources/public/img/icon/icon_onlineshop.png and /dev/null differ
diff --git a/bundles/EcommerceFrameworkBundle/src/Resources/public/img/icon/onlineshop.png b/bundles/EcommerceFrameworkBundle/src/Resources/public/img/icon/onlineshop.png
deleted file mode 100644
index 7c5155c90be..00000000000
Binary files a/bundles/EcommerceFrameworkBundle/src/Resources/public/img/icon/onlineshop.png and /dev/null differ
diff --git a/bundles/EcommerceFrameworkBundle/src/Resources/public/img/icon/onlineshop2.png b/bundles/EcommerceFrameworkBundle/src/Resources/public/img/icon/onlineshop2.png
deleted file mode 100644
index 7c5155c90be..00000000000
Binary files a/bundles/EcommerceFrameworkBundle/src/Resources/public/img/icon/onlineshop2.png and /dev/null differ
diff --git a/bundles/EcommerceFrameworkBundle/src/Resources/public/img/icon/price-tag--exclamation.png b/bundles/EcommerceFrameworkBundle/src/Resources/public/img/icon/price-tag--exclamation.png
deleted file mode 100644
index ec645956032..00000000000
Binary files a/bundles/EcommerceFrameworkBundle/src/Resources/public/img/icon/price-tag--exclamation.png and /dev/null differ
diff --git a/bundles/EcommerceFrameworkBundle/src/Resources/public/img/icon/price_tag_plus.png b/bundles/EcommerceFrameworkBundle/src/Resources/public/img/icon/price_tag_plus.png
deleted file mode 100644
index 6881949376f..00000000000
Binary files a/bundles/EcommerceFrameworkBundle/src/Resources/public/img/icon/price_tag_plus.png and /dev/null differ
diff --git a/bundles/EcommerceFrameworkBundle/src/Resources/public/img/payment/wirecard-seamless/ccard.png b/bundles/EcommerceFrameworkBundle/src/Resources/public/img/payment/wirecard-seamless/ccard.png
deleted file mode 100644
index 97e9b6ec3e9..00000000000
Binary files a/bundles/EcommerceFrameworkBundle/src/Resources/public/img/payment/wirecard-seamless/ccard.png and /dev/null differ
diff --git a/bundles/EcommerceFrameworkBundle/src/Resources/public/img/payment/wirecard-seamless/payolution_ratepay.png b/bundles/EcommerceFrameworkBundle/src/Resources/public/img/payment/wirecard-seamless/payolution_ratepay.png
deleted file mode 100644
index 5fb93de48a3..00000000000
Binary files a/bundles/EcommerceFrameworkBundle/src/Resources/public/img/payment/wirecard-seamless/payolution_ratepay.png and /dev/null differ
diff --git a/bundles/EcommerceFrameworkBundle/src/Resources/public/img/payment/wirecard-seamless/paypal.png b/bundles/EcommerceFrameworkBundle/src/Resources/public/img/payment/wirecard-seamless/paypal.png
deleted file mode 100644
index 67f81c8dd6d..00000000000
Binary files a/bundles/EcommerceFrameworkBundle/src/Resources/public/img/payment/wirecard-seamless/paypal.png and /dev/null differ
diff --git a/bundles/EcommerceFrameworkBundle/src/Resources/public/img/payment/wirecard-seamless/sue.jpg b/bundles/EcommerceFrameworkBundle/src/Resources/public/img/payment/wirecard-seamless/sue.jpg
deleted file mode 100644
index 8363623607e..00000000000
Binary files a/bundles/EcommerceFrameworkBundle/src/Resources/public/img/payment/wirecard-seamless/sue.jpg and /dev/null differ
diff --git a/bundles/EcommerceFrameworkBundle/src/Resources/public/js/indexfieldselectionfield/data/indexFieldSelection.js b/bundles/EcommerceFrameworkBundle/src/Resources/public/js/indexfieldselectionfield/data/indexFieldSelection.js
deleted file mode 100644
index e5c99c25797..00000000000
--- a/bundles/EcommerceFrameworkBundle/src/Resources/public/js/indexfieldselectionfield/data/indexFieldSelection.js
+++ /dev/null
@@ -1,255 +0,0 @@
-/**
- * Pimcore
- *
- * This source file is available under two different licenses:
- * - GNU General Public License version 3 (GPLv3)
- * - Pimcore Commercial License (PCL)
- * Full copyright and license information is available in
- * LICENSE.md which is distributed with this source code.
- *
- * @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org)
- * @license http://www.pimcore.org/license GPLv3 and PCL
- */
-
-pimcore.registerNS("pimcore.object.classes.data.indexFieldSelection");
-/**
- * @private
- */
-pimcore.object.classes.data.indexFieldSelection = Class.create(pimcore.object.classes.data.data, {
-
- type: "indexFieldSelection",
- allowIndex: true,
-
- /**
- * define where this datatype is allowed
- */
- allowIn: {
- object: true,
- objectbrick: true,
- fieldcollection: true,
- localizedfield: true
- },
-
- initialize: function (treeNode, initData) {
- this.type = "indexFieldSelection";
-
- this.initData(initData);
-
- this.treeNode = treeNode;
- },
-
- getTypeName: function () {
- return t("indexFieldSelection");
- },
-
- getGroup: function () {
- return "ecommerce";
- },
-
- getIconClass: function () {
- return "pimcore_icon_indexFieldSelection";
- },
-
- getLayout: function ($super) {
-
- $super();
- this.specificPanel.removeAll();
-
- var filterGroups = Ext.create('Ext.ux.form.MultiSelect', {
- triggerAction: "all",
- fieldLabel: t("filtergroups"),
- editable: false,
- name: "filterGroups",
- store: new Ext.data.JsonStore({
- autoDestroy: true,
- autoLoad: true,
- proxy: {
- type: 'ajax',
- url: Routing.generate('pimcore_ecommerceframework_index_getfiltergroups'),
- reader: {
- rootProperty: 'data',
- idProperty: 'key'
- }
- },
- listeners: {
- load: function(store) {
- filterGroups.setValue(this.datax.filterGroups);
- }.bind(this)
- },
- fields: ['data']
- }),
- valueField: 'data',
- displayField: 'data',
- itemCls: "object_field",
- width: 500
- });
-
- this.specificPanel.add([
- {
- xtype: "spinnerfield",
- fieldLabel: t("width"),
- name: "width",
- value: this.datax.width
- },
- {
- xtype: "checkbox",
- fieldLabel: t("considerTenants"),
- name: "considerTenants",
- checked: this.datax.considerTenants
- },
- filterGroups,
- {
- xtype: "combo",
- triggerAction: "all",
- fieldLabel: t("preSelectMode"),
- editable: false,
- name: "multiPreSelect",
- mode: 'local',
- store: new Ext.data.ArrayStore({
- id: 0,
- fields: [
- 'key',
- 'value'
- ],
- data: [
- ['none', t('none')],
- ['remote_single', t('remote_single')],
- ['remote_multi', t('remote_multi')],
- ['local_single', t('local_single')],
- ['local_multi', t('local_multi')]
- ]
- }),
- valueField: 'key',
- displayField: 'value',
- width: 500,
- listeners: {
- select: function(combo, rec) {
- if(rec.data.key == "local_single" || rec.data.key == "local_multi") {
- this.valueGrid.setVisible(true);
- } else {
- this.valueGrid.setVisible(false);
- }
-
- }.bind(this)
- },
- value: this.datax.multiPreSelect
- },
- this.getPredefinedListGrid()
-
- ]);
-
- return this.layout;
- },
-
- getPredefinedListGrid: function() {
- if(typeof this.datax.predefinedPreSelectOptions != "object") {
- console.log("dd");
- this.datax.predefinedPreSelectOptions = [];
- }
-
- this.valueStore = new Ext.data.JsonStore({
- fields: ["key", "value"],
- data: this.datax.predefinedPreSelectOptions
- });
-
- this.cellEditing = Ext.create('Ext.grid.plugin.CellEditing', {
- clicksToEdit: 1
- });
-
- this.valueGrid = Ext.create('Ext.grid.Panel', {
- tbar: [{
- xtype: "tbtext",
- text: t("predefined_pre_select_options")
- }, "-", {
- xtype: "button",
- iconCls: "pimcore_icon_add",
- handler: function () {
- this.valueStore.insert(0, {
- key: "",
- value: ""
- });
- }.bind(this)
- }],
- style: "margin-top: 10px",
- store: this.valueStore,
- hidden: (this.datax.multiPreSelect != "local_single" && this.datax.multiPreSelect != "local_multi"),
- selModel: Ext.create('Ext.selection.RowModel', {}),
- plugins: [
- this.cellEditing
- ],
- columnLines: true,
- columns: [
- {header: t("display_name"), sortable: false, dataIndex: 'key', editor: new Ext.form.TextField({}),
- width: 200},
- {header: t("value"), sortable: false, dataIndex: 'value', editor: new Ext.form.TextField({}),
- width: 200},
- {
- xtype:'actioncolumn',
- width:40,
- items:[
- {
- tooltip:t('up'),
- icon:"/bundles/pimcoreadmin/img/flat-color-icons/up.svg",
- handler:function (grid, rowIndex) {
- if (rowIndex > 0) {
- var rec = grid.getStore().getAt(rowIndex);
- grid.getStore().removeAt(rowIndex);
- grid.getStore().insert(rowIndex - 1, [rec]);
- }
- }.bind(this)
- }
- ]
- },
- {
- xtype:'actioncolumn',
- width:40,
- items:[
- {
- tooltip:t('down'),
- icon:"/bundles/pimcoreadmin/img/flat-color-icons/down.svg",
- handler:function (grid, rowIndex) {
- if (rowIndex < (grid.getStore().getCount() - 1)) {
- var rec = grid.getStore().getAt(rowIndex);
- grid.getStore().removeAt(rowIndex);
- grid.getStore().insert(rowIndex + 1, [rec]);
- }
- }.bind(this)
- }
- ]
- },
- {
- xtype: 'actioncolumn',
- width: 40,
- items: [
- {
- tooltip: t('remove'),
- icon: "/bundles/pimcoreadmin/img/flat-color-icons/delete.svg",
- handler: function (grid, rowIndex) {
- grid.getStore().removeAt(rowIndex);
- }.bind(this)
- }
- ]
- }
- ],
- autoHeight: true
- });
-
- return this.valueGrid;
- },
- applyData: function ($super) {
-
- $super();
-
- var options = [];
-
- this.valueStore.commitChanges();
- this.valueStore.each(function (rec) {
- options.push({
- key: rec.get("key"),
- value: rec.get("value")
- });
- });
-
- this.datax.predefinedPreSelectOptions = options;
- }
-});
diff --git a/bundles/EcommerceFrameworkBundle/src/Resources/public/js/indexfieldselectionfield/data/indexFieldSelectionCombo.js b/bundles/EcommerceFrameworkBundle/src/Resources/public/js/indexfieldselectionfield/data/indexFieldSelectionCombo.js
deleted file mode 100644
index 4b2ab40a5d5..00000000000
--- a/bundles/EcommerceFrameworkBundle/src/Resources/public/js/indexfieldselectionfield/data/indexFieldSelectionCombo.js
+++ /dev/null
@@ -1,87 +0,0 @@
-/**
- * Pimcore
- *
- * This source file is available under two different licenses:
- * - GNU General Public License version 3 (GPLv3)
- * - Pimcore Commercial License (PCL)
- * Full copyright and license information is available in
- * LICENSE.md which is distributed with this source code.
- *
- * @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org)
- * @license http://www.pimcore.org/license GPLv3 and PCL
- */
-
-pimcore.registerNS("pimcore.object.classes.data.indexFieldSelectionCombo");
-/**
- * @private
- */
-pimcore.object.classes.data.indexFieldSelectionCombo = Class.create(pimcore.object.classes.data.data, {
-
- type: "indexFieldSelectionCombo",
- allowIndex: true,
-
- /**
- * define where this datatype is allowed
- */
- allowIn: {
- object: true,
- objectbrick: true,
- fieldcollection: true,
- localizedfield: true
- },
-
- initialize: function (treeNode, initData) {
- this.type = "indexFieldSelectionCombo";
-
- this.initData(initData);
-
- this.treeNode = treeNode;
- },
-
- getTypeName: function () {
- return t("indexFieldSelectionCombo");
- },
-
- getGroup: function () {
- return "ecommerce";
- },
-
- getIconClass: function () {
- return "pimcore_icon_indexFieldSelectionCombo";
- },
-
- getLayout: function ($super) {
-
- $super();
-
- this.specificPanel.removeAll();
- this.specificPanel.add([
- {
- xtype: "spinnerfield",
- fieldLabel: t("width"),
- name: "width",
- value: this.datax.width
- },
- {
- xtype: "checkbox",
- fieldLabel: t("specificPriceField"),
- name: "specificPriceField",
- checked: this.datax.specificPriceField
- },
- {
- xtype: "checkbox",
- fieldLabel: t("showAllFields"),
- name: "showAllFields",
- checked: this.datax.showAllFields
- },
- {
- xtype: "checkbox",
- fieldLabel: t("considerTenants"),
- name: "considerTenants",
- checked: this.datax.considerTenants
- }
- ]);
-
- return this.layout;
- }
-});
diff --git a/bundles/EcommerceFrameworkBundle/src/Resources/public/js/indexfieldselectionfield/data/indexFieldSelectionField.js b/bundles/EcommerceFrameworkBundle/src/Resources/public/js/indexfieldselectionfield/data/indexFieldSelectionField.js
deleted file mode 100644
index c19860ec1b2..00000000000
--- a/bundles/EcommerceFrameworkBundle/src/Resources/public/js/indexfieldselectionfield/data/indexFieldSelectionField.js
+++ /dev/null
@@ -1,93 +0,0 @@
-/**
- * Pimcore
- *
- * This source file is available under two different licenses:
- * - GNU General Public License version 3 (GPLv3)
- * - Pimcore Commercial License (PCL)
- * Full copyright and license information is available in
- * LICENSE.md which is distributed with this source code.
- *
- * @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org)
- * @license http://www.pimcore.org/license GPLv3 and PCL
- */
-
-pimcore.registerNS("pimcore.object.classes.data.indexFieldSelectionField");
-/**
- * @private
- */
-pimcore.object.classes.data.indexFieldSelectionField = Class.create(pimcore.object.classes.data.data, {
- type: "indexFieldSelectionField",
- allowIndex: false,
-
- /**
- * define where this datatype is allowed
- */
- allowIn: {
- object: true,
- objectbrick: true,
- fieldcollection: true,
- localizedfield: true
- },
-
- initialize: function (treeNode, initData) {
- this.type = "indexFieldSelectionField";
-
- this.initData(initData);
-
- this.treeNode = treeNode;
- },
-
- getTypeName: function () {
- return t("indexFieldSelectionFieldMulti");
- },
-
- getGroup: function () {
- return "ecommerce";
- },
-
-
- getIconClass: function () {
- return "pimcore_icon_indexFieldSelectionField";
- },
-
- getLayout: function ($super) {
-
- $super();
-
- this.specificPanel.removeAll();
- this.specificPanel.add([
- {
- xtype: "spinnerfield",
- fieldLabel: t("width"),
- name: "width",
- value: this.datax.width
- },
- {
- xtype: "spinnerfield",
- fieldLabel: t("height"),
- name: "height",
- value: this.datax.height
- },
- {
- xtype: "checkbox",
- fieldLabel: t("specificPriceField"),
- name: "specificPriceField",
- checked: this.datax.specificPriceField
- },
- {
- xtype: "checkbox",
- fieldLabel: t("showAllFields"),
- name: "showAllFields",
- checked: this.datax.showAllFields
- },
- {
- xtype: "checkbox",
- fieldLabel: t("considerTenants"),
- name: "considerTenants",
- checked: this.datax.considerTenants
- }
- ]);
-
- return this.layout;
- }
-});
diff --git a/bundles/EcommerceFrameworkBundle/src/Resources/public/js/indexfieldselectionfield/tags/indexFieldSelection.js b/bundles/EcommerceFrameworkBundle/src/Resources/public/js/indexfieldselectionfield/tags/indexFieldSelection.js
deleted file mode 100644
index bf9645805d4..00000000000
--- a/bundles/EcommerceFrameworkBundle/src/Resources/public/js/indexfieldselectionfield/tags/indexFieldSelection.js
+++ /dev/null
@@ -1,266 +0,0 @@
-/**
- * Pimcore
- *
- * This source file is available under two different licenses:
- * - GNU General Public License version 3 (GPLv3)
- * - Pimcore Commercial License (PCL)
- * Full copyright and license information is available in
- * LICENSE.md which is distributed with this source code.
- *
- * @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org)
- * @license http://www.pimcore.org/license GPLv3 and PCL
- */
-
-pimcore.registerNS("pimcore.object.tags.indexFieldSelection");
-/**
- * @private
- */
-pimcore.object.tags.indexFieldSelection = Class.create(pimcore.object.tags.select, {
-
- type: "indexFieldSelection",
-
- initialize: function (data, fieldConfig) {
- if(data) {
- this.data = data;
- } else {
- this.data = {};
- }
- this.fieldConfig = fieldConfig;
-
- this.store = new Ext.data.JsonStore({
- autoDestroy: true,
- autoLoad: true,
- proxy: {
- type: 'ajax',
- url: Routing.generate('pimcore_ecommerceframework_index_getfields'),
- reader: {
- rootProperty: 'data',
- idProperty: 'key'
- },
- extraParams: {class_id: fieldConfig.classId, add_empty: !this.fieldConfig.mandatory, "filtergroup[]": this.fieldConfig.filterGroups }
- },
- fields: ['key', 'name']
- });
-
- if(this.fieldConfig.multiPreSelect == 'remote_single' || this.fieldConfig.multiPreSelect == 'remote_multi') {
- this.preSelectStore = new Ext.data.JsonStore({
- autoDestroy: true,
- autoLoad: true,
- proxy: {
- type: 'ajax',
- url: Routing.generate('pimcore_ecommerceframework_index_getvaluesforfilterfield'),
- reader: {
- rootProperty: 'data',
- idProperty: 'key'
- },
- extraParams: {
- tenant: this.data ? this.data.tenant : "",
- field: this.data ? this.data.field : ""
- }
- },
- listeners: {
- load: function(store) {
- if(this.data) {
- if(this.preSelectCombobox.rendered) {
- this.preSelectCombobox.setValue(this.data.preSelect);
- } else {
- this.preSelectCombobox.addListener("afterRender", function() {
- this.preSelectCombobox.setValue(this.data.preSelect);
- }.bind(this));
- }
- }
- }.bind(this)
- },
- fields: ['key', 'value']
-
- });
- } else if(this.fieldConfig.multiPreSelect == 'local_single' || this.fieldConfig.multiPreSelect == 'local_multi') {
- this.preSelectStore = new Ext.data.JsonStore({
- autoDestroy: true,
- data: this.fieldConfig.predefinedPreSelectOptions,
- proxy: {
- type: 'memory'
- },
- fields: ['key', 'value']
- });
- }
-
- if(this.fieldConfig.considerTenants) {
- this.tenantStore = new Ext.data.JsonStore({
- autoDestroy: true,
- autoLoad: true,
- proxy: {
- type: 'ajax',
- url: Routing.generate('pimcore_ecommerceframework_index_getalltenants'),
- reader: {
- rootProperty: 'data',
- idProperty: 'key'
- }
- },
- listeners: {
- load: function(store) {
- if(this.data) {
- if(this.tenantCombobox.rendered) {
- this.tenantCombobox.setValue(this.data.tenant);
- } else {
- this.tenantCombobox.addListener("afterRender", function() {
- this.tenantCombobox.setValue(this.data.tenant);
- }.bind(this));
- }
- }
- }.bind(this)
- },
- fields: ['key', 'name']
- });
- }
-
- },
-
- getLayoutEdit: function () {
-
- var options = {
- name: this.fieldConfig.name,
- triggerAction: "all",
- editable: false,
- fieldLabel: this.fieldConfig.title,
- store: this.store,
- valueField: 'key',
- displayField: 'name',
- itemCls: "object_field",
- listeners: {
- select: function(combo, record) {
- if(this.data && this.data.preSelect) {
- this.data.preSelect = "";
- }
-
- if(this.fieldConfig.multiPreSelect == 'remote_single' || this.fieldConfig.multiPreSelect == 'remote_multi') {
- var proxy = this.preSelectStore.getProxy();
- proxy.extraParams.field = record.data.key;
- var params = {field: record.data.key};
- if(this.tenantCombobox) {
- proxy.extraParams.tenant = this.tenantCombobox.getValue();
- params.tenant = this.tenantCombobox.getValue();
- }
- this.preSelectStore.reload({params: params});
- }
- }.bind(this)
- },
- width: 300
- };
-
- if (this.fieldConfig.width) {
- options.width = this.fieldConfig.width;
- }
-
- if(this.data) {
- options.value = this.data.field;
- }
-
- this.fieldsCombobox = new Ext.form.ComboBox(options);
-
- var panel = new Ext.form.FormPanel({
- border: false
- });
-
- if(this.fieldConfig.considerTenants) {
- this.fieldsCombobox.setFieldLabel("");
- this.tenantCombobox = new Ext.form.ComboBox({
- triggerAction: "all",
- data: (this.data ? this.data.tenant : ""),
- editable: false,
- store: this.tenantStore,
- fieldLabel: this.fieldConfig.title,
- valueField: 'key',
- displayField: 'name',
- itemCls: "object_field",
- width: 300,
- listeners: {
- select: function(combo, record) {
- this.fieldsCombobox.setValue("");
-
- var proxy = this.store.getProxy();
- proxy.extraParams.tenant = record.data.key;
- this.store.reload({params: {tenant: record.data.key}});
-
- }.bind(this)
- }
- });
-
- panel.add(Ext.create('Ext.form.Panel', {
- layout: {
- type: 'hbox',
- align: "middle"
- },
- margin: '0 0 10 0',
- combineErrors: false,
- cls: "object_field",
- isDirty: function() {
- return this.tenantCombobox.isDirty() || this.fieldsCombobox.isDirty()
- }.bind(this),
- items: [
- this.tenantCombobox,
- this.fieldsCombobox
- ]
- }));
-
- } else {
- panel.add(this.fieldsCombobox);
- }
-
- if(this.fieldConfig.multiPreSelect == 'remote_multi' || this.fieldConfig.multiPreSelect == 'local_multi') {
- this.preSelectCombobox = new Ext.ux.form.MultiSelect({
- triggerAction: "all",
- fieldLabel: t("preSelect"),
- editable: false,
- name: "preSelect",
- store: this.preSelectStore,
- valueField: 'key',
- displayField: 'value',
- itemCls: "object_field",
- height: 300,
- width: (this.fieldConfig.width ? this.fieldConfig.width : 300) + (this.fieldConfig.considerTenants ? 300 : 0)
- });
-
- panel.add(this.preSelectCombobox);
- } else if(this.fieldConfig.multiPreSelect == 'remote_single' || this.fieldConfig.multiPreSelect == 'local_single') {
- this.preSelectCombobox = new Ext.form.ComboBox({
- triggerAction: "all",
- fieldLabel: t("preSelect"),
- editable: false,
- name: "preSelect",
- store: this.preSelectStore,
- valueField: 'key',
- displayField: 'value',
- itemCls: "object_field",
- width: (this.fieldConfig.width ? this.fieldConfig.width : 300) + (this.fieldConfig.considerTenants ? 300 : 0)
- });
- panel.add(this.preSelectCombobox);
- }
-
- if(this.fieldConfig.multiPreSelect == 'local_single' || this.fieldConfig.multiPreSelect == 'local_multi') {
- if(this.preSelectCombobox.rendered) {
- this.preSelectCombobox.setValue(this.data.preSelect);
- } else {
- this.preSelectCombobox.addListener("afterRender", function() {
- this.preSelectCombobox.setValue(this.data.preSelect);
- }.bind(this));
- }
- }
-
- this.component = panel;
- return this.component;
- },
-
- getValue: function () {
- var value = {
- tenant: (this.tenantCombobox ? this.tenantCombobox.getValue() : null),
- field: this.fieldsCombobox.getValue(),
- preSelect: (this.preSelectCombobox ? this.preSelectCombobox.getValue() : null)
- };
- return value;
- },
-
- isDirty: function() {
- return this.fieldsCombobox.isDirty() || (this.preSelectCombobox && this.preSelectCombobox.isDirty());
- }
-});
diff --git a/bundles/EcommerceFrameworkBundle/src/Resources/public/js/indexfieldselectionfield/tags/indexFieldSelectionCombo.js b/bundles/EcommerceFrameworkBundle/src/Resources/public/js/indexfieldselectionfield/tags/indexFieldSelectionCombo.js
deleted file mode 100644
index f39689ea008..00000000000
--- a/bundles/EcommerceFrameworkBundle/src/Resources/public/js/indexfieldselectionfield/tags/indexFieldSelectionCombo.js
+++ /dev/null
@@ -1,141 +0,0 @@
-/**
- * Pimcore
- *
- * This source file is available under two different licenses:
- * - GNU General Public License version 3 (GPLv3)
- * - Pimcore Commercial License (PCL)
- * Full copyright and license information is available in
- * LICENSE.md which is distributed with this source code.
- *
- * @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org)
- * @license http://www.pimcore.org/license GPLv3 and PCL
- */
-
-pimcore.registerNS("pimcore.object.tags.indexFieldSelectionCombo");
-/**
- * @private
- */
-pimcore.object.tags.indexFieldSelectionCombo = Class.create(pimcore.object.tags.select, {
-
- type: "indexFieldSelectionCombo",
-
- initialize: function (data, fieldConfig) {
- this.data = data;
- this.fieldConfig = fieldConfig;
-
- this.store = new Ext.data.JsonStore({
- autoDestroy: true,
- autoLoad: true,
- proxy: {
- type: 'ajax',
- url: Routing.generate('pimcore_ecommerceframework_index_getfields'),
- reader: {
- rootProperty: 'data',
- idProperty: 'key'
- },
- extraParams: {class_id: fieldConfig.classId, specific_price_field: this.fieldConfig.specificPriceField, show_all_fields: this.fieldConfig.showAllFields }
- },
- fields: ['key','name'],
- listeners: {
- load: function (store) {
- if(this.fieldsCombobox) {
- this.fieldsCombobox.setValue(this.data);
- }
- }.bind(this)
- }
- });
-
-
- if(this.fieldConfig.considerTenants) {
- this.tenantStore = new Ext.data.JsonStore({
- autoDestroy: true,
- autoLoad: true,
- proxy: {
- type: 'ajax',
- url: Routing.generate('pimcore_ecommerceframework_index_getalltenants'),
- reader: {
- rootProperty: 'data',
- idProperty: 'key'
- }
- },
- fields: ['key', 'name']
- });
- }
-
- },
-
- getLayoutEdit: function () {
-
- var options = {
- name: this.fieldConfig.name,
- triggerAction: "all",
- editable: false,
- fieldLabel: this.fieldConfig.title,
- store: this.store,
- valueField: 'key',
- displayField: 'name',
- itemCls: "object_field",
- width: 300
- };
-
- if (this.fieldConfig.width) {
- options.width = this.fieldConfig.width;
- }
-
- if (typeof this.data == "string" || typeof this.data == "number") {
- options.value = this.data;
- } else {
- options.value = "";
- }
-
- this.fieldsCombobox = new Ext.form.ComboBox(options);
-
- if(this.fieldConfig.considerTenants) {
- this.fieldsCombobox.setFieldLabel("");
- var tenantCombobox = new Ext.form.ComboBox({
- triggerAction: "all",
- fieldLabel: this.fieldConfig.title,
- editable: false,
- store: this.tenantStore,
- valueField: 'key',
- displayField: 'name',
- itemCls: "object_field",
- width: 300,
- listeners: {
- select: function(combo, record) {
- this.fieldsCombobox.setValue("");
-
- var proxy = this.store.getProxy();
- proxy.extraParams.tenant = record.data.key;
- this.store.reload({params: {tenant: record.data.key}});
- }.bind(this)
- }
- });
-
- this.component = Ext.create('Ext.form.Panel', {
- layout: {
- type: 'hbox',
- align: "middle"
- },
- margin: '0 0 10 0',
- combineErrors: false,
-
- items: [tenantCombobox, this.fieldsCombobox],
- cls: "object_field",
- isDirty: function() {
- return tenantCombobox.isDirty() || this.fieldsCombobox.isDirty()
- }.bind(this)
- });
-
- } else {
- this.component = this.fieldsCombobox;
- }
-
- return this.component;
- },
-
- getValue: function() {
- return this.fieldsCombobox.getValue();
- }
-
-});
diff --git a/bundles/EcommerceFrameworkBundle/src/Resources/public/js/indexfieldselectionfield/tags/indexFieldSelectionField.js b/bundles/EcommerceFrameworkBundle/src/Resources/public/js/indexfieldselectionfield/tags/indexFieldSelectionField.js
deleted file mode 100644
index 975c758e2c2..00000000000
--- a/bundles/EcommerceFrameworkBundle/src/Resources/public/js/indexfieldselectionfield/tags/indexFieldSelectionField.js
+++ /dev/null
@@ -1,194 +0,0 @@
-/**
- * Pimcore
- *
- * This source file is available under two different licenses:
- * - GNU General Public License version 3 (GPLv3)
- * - Pimcore Commercial License (PCL)
- * Full copyright and license information is available in
- * LICENSE.md which is distributed with this source code.
- *
- * @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org)
- * @license http://www.pimcore.org/license GPLv3 and PCL
- */
-
-pimcore.registerNS("pimcore.object.tags.indexFieldSelectionField");
-/**
- * @private
- */
-pimcore.object.tags.indexFieldSelectionField = Class.create(pimcore.object.tags.abstract, {
-
- type: "indexFieldSelectionField",
-
- initialize: function (data, fieldConfig) {
- if(data) {
- this.data = data;
- } else {
- this.data = "";
- }
-
- this.fieldConfig = fieldConfig;
-
- this.store = new Ext.data.JsonStore({
- autoDestroy: true,
- autoLoad: true,
- proxy: {
- type: 'ajax',
- url: Routing.generate('pimcore_ecommerceframework_index_getfields'),
- reader: {
- rootProperty: 'data',
- idProperty: 'key'
- },
- extraParams: {class_id: fieldConfig.classId, specific_price_field: this.fieldConfig.specificPriceField, show_all_fields: this.fieldConfig.showAllFields }
- },
- fields: ['key','name'],
- listeners: {
- load: function(store) {
-
- //add values to store, even if they are not in store
- //needed, becuase on initial load, no tenant is selected, and there might be values selected, that are not in default tenant
- if(this.firstLoad !== false) {
- var values = this.data.split(",");
- for(var i = 0; i < values.length; i++) {
- if(store.find('key', values[i]) < 0) {
- var defaultData = {
- 'key': values[i],
- 'name': t(values[i])
- };
- store.add(defaultData);
- }
- }
- this.firstLoad = false;
-
- if(this.fieldsCombobox) {
- this.fieldsCombobox.setValue(this.data);
- }
-
- } else {
-
- //on subsequent loads, check this.data for only allowed values
- var allowedValues = [];
- var originalValues = this.data.split(",");
- for(var i = 0; i < originalValues.length; i++) {
- if(store.find('key', originalValues[i]) >= 0) {
- allowedValues.push(originalValues[i]);
- }
- }
- if(this.fieldsCombobox) {
- this.fieldsCombobox.setValue(allowedValues.join());
- }
- }
- }.bind(this)
- }
- });
-
- if(this.fieldConfig.considerTenants) {
- this.tenantStore = new Ext.data.JsonStore({
- autoDestroy: true,
- autoLoad: true,
- proxy: {
- type: 'ajax',
- url: Routing.generate('pimcore_ecommerceframework_index_getalltenants'),
- reader: {
- rootProperty: 'data',
- idProperty: 'key'
- }
- },
- fields: ['key', 'name']
- });
- }
-
- },
-
- getLayoutEdit: function () {
- if (parseInt(this.fieldConfig.width) < 1) {
- this.fieldConfig.width = 100;
- }
- if (parseInt(this.fieldConfig.height) < 1) {
- this.fieldConfig.height = 100;
- }
-
- var conf = {
- width: this.fieldConfig.width,
- height: this.fieldConfig.height,
- fieldLabel: this.fieldConfig.title,
- itemCls: "object_field hugo",
- queryDelay: 0,
- triggerAction: 'all',
- resizable: true,
- mode: 'local',
- minChars: 1,
- store: this.store,
- displayField: 'name',
- valueField: 'key',
- forceFormValue: true
- };
-
- if (this.data) {
- conf.value = this.data;
- }
-
- this.fieldsCombobox = Ext.create('Ext.form.field.Tag', conf);
-
-
- if(this.fieldConfig.considerTenants) {
- this.fieldsCombobox.setFieldLabel("");
- var tenantCombobox = new Ext.form.ComboBox({
- triggerAction: "all",
- fieldLabel: this.fieldConfig.title,
- editable: false,
- store: this.tenantStore,
- valueField: 'key',
- displayField: 'name',
- width: 300,
- listeners: {
- select: function(combo, record) {
- this.fieldsCombobox.setValue("");
-
- var proxy = this.store.getProxy();
- proxy.extraParams.tenant = record.data.key;
- this.store.reload({params: {tenant: record.data.key}});
- }.bind(this)
- }
- });
-
- this.component = Ext.create('Ext.form.Panel', {
- layout: {
- type: 'hbox',
- align: "middle"
- },
- margin: '0 0 10 0',
- combineErrors: false,
- items: [
- tenantCombobox,
- this.fieldsCombobox
- ],
- cls: "object_field object_field_type_" + this.type,
- isDirty: function() {
- return tenantCombobox.isDirty() || this.fieldsCombobox.isDirty()
- }.bind(this)
- });
-
- } else {
- this.component = this.fieldsCombobox;
- }
-
- return this.component;
- },
-
-
- getLayoutShow: function () {
-
- this.component = this.getLayoutEdit();
- this.component.disable();
-
- return this.component;
- },
-
- getValue: function () {
- return this.fieldsCombobox.getValue();
- },
-
- getName: function () {
- return this.fieldConfig.name;
- }
-});
diff --git a/bundles/EcommerceFrameworkBundle/src/Resources/public/js/order/OrderTab.js b/bundles/EcommerceFrameworkBundle/src/Resources/public/js/order/OrderTab.js
deleted file mode 100644
index 086b875ac2a..00000000000
--- a/bundles/EcommerceFrameworkBundle/src/Resources/public/js/order/OrderTab.js
+++ /dev/null
@@ -1,97 +0,0 @@
-/**
- * Pimcore
- *
- * This source file is available under two different licenses:
- * - GNU General Public License version 3 (GPLv3)
- * - Pimcore Commercial License (PCL)
- * Full copyright and license information is available in
- * LICENSE.md which is distributed with this source code.
- *
- * @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org)
- * @license http://www.pimcore.org/license GPLv3 and PCL
- */
-
-pimcore.registerNS("pimcore.bundle.EcommerceFramework.OrderTab");
-
-/**
- * @private
- */
-pimcore.bundle.EcommerceFramework.OrderTab = Class.create({
-
- title: t('bundle_ecommerce_order_tab'),
- iconCls: 'pimcore_icon_portlet_feed',
- src: null,
- id: null,
-
- initialize: function(object, type) {
- this.object = object;
- this.id = object.id;
- this.type = type;
- this.src = Routing.generate('pimcore_ecommerce_backend_admin-order_detail', {id: this.id});
- },
-
- getLayout: function () {
- if (this.panel == null) {
-
- this.reloadButton = new Ext.Button({
- text: t("reload"),
- iconCls: "pimcore_icon_reload",
- handler: this.reload.bind(this)
- });
-
- this.openButton = new Ext.Button({
- text: t("open"),
- iconCls: "pimcore_icon_open",
- handler: function () {
- window.open(Ext.get("bundle_ecommerce_order_tab_frame_" + this.id).dom.getAttribute("src"));
- }.bind(this)
- });
-
-
-
-
- this.panel = new Ext.Panel({
- id: "bundle_ecommerce_order_tab_" + this.id,
- title: this.title,
- iconCls: this.iconCls,
- border: false,
- layout: "fit",
- closable: false,
- bodyStyle: "-webkit-overflow-scrolling:touch;",
- html: '
',
- tbar: [this.reloadButton, this.openButton]
- });
-
- this.panel.on("resize", this.onLayoutResize.bind(this));
- var that = this;
- this.panel.on("afterrender", function(e){
- that.panel.on("activate", function(e){
- that.reload();
- });
- });
-
- }
- return this.panel;
-
- },
-
- onLayoutResize: function (el, width, height, rWidth, rHeight) {
- this.setLayoutFrameDimensions(width, height);
- },
-
- setLayoutFrameDimensions: function (width, height) {
- Ext.get("bundle_ecommerce_order_tab_frame_" + this.id).setStyle({
- height: (height - 50) + "px"
- });
- },
-
- reload: function () {
- try {
- Ext.get("bundle_ecommerce_order_tab_frame_" + this.id).dom.src = this.src;
- }
- catch (e) {
- console.log(e);
- }
- }
-
-});
diff --git a/bundles/EcommerceFrameworkBundle/src/Resources/public/js/pricing/conditions/targetGroup.js b/bundles/EcommerceFrameworkBundle/src/Resources/public/js/pricing/conditions/targetGroup.js
deleted file mode 100644
index 1ad9bccfe2f..00000000000
--- a/bundles/EcommerceFrameworkBundle/src/Resources/public/js/pricing/conditions/targetGroup.js
+++ /dev/null
@@ -1,84 +0,0 @@
-/**
- * Pimcore
- *
- * This source file is available under two different licenses:
- * - GNU General Public License version 3 (GPLv3)
- * - Pimcore Commercial License (PCL)
- * Full copyright and license information is available in
- * LICENSE.md which is distributed with this source code.
- *
- * @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org)
- * @license http://www.pimcore.org/license GPLv3 and PCL
- */
-
-//Add condition only when personalization bundle is enabled
-if (pimcore.bundle.personalization) {
- /**
- * @param panel
- * @param data
- * @param getName
- * @returns Ext.form.FormPanel
- */
- pimcore.bundle.EcommerceFramework.pricing.conditions.conditionTargetGroup = function (panel, data, getName) {
- var niceName = t("bundle_ecommerce_pricing_config_condition_targetgroup");
- if (typeof getName !== "undefined" && getName) {
- return niceName;
- }
-
- // check params
- if (typeof data === "undefined") {
- data = {};
- }
-
-
- this.targetGroupStore = Ext.create('Ext.data.JsonStore', {
- autoLoad: true,
- proxy: {
- type: 'ajax',
- url: Routing.generate('pimcore_bundle_personalization_targeting_targetgrouplist')
- },
- fields: ["id", "text"],
- listeners: {
- load: function () {
- this.targetGroup.setValue(data.targetGroupId);
- }.bind(this)
- }
- });
-
- this.targetGroup = new Ext.form.ComboBox({
- displayField: 'text',
- valueField: "id",
- name: "targetGroupId",
- fieldLabel: t("bundle_ecommerce_pricing_config_condition_targetgroup"),
- store: this.targetGroupStore,
- editable: false,
- triggerAction: 'all',
- width: 500,
- listeners: {}
- });
-
-
- // create item
- var myId = Ext.id();
- var item = new Ext.form.FormPanel({
- id: myId,
- type: 'TargetGroup',
- forceLayout: true,
- style: "margin: 10px 0 0 0",
- bodyStyle: "padding: 10px 30px 10px 30px; min-height:40px;",
- tbar: this.getTopBar(niceName, myId, panel, data, "bundle_ecommerce_pricing_icon_conditionTargetGroup"),
- items: [
- this.targetGroup,
- {
- xtype: "numberfield",
- fieldLabel: t("bundle_ecommerce_pricing_config_condition_targetgroup_threshold"),
- name: "threshold",
- width: 200,
- value: data.threshold
- }
- ]
- });
-
- return item;
- };
-}
diff --git a/bundles/EcommerceFrameworkBundle/src/Resources/public/js/pricing/config/item.js b/bundles/EcommerceFrameworkBundle/src/Resources/public/js/pricing/config/item.js
deleted file mode 100644
index 08a06cb96c7..00000000000
--- a/bundles/EcommerceFrameworkBundle/src/Resources/public/js/pricing/config/item.js
+++ /dev/null
@@ -1,1415 +0,0 @@
-/**
- * Pimcore
- *
- * This source file is available under two different licenses:
- * - GNU General Public License version 3 (GPLv3)
- * - Pimcore Commercial License (PCL)
- * Full copyright and license information is available in
- * LICENSE.md which is distributed with this source code.
- *
- * @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org)
- * @license http://www.pimcore.org/license GPLv3 and PCL
- */
-
-pimcore.registerNS("pimcore.bundle.EcommerceFramework.pricing.config.item");
-/**
- * @private
- */
-pimcore.bundle.EcommerceFramework.pricing.config.item = Class.create({
-
- /**
- * pimcore.bundle.EcommerceFramework.pricing.config.panel
- */
- parent: {},
-
-
- /**
- * constructor
- * @param parent
- * @param data
- */
- initialize: function(parent, data) {
- this.parent = parent;
- this.data = data;
- this.currentIndex = 0;
-
- this.tabPanel = new Ext.TabPanel({
- title: this.data.name,
- closable: true,
- deferredRender: false,
- forceLayout: true,
- id: "pimcore_pricing_panel_" + this.data.id,
- buttons: [{
- text: t("save"),
- iconCls: "pimcore_icon_apply",
- handler: this.save.bind(this)
- }],
- items: [
- this.getSettings(),
- this.getConditions(),
- this.getActions()
- ]
- });
- this.tabPanel.on("beforedestroy", function () {
- delete this.parent.panels["pricingrule_" + this.data.id];
- }.bind(this));
-
-
- // add saved conditions
- if(this.data.condition)
- {
- var list = this;
- var level = 0;
- var open = 0;
- var handleCondition = function(condition){
- if(condition.type == 'Bracket')
- {
- // workarround for brackets
- level++;
- Ext.each(condition.conditions, function(item, index, allItems){
- item.condition.operator = item.operator;
-
- if(level > 1)
- {
- if(index == 0)
- {
- item.condition.bracketLeft = true;
- open++;
- }
- if(index == allItems.length -1 && open > 0)
- {
- item.condition.bracketRight = true;
- open--;
- }
- }
-
- handleCondition(item.condition);
- });
- }
- else
- {
- // normal condition
- list.addCondition("condition" + ucfirst(condition.type), condition);
- }
- };
-
- handleCondition(this.data.condition);
- }
-
- // add saved actions
- if(this.data.actions)
- {
- var list = this;
- Ext.each(this.data.actions, function(action){
- list.addAction("action" + ucfirst(action.type), action);
- });
- }
-
- // ...
- var panel = this.parent.getTabPanel();
- panel.add(this.tabPanel);
- panel.setActiveTab(this.tabPanel);
- panel.updateLayout();
- },
-
- activate: function () {
- var panel = this.parent.getTabPanel();
- panel.setActiveTab(this.tabPanel);
- panel.updateLayout();
- },
-
- /**
- * Basic rule Settings
- * @returns Ext.form.FormPanel
- */
- getSettings: function () {
- var data = this.data;
-
- // create tabs for available languages
- var langTabs = [];
- Ext.each(pimcore.settings.websiteLanguages, function(lang){
- var tab = {
- title: pimcore.available_languages[ lang ],
- items: [{
- xtype: "textfield",
- name: "label." + lang,
- fieldLabel: t("label"),
- width: 350,
- value: data.label[ lang ]
- }, {
- xtype: "textarea",
- name: "description." + lang,
- fieldLabel: t("description"),
- width: 500,
- height: 100,
- value: data.description[ lang ]
- }]
- };
-
- langTabs.push( tab );
- });
-
- // ...
- this.settingsForm = new Ext.form.FormPanel({
- title: t("settings"),
- bodyStyle: "padding:10px;",
- autoScroll: true,
- //border:false,
- items: [{
- style: "margin-bottom: 10px",
- cls: "object_localizedfields_panel",
- xtype: 'panel',
- items: [{
- xtype: "tabpanel",
- defaults: {
- autoHeight:true
- ,
- bodyStyle:'padding:10px;'
- },
- items: langTabs
- }]
- }, {
- name: "behavior",
- fieldLabel: t("bundle_ecommerce_pricing_config_behavior"),
- xtype: "combo",
- store: [
- ["additiv", t("bundle_ecommerce_pricing_config_additiv")],
- ["stopExecute", t("bundle_ecommerce_pricing_config_stopExecute")]
- ],
- mode: "local",
- width: 300,
- editable: false,
- value: this.data.behavior,
- triggerAction: "all"
- }, {
- xtype: "checkbox",
- name: "active",
- fieldLabel: t("active"),
- checked: this.data.active == "1"
- }]
- });
-
- return this.settingsForm;
- },
-
- /**
- * @returns Ext.Panel
- */
- getConditions: function() {
-
- // init
- var _this = this;
- var addMenu = [];
- var itemTypes = Object.keys(pimcore.bundle.EcommerceFramework.pricing.conditions);
- // show only defined conditions
- Ext.each(this.parent.condition, function (condition) {
- var method = "condition" + condition;
- if(itemTypes.indexOf(method) != -1)
- {
- addMenu.push({
- iconCls: "bundle_ecommerce_pricing_icon_" + method,
- text: pimcore.bundle.EcommerceFramework.pricing.conditions[method](null, null,true),
- handler: _this.addCondition.bind(_this, method)
- });
- }
- });
-
-
- this.conditionsContainer = new Ext.Panel({
- title: t("conditions"),
- autoScroll: true,
- forceLayout: true,
- tbar: [{
- iconCls: "pimcore_icon_add",
- menu: addMenu
- }],
- border: false
- });
-
- return this.conditionsContainer;
- },
-
- /**
- * @returns {*}
- * @todo
- */
- getActions: function () {
-
- // init
- var _this = this;
- var addMenu = [];
- var itemTypes = Object.keys(pimcore.bundle.EcommerceFramework.pricing.actions);
-
- // show only defined actions
- Ext.each(this.parent.action, function (action) {
- var method = "action" + action;
- if(itemTypes.indexOf(method) != -1)
- {
- addMenu.push({
- iconCls: "bundle_ecommerce_pricing_icon_" + method,
- text: pimcore.bundle.EcommerceFramework.pricing.actions[method](null, null,true),
- handler: _this.addAction.bind(_this, method)
- });
- }
- });
-
-
- this.actionsContainer = new Ext.Panel({
- title: t("actions"),
- autoScroll: true,
- forceLayout: true,
- bodyStyle: 'padding: 0 10px 10px 10px;',
- tbar: [{
- iconCls: "pimcore_icon_add",
- menu: addMenu
- }],
- border: false
- });
-
- return this.actionsContainer;
- },
-
-
- /**
- * add condition item
- * @param type
- * @param data
- */
- addCondition: function (type, data) {
-
- // create condition
- var item = pimcore.bundle.EcommerceFramework.pricing.conditions[type](this, data);
-
- // add logic for brackets
- var tab = this;
- item.on("afterrender", function (el) {
- el.getEl().applyStyles({position: "relative", "min-height": "40px", "border-bottom": "1px solid #d0d0d0"});
- var leftBracket = el.getEl().insertHtml("beforeEnd",
- '
(
', true);
- var rightBracket = el.getEl().insertHtml("beforeEnd",
- '
)
', true);
-
- if(data["bracketLeft"]){
- leftBracket.addCls("pimcore_targeting_bracket_active");
- }
- if(data["bracketRight"]){
- rightBracket.addCls("pimcore_targeting_bracket_active");
- }
-
- // open
- leftBracket.on("click", function (ev, el) {
- var bracket = Ext.get(el);
- bracket.toggleCls("pimcore_targeting_bracket_active");
-
- tab.recalculateBracketIdent(tab.conditionsContainer.items);
- });
-
- // close
- rightBracket.on("click", function (ev, el) {
- var bracket = Ext.get(el);
- bracket.toggleCls("pimcore_targeting_bracket_active");
-
- tab.recalculateBracketIdent(tab.conditionsContainer.items);
- });
-
- // make ident
- tab.recalculateBracketIdent(tab.conditionsContainer.items);
- });
-
- this.conditionsContainer.add(item);
- item.updateLayout();
- this.conditionsContainer.updateLayout();
-
- this.currentIndex++;
-
- this.recalculateButtonStatus();
- },
-
- /**
- * add action item
- * @param type
- * @param data
- */
- addAction: function (type, data) {
-
- var item = pimcore.bundle.EcommerceFramework.pricing.actions[type](this, data);
-
- this.actionsContainer.add(item);
- item.updateLayout();
- this.actionsContainer.updateLayout();
- },
-
- /**
- * save config
- */
- save: function () {
- var saveData = {};
-
- // general settings
- saveData["settings"] = this.settingsForm.getForm().getFieldValues();
-
- // get defined conditions
- var conditionsData = [];
- var operator;
- var conditions = this.conditionsContainer.items.getRange();
- for (var i=0; i
0) {
- item.applyStyles({
- "border-left": "1px solid " + colors[ident],
- "border-right": "1px solid " + colors[ident]
- });
- } else {
- item.applyStyles({
- "border-left": "0px",
- "border-right": "0px"
- });
- }
-
-
- // apply specials :-)
- if(ident == 0) {
- item.applyStyles({
- "margin-top": "10px"
- });
- } else if(ident == lastIdent) {
- item.applyStyles({
- "margin-top": "0px",
- "margin-bottom": "0px"
- });
- } else {
- item.applyStyles({
- "margin-top": "5px"
- });
- }
-
-
- // remember current ident
- lastIdent = ident;
-
-
- // check if a bracket is open
- if(item.select('.pimcore_targeting_bracket_left.pimcore_targeting_bracket_active').getCount() == 1)
- {
- ident++;
- }
- // check if a bracket is close
- else if(item.select('.pimcore_targeting_bracket_right.pimcore_targeting_bracket_active').getCount() == 1)
- {
- if(ident > 0) {
- ident--;
- }
- }
- });
-
- this.conditionsContainer.updateLayout();
- }
-});
-
-
-/**
- * CONDITION TYPES
- */
-pimcore.registerNS("pimcore.bundle.EcommerceFramework.pricing.conditions");
-pimcore.bundle.EcommerceFramework.pricing.conditions = {
-
- detectBlockIndex: function (blockElement, container) {
- // detect index
- var index;
-
- for(var s=0; s" + name + ""
- },"-",{
- iconCls: "pimcore_icon_up",
- handler: function (blockId, parent) {
-
- var container = parent.conditionsContainer;
- var blockElement = Ext.getCmp(blockId);
- var index = pimcore.bundle.EcommerceFramework.pricing.conditions.detectBlockIndex(blockElement, container);
- var tmpContainer = pimcore.viewport;
-
- var newIndex = index-1;
- if(newIndex < 0) {
- newIndex = 0;
- }
-
- // move this node temorary to an other so ext recognizes a change
- container.remove(blockElement, false);
- tmpContainer.add(blockElement);
- container.updateLayout();
- tmpContainer.updateLayout();
-
- // move the element to the right position
- tmpContainer.remove(blockElement,false);
- container.insert(newIndex, blockElement);
- container.updateLayout();
- tmpContainer.updateLayout();
-
- parent.recalculateButtonStatus();
-
- pimcore.layout.refresh();
-
- parent.recalculateBracketIdent(parent.conditionsContainer.items);
- }.bind(window, index, parent)
- },{
- iconCls: "pimcore_icon_down",
- handler: function (blockId, parent) {
-
- var container = parent.conditionsContainer;
- var blockElement = Ext.getCmp(blockId);
- var index = pimcore.bundle.EcommerceFramework.pricing.conditions.detectBlockIndex(blockElement, container);
- var tmpContainer = pimcore.viewport;
-
- // move this node temorary to an other so ext recognizes a change
- container.remove(blockElement, false);
- tmpContainer.add(blockElement);
- container.updateLayout();
- tmpContainer.updateLayout();
-
- // move the element to the right position
- tmpContainer.remove(blockElement,false);
- container.insert(index+1, blockElement);
- container.updateLayout();
- tmpContainer.updateLayout();
-
- parent.recalculateButtonStatus();
-
- pimcore.layout.refresh();
- parent.recalculateBracketIdent(parent.conditionsContainer.items);
-
- }.bind(window, index, parent)
- },"-", {
- text: t("AND"),
- toggleGroup: toggleGroup,
- enableToggle: true,
- itemId: "toggle_and",
- pressed: (data.operator == "and") ? true : false
- },{
- text: t("OR"),
- toggleGroup: toggleGroup,
- enableToggle: true,
- itemId: "toggle_or",
- pressed: (data.operator == "or") ? true : false
- },{
- text: t("AND_NOT"),
- toggleGroup: toggleGroup,
- enableToggle: true,
- itemId: "toggle_and_not",
- pressed: (data.operator == "and_not") ? true : false
- },"->",{
- iconCls: "pimcore_icon_delete",
- handler: function (index, parent) {
- parent.conditionsContainer.remove(Ext.getCmp(index));
- parent.recalculateButtonStatus();
- parent.recalculateBracketIdent(parent.conditionsContainer.items);
- }.bind(window, index, parent)
- }];
- },
-
- /**
- * @param panel
- * @param data
- * @param getName
- * @returns Ext.form.FormPanel
- */
- conditionDateRange: function (panel, data, getName) {
-
- //
- var niceName = t("bundle_ecommerce_pricing_config_condition_daterange");
- if(typeof getName != "undefined" && getName) {
- return niceName;
- }
-
- // check params
- if(typeof data == "undefined") {
- data = {};
- }
-
- // create item
- var myId = Ext.id();
- var item = new Ext.form.FormPanel({
- id: myId,
- type: 'DateRange',
- forceLayout: true,
- style: "margin: 10px 0 0 0",
- bodyStyle: "padding: 10px 30px 10px 30px; min-height:30px;",
- tbar: this.getTopBar(niceName, myId, panel, data, "bundle_ecommerce_pricing_icon_conditionDateRange"),
- items: [{
- xtype:'datefield',
- fieldLabel: t("from"),
- name: "starting",
- format: 'd.m.Y',
- altFormats: 'U',
- value: data.starting,
- width: 400
- },{
- xtype:'datefield',
- fieldLabel: t("to"),
- name: "ending",
- format: 'd.m.Y',
- altFormats: 'U',
- value: data.ending,
- width: 400
- }],
- listeners: {
-
- }
- });
-
- return item;
- },
-
- /**
- * @param panel
- * @param data
- * @param getName
- * @returns Ext.form.FormPanel
- */
- conditionCatalogProduct: function (panel, data, getName) {
-
- var niceName = t("product");
- if(typeof getName != "undefined" && getName) {
- return niceName;
- }
-
- if(typeof data == "undefined") {
- data = {};
- }
- var myId = Ext.id();
-
- var item = new Ext.form.FormPanel({
- id: myId,
- type: 'CatalogProduct',
- forceLayout: true,
- style: "margin: 10px 0 0 0",
- bodyStyle: "padding: 10px 30px 10px 30px; min-height:40px;",
- tbar: this.getTopBar(niceName, myId, panel, data, "bundle_ecommerce_pricing_icon_conditionCatalogProduct"),
- items: [
- new pimcore.bundle.EcommerceFramework.pricing.config.objects(data.products, {
- name: "products",
- title: "",
- visibleFields: "path",
- height: 200,
- width: 500,
- columns: [],
-
- // ?
- columnType: null,
- datatype: "data",
- fieldtype: "objects",
-
- // ??
- index: false,
- invisible: false,
- lazyLoading: false,
- locked: false,
- mandatory: false,
- maxItems: "",
- noteditable: false,
- permissions: null,
- phpdocType: "array",
- queryColumnType: "text",
- relationType: true,
- style: "",
- tooltip: "",
- visibleGridView: false,
- visibleSearch: false
- }).getLayoutEdit()
- ]
- });
-
- return item;
- },
-
-
- /**
- * @param panel
- * @param data
- * @param getName
- * @returns Ext.form.FormPanel
- */
- conditionCatalogCategory: function (panel, data, getName) {
-
- var niceName = t("category");
- if(typeof getName != "undefined" && getName) {
- return niceName;
- }
-
- if(typeof data == "undefined") {
- data = {};
- }
- var myId = Ext.id();
-
- var item = new Ext.form.FormPanel({
- id: myId,
- type: 'CatalogCategory',
- forceLayout: true,
- style: "margin: 10px 0 0 0",
- bodyStyle: "padding: 0px 30px 10px 30px; min-height:40px;",
- tbar: this.getTopBar(niceName, myId, panel, data, "bundle_ecommerce_pricing_icon_conditionCatalogCategory"),
- items: [
- new pimcore.bundle.EcommerceFramework.pricing.config.objects(data.categories, {
- name: "categories",
- title: "",
- visibleFields: "path",
- height: 200,
- width: 500,
- columns: [],
-
- // ?
- columnType: null,
- datatype: "data",
- fieldtype: "objects",
-
- // ??
- index: false,
- invisible: false,
- lazyLoading: false,
- locked: false,
- mandatory: false,
- maxItems: "",
- noteditable: false,
- permissions: null,
- phpdocType: "array",
- queryColumnType: "text",
- relationType: true,
- style: "",
- tooltip: "",
- visibleGridView: false,
- visibleSearch: false
- }).getLayoutEdit()
- ]
- });
-
- return item;
- },
-
-
- /**
- * @param panel
- * @param data
- * @param getName
- * @returns Ext.form.FormPanel
- */
- conditionCartAmount: function (panel, data, getName) {
-
- var niceName = t("bundle_ecommerce_pricing_config_condition_cart_amount");
- if(typeof getName != "undefined" && getName) {
- return niceName;
- }
-
- if(typeof data == "undefined") {
- data = {};
- }
- var myId = Ext.id();
-
- var item = new Ext.form.FormPanel({
- id: myId,
- type: 'CartAmount',
- forceLayout: true,
- style: "margin: 10px 0 0 0",
- bodyStyle: "padding: 10px 30px 10px 30px; min-height:40px;",
- tbar: this.getTopBar(niceName, myId, panel, data, "bundle_ecommerce_pricing_icon_conditionCartAmount"),
- items: [{
- xtype: "numberfield",
- fieldLabel: t("bundle_ecommerce_pricing_config_condition_cart_amount"),
- name: "limit",
- width: 300,
- value: data.limit
- }]
- });
-
- return item;
- },
-
-
- /**
- * @param panel
- * @param data
- * @param getName
- * @returns Ext.form.FormPanel
- */
- conditionSold: function (panel, data, getName) {
-
- //
- var niceName = t("bundle_ecommerce_pricing_config_condition_sold");
- if(typeof getName != "undefined" && getName) {
- return niceName;
- }
-
- // check params
- if(typeof data == "undefined") {
- data = {};
- }
-
- // create item
- var myId = Ext.id();
- var item = new Ext.form.FormPanel({
- id: myId,
- type: 'Sold',
- forceLayout: true,
- style: "margin: 10px 0 0 0",
- bodyStyle: "padding: 10px 30px 10px 30px; min-height:40px;",
- tbar: this.getTopBar(niceName, myId, panel, data, "bundle_ecommerce_pricing_icon_conditionSold"),
- items: [{
- xtype: "numberfield",
- fieldLabel: t("bundle_ecommerce_pricing_config_condition_sold_count"),
- name: "count",
- width: 300,
- value: data.count
- }],
- });
-
- return item;
- },
-
-
- /**
- * @param panel
- * @param data
- * @param getName
- * @returns Ext.form.FormPanel
- */
- conditionSales: function (panel, data, getName) {
-
- //
- var niceName = t("bundle_ecommerce_pricing_config_condition_sales");
- if(typeof getName != "undefined" && getName) {
- return niceName;
- }
-
- // check params
- if(typeof data == "undefined") {
- data = {};
- }
-
- // create item
- var myId = Ext.id();
- var item = new Ext.form.FormPanel({
- id: myId,
- type: 'Sales',
- forceLayout: true,
- style: "margin: 10px 0 0 0",
- bodyStyle: "padding: 10px 30px 10px 30px; min-height:40px;",
- tbar: this.getTopBar(niceName, myId, panel, data, "bundle_ecommerce_pricing_icon_conditionSales"),
- items: [{
- xtype: "numberfield",
- fieldLabel: t("amount"),
- name: "amount",
- width: 300,
- value: data.amount
- }],
- });
-
- return item;
- },
-
-
- /**
- * @param panel
- * @param data
- * @param getName
- * @returns Ext.form.FormPanel
- */
- conditionClientIp: function (panel, data, getName) {
-
- //
- var niceName = 'IP';
- if(typeof getName != "undefined" && getName) {
- return niceName;
- }
-
-
- // create item
- var myId = Ext.id();
- var item = new Ext.form.FormPanel({
- id: myId,
- type: 'ClientIp',
- forceLayout: true,
- style: "margin: 10px 0 0 0",
- bodyStyle: "padding: 10px 30px 10px 30px; min-height:40px;",
- tbar: this.getTopBar(niceName, myId, panel, data, "bundle_ecommerce_pricing_icon_conditionClientIp"),
- items: [{
- xtype: "textfield",
- fieldLabel: 'IP',
- name: "ip",
- width: 300,
- value: data.ip
- }]
- });
-
-
- // set default value
- if(data.ip == undefined)
- {
- Ext.Ajax.request({
- url: Routing.generate('pimcore_admin_settings_getsystem'),
- success: function (response) {
-
- var settings = Ext.decode(response.responseText);
- item.getForm().findField('ip').setValue( settings.config.client_ip );
-
- }.bind(this)
- });
- }
-
-
- return item;
- },
-
- /**
- * @param panel
- * @param data
- * @param getName
- * @returns Ext.form.FormPanel
- */
- conditionVoucherToken: function (panel, data, getName) {
- var niceName = t("bundle_ecommerce_pricing_config_condition_voucherToken");
- if(typeof getName != "undefined" && getName) {
- return niceName;
- }
-
- // check params
- if(typeof data == "undefined") {
- data = {
- error_messages: {}
- };
- }
-
-
- var langTabs = [];
- Ext.each(pimcore.settings.websiteLanguages, function(lang){
- var tab = {
- title: pimcore.available_languages[ lang ],
- items: [{
- xtype: "textfield",
- name: lang,
- fieldLabel: t("error_message"),
- width: 600,
- value: data.error_messages ? data.error_messages[ lang ] : ''
- }]
- };
-
- langTabs.push( tab );
- });
-
- // create item
- var myId = Ext.id();
- var item = new Ext.form.FormPanel({
- id: myId,
- type: 'VoucherToken',
- forceLayout: true,
- style: "margin: 10px 0 0 0",
- bodyStyle: "padding: 10px 30px 10px 30px; min-height:40px;",
- tbar: this.getTopBar(niceName, myId, panel, data, "bundle_ecommerce_pricing_icon_conditionVoucherToken"),
- items: [
- new pimcore.bundle.EcommerceFramework.pricing.config.objects(data.whiteList, {
- classes: [
- "OnlineShopVoucherSeries"
- ],
- name: "whiteList",
- title: "White List",
- visibleFields: "path",
- height: 200,
- width: 600,
- columns: [],
- columnType: null,
- datatype: "data",
- fieldtype: "objects",
- index: false,
- invisible: false,
- lazyLoading: false,
- locked: false,
- mandatory: false,
- maxItems: "",
- noteditable: false,
- permissions: null,
- phpdocType: "array",
- queryColumnType: "text",
- relationType: true,
- style: "",
- tooltip: "",
- visibleGridView: false,
- visibleSearch: false
- }).getLayoutEdit(),
- Ext.create('Ext.form.Panel', {
- style: "margin-bottom: 10px",
- cls: "object_localizedfields_panel",
- name: 'error_messages',
- isFormPanel: true,
- items: [{
- xtype: "tabpanel",
- style: "margin-bottom: 30px",
- defaults: {
- autoHeight: true,
- bodyStyle: 'padding:10px;'
- },
- items: langTabs
- }]
- })
- ]
- });
-
- return item;
- },
-
- /**
- * @param panel
- * @param data
- * @param getName
- * @returns Ext.form.FormPanel
- */
- conditionTenant: function (panel, data, getName) {
- var niceName = t("bundle_ecommerce_pricing_config_condition_tenant");
- if (typeof getName !== "undefined" && getName) {
- return niceName;
- }
-
- // check params
- if (typeof data === "undefined") {
- data = {};
- }
-
- // create item
- var myId = Ext.id();
- var item = new Ext.form.FormPanel({
- id: myId,
- type: 'Tenant',
- forceLayout: true,
- style: "margin: 10px 0 0 0",
- bodyStyle: "padding: 10px 30px 10px 30px; min-height:40px;",
- tbar: this.getTopBar(niceName, myId, panel, data, "bundle_ecommerce_pricing_icon_conditionTenant"),
- items: [{
- xtype: "textfield",
- fieldLabel: t("bundle_ecommerce_pricing_config_condition_tenant"),
- name: "tenant",
- width: 350,
- value: data.tenant
- }]
- });
-
- return item;
- }
-};
-
-
-/**
- * ACTION TYPES
- */
-pimcore.registerNS("pimcore.bundle.EcommerceFramework.pricing.actions");
-pimcore.bundle.EcommerceFramework.pricing.actions = {
-
- /**
- * @param name
- * @param index
- * @param parent
- * @param data
- * @param iconCls
- * @returns {Array}
- */
- getTopBar: function (name, index, parent, data, iconCls) {
- return [
- {
- iconCls: iconCls,
- disabled: true
- },
- {
- xtype: "tbtext",
- text: "" + name + ""
- },
- "->",
- {
- iconCls: "pimcore_icon_delete",
- handler: function (index, parent) {
- parent.actionsContainer.remove(Ext.getCmp(index));
- }.bind(window, index, parent)
- }];
- },
-
- /**
- * @param panel
- * @param data
- * @param getName
- * @returns Ext.form.FormPanel
- */
- actionGift: function (panel, data, getName) {
-
- // getName macro
- var niceName = t("bundle_ecommerce_pricing_config_action_gift");
- if(typeof getName != "undefined" && getName) {
- return niceName;
- }
-
- // check params
- if(typeof data == "undefined") {
- data = {};
- }
-
- // config
- var iconCls = 'bundle_ecommerce_pricing_icon_actionGift';
-
- // create item
- var myId = Ext.id();
- var item = new Ext.form.FormPanel({
- id: myId,
- type: 'Gift',
- forceLayout: true,
- border: true,
- style: "margin: 10px 0 0 0",
- bodyStyle: "padding: 10px 30px 10px 30px; min-height:40px;",
- tbar: this.getTopBar(niceName, myId, panel, data, iconCls),
- items: [
- {
- xtype: "textfield",
- fieldLabel: t("product"),
- name: "product",
- width: 500,
- cls: "input_drop_target",
- value: data.product,
- listeners: {
- "render": function (el) {
- new Ext.dd.DropZone(el.getEl(), {
- reference: this,
- ddGroup: "element",
- getTargetFromEvent: function(e) {
- return this.getEl();
- }.bind(el),
-
- onNodeOver : function(target, dd, e, data) {
- return Ext.dd.DropZone.prototype.dropAllowed;
- },
-
- onNodeDrop : function (target, dd, e, data) {
- var record = data.records[0];
- var data = record.data;
-
- if (data.type == "object" || data.type == "variant") {
- this.setValue(data.path);
- return true;
- }
- return false;
- }.bind(el)
- });
- }
- }
- }
- ]
- });
-
- return item;
- },
-
- /**
- * @param panel
- * @param data
- * @param getName
- * @returns Ext.form.FormPanel
- */
- actionCartDiscount: function (panel, data, getName) {
-
- // getName macro
- var niceName = t("bundle_ecommerce_pricing_config_action_cart_discount");
- if(typeof getName != "undefined" && getName) {
- return niceName;
- }
-
- // check params
- if(typeof data == "undefined") {
- data = {};
- }
-
- // config
- var iconCls = 'bundle_ecommerce_pricing_icon_actionCartDiscount';
-
- // create item
- var myId = Ext.id();
- var item = new Ext.form.FormPanel({
- id: myId,
- type: 'CartDiscount',
- forceLayout: true,
- border: true,
- style: "margin: 10px 0 0 0",
- bodyStyle: "padding: 10px 30px 10px 30px; min-height:40px;",
- tbar: this.getTopBar(niceName, myId, panel, data, iconCls),
- items: [
- {
- xtype: "numberfield",
- fieldLabel: t("bundle_ecommerce_pricing_config_action_cart_discount_amount"),
- name: "amount",
- width: 200,
- value: data.amount,
- minValue: 0
- }, {
- xtype: "numberfield",
- fieldLabel: t("bundle_ecommerce_pricing_config_action_cart_discount_percent"),
- name: "percent",
- width: 200,
- value: data.percent,
- maxValue: 100,
- minValue: 0
- }
- ]
- });
-
- return item;
- },
-
- /**
- * @param panel
- * @param data
- * @param getName
- * @returns Ext.form.FormPanel
- */
- actionProductDiscount: function (panel, data, getName) {
-
- // getName macro
- var niceName = t("bundle_ecommerce_pricing_config_action_product_discount");
- if(typeof getName != "undefined" && getName) {
- return niceName;
- }
-
- // check params
- if(typeof data == "undefined") {
- data = {};
- }
-
- // config
- var iconCls = 'bundle_ecommerce_pricing_icon_actionProductDiscount';
-
- // create item
- var myId = Ext.id();
- var item = new Ext.form.FormPanel({
- id: myId,
- type: 'ProductDiscount',
- forceLayout: true,
- border: true,
- style: "margin: 10px 0 0 0",
- bodyStyle: "padding: 10px 30px 10px 30px; min-height:40px;",
- tbar: this.getTopBar(niceName, myId, panel, data, iconCls),
- items: [
- {
- xtype: "numberfield",
- fieldLabel: t("bundle_ecommerce_pricing_config_action_product_discount_amount"),
- name: "amount",
- width: 200,
- value: data.amount,
- minValue: 0
- }, {
- xtype: "numberfield",
- fieldLabel: t("bundle_ecommerce_pricing_config_action_product_discount_percent"),
- name: "percent",
- width: 200,
- value: data.percent,
- maxValue: 100,
- minValue: 0
- }
- ]
- });
-
- return item;
- },
-
- /**
- * @param panel
- * @param data
- * @param getName
- * @returns Ext.form.FormPanel
- */
- actionFreeShipping: function (panel, data, getName) {
-
- // getName macro
- var niceName = t("bundle_ecommerce_pricing_config_action_free_shipping");
- if(typeof getName != "undefined" && getName) {
- return niceName;
- }
-
- // check params
- if(typeof data == "undefined") {
- data = {};
- }
-
- // config
- var iconCls = 'bundle_ecommerce_pricing_icon_actionFreeShipping';
-
- // create item
- var myId = Ext.id();
- var item = new Ext.form.FormPanel({
- id: myId,
- type: 'FreeShipping',
- forceLayout: true,
- border: true,
- style: "margin: 10px 0 0 0",
-// bodyStyle: "padding: 10px 30px 10px 30px; min-height:40px;",
- tbar: this.getTopBar(niceName, myId, panel, data, iconCls)
- });
-
- return item;
- }
-};
diff --git a/bundles/EcommerceFrameworkBundle/src/Resources/public/js/pricing/config/objects.js b/bundles/EcommerceFrameworkBundle/src/Resources/public/js/pricing/config/objects.js
deleted file mode 100644
index dc97255d1fd..00000000000
--- a/bundles/EcommerceFrameworkBundle/src/Resources/public/js/pricing/config/objects.js
+++ /dev/null
@@ -1,394 +0,0 @@
-/**
- * Pimcore
- *
- * This source file is available under two different licenses:
- * - GNU General Public License version 3 (GPLv3)
- * - Pimcore Commercial License (PCL)
- * Full copyright and license information is available in
- * LICENSE.md which is distributed with this source code.
- *
- * @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org)
- * @license http://www.pimcore.org/license GPLv3 and PCL
- */
-
-pimcore.registerNS("pimcore.bundle.EcommerceFramework.pricing.config.objects");
-/**
- * @private
- */
-pimcore.bundle.EcommerceFramework.pricing.config.objects = Class.create(pimcore.object.tags.manyToManyObjectRelation, {
-
- type: "objects",
- dataChanged: false,
-
- initialize: function (data, fieldConfig) {
- this.data = [];
- this.fieldConfig = fieldConfig;
-
- if (data) {
- this.data = data;
- }
-
- var fields = [];
- var visibleFields = this.fieldConfig.visibleFields.split(",");
-
- fields.push("id");
-
- var i;
-
- for(i = 0; i < visibleFields.length; i++) {
- fields.push(visibleFields[i]);
- }
-
- this.store = new Ext.data.ArrayStore({
- data: this.data,
- listeners: {
- add:function() {
- this.dataChanged = true;
- }.bind(this),
- remove: function() {
- this.dataChanged = true;
- }.bind(this),
- clear: function () {
- this.dataChanged = true;
- }.bind(this),
- update: function(store) {
- this.dataChanged = true;
- }.bind(this)
- },
- fields: fields
- });
- },
-
-
- createLayout: function(readOnly) {
- var autoHeight = false;
- if (intval(this.fieldConfig.height) < 15) {
- autoHeight = true;
- }
-
- var cls = 'object_field';
- var i;
-
- var visibleFields = this.fieldConfig.visibleFields.split(",");
-
- var columns = [];
- columns.push({header: 'ID', dataIndex: 'id', width: 50});
-
- for (i = 0; i < visibleFields.length; i++) {
- columns.push({header: t(visibleFields[i]), dataIndex: visibleFields[i], width: 100, editor: null,
- renderer: renderer});
- }
-
- for (i = 0; i < this.fieldConfig.columns.length; i++) {
- var width = 100;
- if(this.fieldConfig.columns[i].width) {
- width = this.fieldConfig.columns[i].width;
- }
-
- var editor = null;
- var renderer = null;
- var listeners = null;
-
- if(this.fieldConfig.columns[i].type == "number" && !readOnly) {
- editor = new Ext.form.NumberField({});
-
- } else if(this.fieldConfig.columns[i].type == "text" && !readOnly) {
- editor = new Ext.form.TextField({});
- } else if(this.fieldConfig.columns[i].type == "select" && !readOnly) {
- var selectDataRaw = this.fieldConfig.columns[i].value.split(";");
- var selectData = [];
- for(var j = 0; j < selectDataRaw.length; j++) {
- selectData.push([selectDataRaw[j], selectDataRaw[j]]);
- }
-
- editor = new Ext.form.ComboBox({
- typeAhead: true,
- forceSelection: true,
- triggerAction: 'all',
- lazyRender:true,
- mode: 'local',
-
- store: new Ext.data.ArrayStore({
- fields: [
- 'value',
- 'label'
- ],
- data: selectData
- }),
- valueField: 'value',
- displayField: 'label'
- });
- } else if(this.fieldConfig.columns[i].type == "bool") {
- if(!readOnly) {
- columns.push(new Ext.grid.CheckColumn({
- header: t(this.fieldConfig.columns[i].label),
- dataIndex: this.fieldConfig.columns[i].key,
- width: width
- }));
- continue;
- }
- renderer = function (value, metaData, record, rowIndex, colIndex, store) {
- metaData.css += ' x-grid3-check-col-td';
- if(!value || value == "0") {
- value = false;
- }
- return String.format('
', value ? '-on' : '');
- };
-
- }
-
- columns.push({
- header: t(this.fieldConfig.columns[i].label),
- dataIndex: this.fieldConfig.columns[i].key,
- editor: editor,
- renderer: renderer,
- listeners: listeners,
- sortable: true,
- width: width
- });
- }
-
- columns.push({
- xtype: 'actioncolumn',
- menuText: t('open'),
- width: 40,
- items: [
- {
- tooltip: t('open'),
- icon: "/bundles/pimcoreadmin/img/flat-color-icons/open_file.svg",
- handler: function (grid, rowIndex) {
- var data = grid.getStore().getAt(rowIndex);
- pimcore.helpers.openObject(data.data.id, "object");
- }.bind(this)
- }
- ]
- });
-
- if(!readOnly) {
- columns.push({
- xtype: 'actioncolumn',
- menuText: t('remove'),
- width: 40,
- items: [
- {
- tooltip: t('remove'),
- icon: "/bundles/pimcoreadmin/img/flat-color-icons/delete.svg",
- handler: function (grid, rowIndex) {
- grid.getStore().removeAt(rowIndex);
- }.bind(this)
- }
- ]
- });
- }
-
-
- this.component = new Ext.grid.GridPanel({
- store: this.store,
- selModel: Ext.create('Ext.selection.RowModel', {}),
- minHeight: 150,
- border: true,
- viewConfig: {
- forceFit: true
- },
- columns: [
- {dataIndex: 'id', header: 'ID', flex: 50},
- {dataIndex: "path", header: t("path"), flex: 200},
- {
- xtype: 'actioncolumn',
- menuText: t('open'),
- width: 40,
- items: [
- {
- tooltip: t('open'),
- icon: "/bundles/pimcoreadmin/img/flat-color-icons/open_file.svg",
- handler: function (grid, rowIndex) {
- var data = grid.getStore().getAt(rowIndex);
- pimcore.helpers.openObject(data.data.id, "object");
- }.bind(this)
- }
- ]
- },
- {
- xtype: 'actioncolumn',
- menuText: t('remove'),
- width: 40,
- items: [
- {
- tooltip: t('remove'),
- icon: "/bundles/pimcoreadmin/img/flat-color-icons/delete.svg",
- handler: function (grid, rowIndex) {
- grid.getStore().removeAt(rowIndex);
- }.bind(this)
- }
- ]
- }
- ]
- ,
- cls: cls,
- width: this.fieldConfig.width,
- height: this.fieldConfig.height,
- style: this.fieldConfig.style,
- tbar: {
- items: [
- {
- xtype: "tbspacer",
- width: 20,
- height: 16,
- cls: "pimcore_icon_droptarget"
- },
- {
- xtype: "tbtext",
- text: "" + this.fieldConfig.title + ""
- },
- "->",
- {
- xtype: "button",
- iconCls: "pimcore_icon_search",
- handler: this.openSearchEditor.bind(this)
- },
- {
- xtype: "button",
- iconCls: "pimcore_icon_delete",
- handler: this.empty.bind(this)
- }
- ],
- ctCls: "pimcore_force_auto_width",
- cls: "pimcore_force_auto_width"
- },
- autoHeight: autoHeight,
- bodyCssClass: "pimcore_object_tag_objects"
- });
-
- this.component.on("rowcontextmenu", this.onRowContextmenu);
- this.component.reference = this;
-
- if(!readOnly) {
- this.component.on("afterrender", function () {
-
- var dropTargetEl = this.component.getEl();
- var gridDropTarget = new Ext.dd.DropZone(dropTargetEl, {
- ddGroup : 'element',
- getTargetFromEvent: function(e) {
- return this.component.getEl().dom;
- //return e.getTarget(this.grid.getView().rowSelector);
- }.bind(this),
- onNodeOver: function (overHtmlNode, ddSource, e, data) {
- var record = data.records[0];
- var data = record.data;
- var fromTree = this.isFromTree(ddSource);
-
- if (data.elementType == "object" && this.dndAllowed(data, fromTree)) {
- return Ext.dd.DropZone.prototype.dropAllowed;
- } else {
- return Ext.dd.DropZone.prototype.dropNotAllowed;
- }
-
- }.bind(this),
- onNodeDrop : function(target, ddSource, e, data) {
- var record = data.records[0];
- var data = record.data;
- var fromTree = this.isFromTree(ddSource);
-
- // check if data is a treenode, if not allow drop because of the reordering
- if (!fromTree) {
- return true;
- }
-
- if (data.elementType != "object") {
- return false;
- }
-
- if (this.dndAllowed(data, fromTree)) {
- var initData = {
- id: data.id,
- path: data.path,
- type: data.className
- };
-
- if (!this.objectAlreadyExists(initData.id)) {
- this.store.add(initData);
- return true;
- }
- }
- return false;
- }.bind(this)
- });
- }.bind(this));
- }
-
-
- return this.component;
- },
-
-
- getLayoutEdit: function () {
- return this.createLayout(false);
- },
-
- getLayoutShow: function () {
- return this.createLayout(true);
- },
-
-
- openSearchEditor: function () {
- var allowedClasses;
- if (this.fieldConfig.classes != null && this.fieldConfig.classes.length > 0) {
- allowedClasses = [];
- for (var i = 0; i < this.fieldConfig.classes.length; i++) {
- allowedClasses.push(this.fieldConfig.classes[i]);
- }
- }
-
- pimcore.helpers.itemselector(true, this.addDataFromSelector.bind(this), {
- type: ["object"],
- subtype: {
- object: ["object", "folder","variant"]
- },
- specific: {
- classes: allowedClasses
- }
- });
- },
-
- addDataFromSelector: function (items) {
-
- if (items.length > 0) {
-
- var toBeRequested = new Ext.util.Collection();
-
- for (var i = 0; i < items.length; i++) {
- if (!this.objectAlreadyExists(items[i].id)) {
- toBeRequested.add(this.store.add({
- id: items[i].id,
- path: items[i].fullpath,
- type: items[i].classname
- }));
- }
- }
- }
- }
- ,
-
-
- dndAllowed: function(data, fromTree) {
-
- // check if data is a treenode, if not allow drop because of the reordering
- if (!fromTree) {
- return true;
- }
-
- // only allow objects not folders
- if (data.type == "folder") {
- return false;
- }
-
- //check if allowed classes config is set and if it applies
- if(this.fieldConfig.classes) {
- return (this.fieldConfig.classes.indexOf(data.className) > -1);
- }
-
- // allow all objects (temporary)
- return true;
- }
-});
diff --git a/bundles/EcommerceFrameworkBundle/src/Resources/public/js/pricing/config/panel.js b/bundles/EcommerceFrameworkBundle/src/Resources/public/js/pricing/config/panel.js
deleted file mode 100644
index c5041084749..00000000000
--- a/bundles/EcommerceFrameworkBundle/src/Resources/public/js/pricing/config/panel.js
+++ /dev/null
@@ -1,436 +0,0 @@
-/**
- * Pimcore
- *
- * This source file is available under two different licenses:
- * - GNU General Public License version 3 (GPLv3)
- * - Pimcore Commercial License (PCL)
- * Full copyright and license information is available in
- * LICENSE.md which is distributed with this source code.
- *
- * @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org)
- * @license http://www.pimcore.org/license GPLv3 and PCL
- */
-
-pimcore.registerNS("pimcore.bundle.EcommerceFramework.pricing.config.panel");
-
-/**
- * @private
- */
-pimcore.bundle.EcommerceFramework.pricing.config.panel = Class.create({
-
- /**
- * @var string
- */
- layoutId: "",
-
- /**
- * @var array
- */
- condition: [],
-
- /**
- * @var array
- */
- action: [],
-
- /**
- * panels of open pricing rules
- */
- panels: {},
-
-
- /**
- * constructor
- * @param layoutId
- */
- initialize: function(layoutId) {
- this.layoutId = layoutId;
-
- // load defined conditions & actions
- var _this = this;
- Ext.Ajax.request({
- url: Routing.generate('pimcore_ecommerceframework_pricing_get-config'),
- method: "GET",
- success: function(result){
- var config = Ext.decode(result.responseText);
- _this.condition = config.condition;
- _this.action = config.action;
- }
- });
-
- // create layout
- this.getLayout();
- },
-
-
- /**
- * activate panel
- */
- activate: function () {
- var tabPanel = Ext.getCmp("pimcore_panel_tabs");
- tabPanel.setActiveItem( this.layoutId );
- },
-
-
- /**
- * create tab panel
- * @returns Ext.Panel
- */
- getLayout: function () {
-
- if (!this.layout) {
-
- // create new panel
- this.layout = new Ext.Panel({
- id: this.layoutId,
- title: t("bundle_ecommerce_pricing_rules"),
- iconCls: "bundle_ecommerce_pricing_rules",
- border: false,
- layout: "border",
- closable: true,
-
- // layout...
- items: [
- this.getTree(), // item tree, left side
- this.getTabPanel() // edit page, right side
- ]
- });
-
- // add event listener
- var layoutId = this.layoutId;
- this.layout.on("destroy", function () {
- pimcore.globalmanager.remove( layoutId );
- }.bind(this));
-
- // add panel to pimcore panel tabs
- var tabPanel = Ext.getCmp("pimcore_panel_tabs");
- tabPanel.add( this.layout );
- tabPanel.setActiveItem( this.layoutId );
-
- // update layout
- pimcore.layout.refresh();
- }
-
- return this.layout;
- },
-
-
- /**
- * return treelist
- * @returns {*}
- */
- getTree: function () {
- if (!this.tree) {
- this.saveButton = new Ext.Button({
- // save button
- hidden: true,
- text: t("save"),
- iconCls: "pimcore_icon_save",
- handler: function() {
- // this
- var button = this;
-
- // get current order
- var prio = 0;
- var rules = {};
-
- this.ownerCt.ownerCt.getRootNode().eachChild(function (rule){
- prio++;
- rules[ rule.id ] = prio;
- });
-
- // save order
- Ext.Ajax.request({
- url: Routing.generate('pimcore_ecommerceframework_pricing_save-order'),
- params: {
- rules: Ext.encode(rules)
- },
- method: "PUT",
- success: function(){
- button.hide();
- }
- });
-
- }
- });
-
- var store = Ext.create('Ext.data.TreeStore', {
- autoLoad: false,
- autoSync: true,
- proxy: {
- type: 'ajax',
- url: Routing.generate('pimcore_ecommerceframework_pricing_list'),
- reader: {
- type: 'json'
- }
- }
- });
-
- this.tree = new Ext.tree.TreePanel({
- store: store,
- region: "west",
- useArrows:true,
- autoScroll:true,
- animate:true,
- containerScroll: true,
- width: 200,
- split: true,
- rootVisible: false,
- viewConfig: {
- plugins: {
- ptype: 'treeviewdragdrop'
- }
- },
- listeners: {
- itemclick: this.openRule.bind(this),
- itemcontextmenu: function (tree, record, item, index, e, eOpts ) {
- tree.select();
-
- var menu = new Ext.menu.Menu();
- menu.add(new Ext.menu.Item({
- text: t('delete'),
- iconCls: "pimcore_icon_delete",
- handler: this.deleteRule.bind(this, tree, record)
- }));
-
- menu.add(new Ext.menu.Item({
- text: t('copy'),
- iconCls: "pimcore_icon_copy",
- handler: this.copyRule.bind(this, tree, record)
- }));
-
- menu.add(new Ext.menu.Item({
- text: t('rename'),
- iconCls: "pimcore_icon_key pimcore_icon_overlay_go",
- handler: this.renameRule.bind(this, tree, record)
- }));
-
- e.stopEvent();
- menu.showAt(e.pageX, e.pageY);
- }.bind(this),
- 'beforeitemappend': function (thisNode, newChildNode, index, eOpts) {
- newChildNode.data.leaf = true;
- },
- itemmove: function(tree, oldParent, newParent, index, eOpts ) {
- this.saveButton.show();
- }.bind(this)
- },
- tbar: {
- items: [
- {
- // add button
- text: t("add"),
- iconCls: "pimcore_icon_add",
- handler: this.addRule.bind(this)
- }, {
- // spacer
- xtype: 'tbfill'
- }, this.saveButton
- ]
- }
- });
-
- this.tree.on("render", function () {
- this.getRootNode().expand();
- });
- }
-
- return this.tree;
- },
-
-
- /**
- * add item popup
- */
- addRule: function () {
- Ext.MessageBox.prompt(t('bundle_ecommerce_pricing_rule_add'), t('enter_the_name_of_the_new_item'),
- this.addRuleComplete.bind(this), null, null, "");
- },
-
-
- /**
- * save added item
- * @param button
- * @param value
- * @param object
- * @todo ...
- */
- addRuleComplete: function (button, value, object) {
-
- var regresult = value.match(/[a-zA-Z0-9_\-]+/);
- if (button == "ok" && value.length > 2 && regresult == value) {
- Ext.Ajax.request({
- url: Routing.generate('pimcore_ecommerceframework_pricing_add'),
- method: 'POST',
- params: {
- name: value,
- documentId: (this.page ? this.page.id : null)
- },
- success: function (response) {
- var data = Ext.decode(response.responseText);
-
- this.refresh(this.tree.getRootNode());
-
- if(!data || !data.success) {
- Ext.Msg.alert(t('bundle_ecommerce_pricing_rule_add'), t('bundle_ecommerce_pricing_rule_error'));
- } else {
- this.openRule(null, intval(data.id));
- }
- }.bind(this)
- });
- } else if (button == "cancel") {
- return;
- }
- else {
- Ext.Msg.alert(t('bundle_ecommerce_pricing_rule_add'), t('invalid_name'));
- }
- },
-
- refresh: function (record) {
- var ownerTree = record.getOwnerTree();
- record.data.expanded = true;
- ownerTree.getStore().load({
- node: record
- });
- },
- /**
- * delete existing rule
- */
- deleteRule: function (tree, record) {
- pimcore.helpers.deleteConfirm(t('bundle_ecommerce_pricing_rule'), record.data.text, function () {
- Ext.Ajax.request({
- url: Routing.generate('pimcore_ecommerceframework_pricing_delete'),
- method: 'DELETE',
- params: {
- id: record.id
- },
- success: function () {
- this.refresh(this.tree.getRootNode());
- }.bind(this)
- });
- }.bind(this));
-
- },
-
- /**
- * copy pricing rule
- * @param tree
- * @param record
- */
- copyRule: function (tree, record) {
- Ext.Ajax.request({
- url: Routing.generate('pimcore_ecommerceframework_pricing_copy'),
- method: 'POST',
- params: {
- id: record.id
- },
- success: function () {
- this.refresh(this.tree.getRootNode());
- }.bind(this)
- });
- },
-
- /**
- * rename pricing rule popup
- * @param tree
- * @param record
- */
- renameRule: function (tree, record) {
-
- let options = {
- tree: tree,
- id: record.id,
- };
-
- Ext.MessageBox.prompt(t('rename'), t('enter_the_name_of_the_new_item'),
- this.renameRuleComplete.bind(this, options), null, null, record.data.text);
- },
-
- /**
- * rename pricing rule
- * @param button
- * @param value
- * @param object
- */
- renameRuleComplete: function (options, button, value, object) {
-
- if (button == 'ok') {
-
- if(value.match(/^[a-zA-Z0-9_\-]+$/)) {
- let tree = options.tree;
-
- Ext.Ajax.request({
- url: Routing.generate('pimcore_ecommerceframework_pricing_rename'),
- method: 'PUT',
- params: {
- id: options.id,
- name: value
- },
- success: function (response, opts) {
-
- let responseData = Ext.decode(response.responseText);
-
- if (responseData.success) {
- this.refresh(this.tree.getRootNode());
- } else {
- Ext.MessageBox.alert(t('rename'), t('name_already_in_use'));
- }
- }.bind(this)
- });
- } else {
- Ext.Msg.alert(t('rename'), t('invalid_name'));
- }
- }
- },
-
- /**
- * open pricing rule
- * @param node
- */
- openRule: function (tree, record, item, index, e, eOpts ) {
-
- if(!is_numeric(record)) {
- record = record.id;
- }
-
- //try {
- var pricingRuleKey = "pricingrule_" + record;
- if (this.panels[pricingRuleKey]) {
- this.panels[pricingRuleKey].activate();
- } else {
- // load defined rules
- Ext.Ajax.request({
- url: Routing.generate('pimcore_ecommerceframework_pricing_get'),
- params: {
- id: record
- },
- success: function (response) {
- var res = Ext.decode(response.responseText);
- var item = new pimcore.bundle.EcommerceFramework.pricing.config.item(this, res);
- this.panels[pricingRuleKey] = item;
- }.bind(this)
- });
- }
- //} catch (e) {
- // console.log(e);
- //}
-
-
-
- },
-
-
- /**
- * @returns Ext.TabPanel
- */
- getTabPanel: function () {
- if (!this.panel) {
- this.panel = new Ext.TabPanel({
- region: "center",
- border: false
- });
- }
-
- return this.panel;
- }
-});
diff --git a/bundles/EcommerceFrameworkBundle/src/Resources/public/js/startup.js b/bundles/EcommerceFrameworkBundle/src/Resources/public/js/startup.js
deleted file mode 100644
index ce4f09b434d..00000000000
--- a/bundles/EcommerceFrameworkBundle/src/Resources/public/js/startup.js
+++ /dev/null
@@ -1,120 +0,0 @@
-/**
- * Pimcore
- *
- * This source file is available under two different licenses:
- * - GNU General Public License version 3 (GPLv3)
- * - Pimcore Commercial License (PCL)
- * Full copyright and license information is available in
- * LICENSE.md which is distributed with this source code.
- *
- * @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org)
- * @license http://www.pimcore.org/license GPLv3 and PCL
- */
-
-
-
-pimcore.registerNS("pimcore.bundle.ecommerce.startup");
-
-/**
- * @private
- */
-pimcore.bundle.ecommerce.startup = Class.create({
- initialize: function () {
- document.addEventListener(pimcore.events.preMenuBuild, this.preMenuBuild.bind(this));
- document.addEventListener(pimcore.events.postOpenObject, this.postOpenObject.bind(this));
- },
-
- preMenuBuild: function (e) {
- const perspectiveCfg = pimcore.globalmanager.get("perspective");
- if (!perspectiveCfg.inToolbar("ecommerce")) {
- return
- }
- const user = pimcore.globalmanager.get("user");
- let menu = e.detail.menu;
-
- let items = [];
-
- menu.ecommerce = {
- label: t('bundle_ecommerce_mainmenu'),
- iconCls: 'bundle_ecommerce_nav_icon_shopping_cart',
- priority: 42,
- items: items,
- shadow: false,
- cls: "pimcore_navigation_flyout"
- };
-
- let config = pimcore.bundle.EcommerceFramework.config;
-
- // pricing rules
- if (perspectiveCfg.inToolbar("ecommerce.rules")
- && user.isAllowed("bundle_ecommerce_pricing_rules")
- && (!config.menu || config.menu.pricing_rules.enabled)) {
- // add pricing rules to menu
- const pricingPanelId = "bundle_ecommerce_pricing_config";
- const item = {
- text: t("bundle_ecommerce_pricing_rules"),
- iconCls: "pimcore_nav_icon_commerce_pricing_rules",
- priority: 10,
- handler: function () {
- try {
- pimcore.globalmanager.get(pricingPanelId).activate();
- }
- catch (e) {
- pimcore.globalmanager.add(pricingPanelId, new pimcore.bundle.EcommerceFramework.pricing.config.panel(pricingPanelId));
- }
- }
- };
-
- items.push(item);
- }
-
- // order backend
- if (perspectiveCfg.inToolbar("ecommerce.orderbackend")
- && user.isAllowed("bundle_ecommerce_back-office_order")
- && (!config.menu || config.menu.order_list.enabled)) {
- const orderPanelId = "bundle_ecommerce_back-office_order";
- const item = {
- text: t("bundle_ecommerce_back-office_order"),
- iconCls: "pimcore_nav_icon_commerce_backoffice",
- priority: 20,
- handler: function () {
- try {
- pimcore.globalmanager.get(orderPanelId).activate();
- }
- catch (e) {
- pimcore.globalmanager.add(orderPanelId, new pimcore.tool.genericiframewindow(orderPanelId, config.menu.order_list.route, "bundle_ecommerce_back-office_order", t('bundle_ecommerce_back-office_order')));
- }
- }
- };
-
- items.push(item);
- }
- menu.ecommerce.items = items;
- },
-
- postOpenObject: function (e) {
- if (pimcore.globalmanager.get("user").isAllowed("bundle_ecommerce_pricing_rules")) {
-
- if (e.detail.type == "object" && e.detail.object.data.general.className == "OnlineShopVoucherSeries") {
- const tab = new pimcore.bundle.EcommerceFramework.VoucherSeriesTab(e.detail.object, e.detail.type);
-
- e.detail.object.tab.items.items[1].insert(1, tab.getLayout());
- e.detail.object.tab.items.items[1].updateLayout();
- pimcore.layout.refresh();
- }
- }
-
- if (pimcore.globalmanager.get("user").isAllowed("bundle_ecommerce_back-office_order")) {
-
- if (e.detail.type == "object" && e.detail.object.data.general.className == "OnlineShopOrder") {
- const tab = new pimcore.bundle.EcommerceFramework.OrderTab(e.detail.object, e.detail.type);
- e.detail.object.tab.items.items[1].insert(0, tab.getLayout());
- e.detail.object.tab.items.items[1].updateLayout();
- e.detail.object.tab.items.items[1].setActiveTab(0);
- pimcore.layout.refresh();
- }
- }
- }
-});
-
-const pimcoreBundleEcommerce = new pimcore.bundle.ecommerce.startup();
\ No newline at end of file
diff --git a/bundles/EcommerceFrameworkBundle/src/Resources/public/js/voucherservice/VoucherSeriesTab.js b/bundles/EcommerceFrameworkBundle/src/Resources/public/js/voucherservice/VoucherSeriesTab.js
deleted file mode 100644
index 4b63822ae62..00000000000
--- a/bundles/EcommerceFrameworkBundle/src/Resources/public/js/voucherservice/VoucherSeriesTab.js
+++ /dev/null
@@ -1,88 +0,0 @@
-/**
- * Pimcore
- *
- * This source file is available under two different licenses:
- * - GNU General Public License version 3 (GPLv3)
- * - Pimcore Commercial License (PCL)
- * Full copyright and license information is available in
- * LICENSE.md which is distributed with this source code.
- *
- * @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org)
- * @license http://www.pimcore.org/license GPLv3 and PCL
- */
-
-pimcore.registerNS("pimcore.bundle.EcommerceFramework.VoucherSeriesTab");
-
-/**
- * @private
- */
-pimcore.bundle.EcommerceFramework.VoucherSeriesTab = Class.create({
-
- title: t('bundle_ecommerce_vouchertoolkit_tab'),
- iconCls: 'plugin_voucherservice_icon',
- src: null,
- id: null,
-
- initialize: function(object, type) {
- this.object = object;
- this.id = object.id;
- this.src = this.src + "?id=" + this.id;
- this.type = type;
- this.src = Routing.generate('pimcore_ecommerce_backend_voucher_voucher-code-tab', {id: this.id});
- },
-
- getLayout: function () {
- if (this.panel == null) {
-
- this.reloadButton = new Ext.Button({
- text: t("reload"),
- iconCls: "pimcore_icon_reload",
- handler: this.reload.bind(this)
- });
-
-
- this.panel = new Ext.Panel({
- id: "bundle_ecommerce_vouchertoolkit_tab_" + this.id,
- title: this.title,
- iconCls: this.iconCls,
- border: false,
- layout: "fit",
- closable: false,
- bodyStyle: "-webkit-overflow-scrolling:touch;",
- html: '',
- tbar: [this.reloadButton]
- });
-
- this.panel.on("resize", this.onLayoutResize.bind(this));
- var that = this;
- this.panel.on("afterrender", function(e){
- that.panel.on("activate", function(e){
- that.reload();
- });
- });
-
- }
- return this.panel;
-
- },
-
- onLayoutResize: function (el, width, height, rWidth, rHeight) {
- this.setLayoutFrameDimensions(width, height);
- },
-
- setLayoutFrameDimensions: function (width, height) {
- Ext.get("bundle_ecommerce_vouchertoolkit_tab_frame_" + this.id).setStyle({
- height: (height - 50) + "px"
- });
- },
-
- reload: function () {
- try {
- Ext.get("bundle_ecommerce_vouchertoolkit_tab_frame_" + this.id).dom.src = this.src;
- }
- catch (e) {
- console.log(e);
- }
- }
-
-});
diff --git a/bundles/EcommerceFrameworkBundle/src/Resources/public/js/voucherservice/voucherSeriesTabScript.js b/bundles/EcommerceFrameworkBundle/src/Resources/public/js/voucherservice/voucherSeriesTabScript.js
deleted file mode 100644
index 32b4709e310..00000000000
--- a/bundles/EcommerceFrameworkBundle/src/Resources/public/js/voucherservice/voucherSeriesTabScript.js
+++ /dev/null
@@ -1,85 +0,0 @@
-/**
- * Pimcore
- *
- * This source file is available under two different licenses:
- * - GNU General Public License version 3 (GPLv3)
- * - Pimcore Commercial License (PCL)
- * Full copyright and license information is available in
- * LICENSE.md which is distributed with this source code.
- *
- * @copyright Copyright (c) Pimcore GmbH (http://www.pimcore.org)
- * @license http://www.pimcore.org/license GPLv3 and PCL
- */
-
-/**
- * @private
- */
-document.addEventListener("DOMContentLoaded", function(event) {
- var cleanupButtons = document.getElementById('cleanupButtons');
- if (cleanupButtons) {
- new Button(cleanupButtons);
- }
-
- /**
- * Init Tabs
- */
- var navTabs = document.getElementById('tabs');
- var navTabsCollection = navTabs.getElementsByTagName('A');
- for (var i = 0; i < navTabsCollection.length; i++) {
- new Tab(navTabsCollection[i]);
- }
-
- /**
- * Init Status Messages Fadeout
- */
- var initFadeOut = function () {
- setTimeout(function () {
- var alert = document.querySelector('.js-fadeout');
- if (alert) {
- alert.style.display = 'none';
- }
- }, 5000);
- };
-
- initFadeOut();
-
- /**
- * Init Modal
- */
- document.querySelectorAll('.js-modal').forEach(function(el){
- el.addEventListener('click', function() {
- var selector = this.getAttribute('data-modal');
-
- var modal = document.getElementById(selector);
- var modalInstance = new Modal(modal,
- {
- "backdrop": "static",
- "keyboard": true,
- });
- modalInstance.show();
- });
- });
-
- /**
- * Init Modal Loadings
- */
- document.querySelectorAll('.modal .js-loading').forEach(function(el) {
- el.addEventListener('click', function () {
- var text = this.getAttribute('data-msg');
- var children = this.parentNode.children;
- var children = Array.prototype.slice.call(children);
- children.forEach.call(children, function(child) {
- child.style.display = 'none';
- });
-
- var newChild = document.createElement('div');
- newChild.setAttribute('class', 'text-left row');
- newChild.innerHTML = " "
- + text +
- "