Projekt

Allgemein

Profil

Aktionen

GX-Feature #70773

offen

Einfache Erweiterung Kundendaten im Backend | Simple customization of customer data in backend

Von Jan Hiller vor etwa 1 Jahr hinzugefügt. Vor 2 Monaten aktualisiert.

Status:
In Bearbeitung
Priorität:
Normal
Zugewiesen an:
-
Kategorie:
Adminbereich
Zielversion:
-
% erledigt:

0%

Geschätzter Aufwand:
Steps to reproduce:
Betroffene Versionen:
Unbestimmt
Release Notes Langtext:

Beschreibung

Es wäre gut, wenn es eine einfache Möglichkeit gäbe, die Verwaltung der Kundendaten um eigene Felder zu erweitern.

Wir nutzen die bereits im System verfügbaren CustomerAddonValues, die über die API mit Daten gefüllt werden können, oder von GXModules benutzt werden können.

It would be good if there was an easy way to add custom fields to the customer data management.

We use the CustomerAddonValues already available in the system, which can be filled with data via the API or used by GXModules.

├── 3rdPartyCustomerChanges
│   └── Admin
│       └── customers
│           ├── overview
│           │   ├── filter.json
│           │   ├── menu.json
│           │   ├── table.json
│           │   └── topbar.json
│           └── profile
│               ├── address.json
│               ├── cards.json
│               ├── company.json
│               ├── contact.json
│               ├── menu.json
│               ├── personal_information.json
│               ├── settings.json
│               └── topbar.json
└── More3rdPartcCustomerChanges
   └── Admin
       └── customers
           ├── overview
           │   └── menu.json
           └── profile
               ├── address.json
               ├── company.json
               ├── contact.json
               ├── menu.json
               ├── personal_information.json
               ├── settings.json
               └── topbar.json

To use the new extension in the new customer page, you can create the JSON files in the above mentioned folders.
Here are some examples:

/GXModules/GambioTT/More3rdPartcCustomerChanges/Admin/customers/overview/table.json

{
    "myRow4": {
        "title": "myRow4",
        "label": "myLabel",
        "width": 150,
        "addonValueKey": "myAddonKey"
    },
    "myRow5": {
        "title": "",
        "type": "icon",
        "label": "myIcon",
        "icon": "gift",
        "width": 50,
        "addonValueKey": "another-addon-value-key",
        "if": {
            "operator" : "=",
            "value" : 1234
        }
    }
}

/GXModules/GambioTT/3rdPartyCustomerChanges/Admin/customers/profile/topbar.json

{
    "myInput" : {
        "label" : "3rdPartyCustomerChanges.myButton2",
        "type" : "input",
        "unit" : "€"
    },
    "myButton" : {
        "label" : "3rdPartyCustomerChanges.myButton",
        "type" : "button",
        "modal" : "MyModal",
        "action" : "openModal",
        "color" : "secondary",
        "icon" : "clock"
    },
    "myIcon" : {
        "type" : "button",
        "modal" : "MyModal",
        "action" : "openModal",
        "color" : "secondary",
        "icon" : "user"
    },
    "MyModal" : {
        "title" : "myModalTitle",
        "type" : "modal",
        "content" : "myForm",
        "buttons" : {
            "myButton2" : {
                "label" : "Abbrechen",
                "action" : "close"
            },
            "myButton" : {
                "label" : "Speichern",
                "action" : "save",
                "color" : "primary"
            }
        }
    }
}

/GXModules/GambioTT/3rdPartyCustomerChanges/Admin/customers/profile/cards.json

{
    "myCard": {
        "title": "3rdPartyCustomerChanges.mycard",
        "type": "card",
        "content": {
            "inputGroup": {
                "placeholder": "InputGroup",
                "type": "InputGroup",
                "before": {
                    "myButton": {
                        "type": "button",
                        "action": "save",
                        "icon": "clock",
                        "color": "primary"
                    }
                },
                "after": {
                    "myText": {
                        "type": "Text",
                        "label": "€"
                    }
                }
            }
        }
    },
    "myCard2": {
        "title": "3rdPartyCustomerChanges.myCard2",
        "type": "card",
        "content": {
            "inputGroup": {
                "placeholder": "InputGroup",
                "type": "InputGroup",
                "after": {
                    "myButton": {
                        "label": "Button",
                        "type": "button",
                        "action": "save",
                        "color": "primary"
                    }
                }
            },
            "myButton": {
                "label": "Speichern",
                "type": "button",
                "action": "save",
                "color": "primary"
            }
        }
    }
}

Aktionen

Auch abrufbar als: Atom PDF