In simple words, the Class Data Objects help us to create structured data in Pimcore PIM. So, if you don’t have an idea about Pimcore classes then please follow the steps involved in this blog to create it.
Don’t worry, if you don’t have an idea about Object-Oriented Programming.
We can say that Data Objects in Pimcore are much similar to Object-Oriented Data objects. The class type of data object can be created and managed by GUI (Graphical User Interface).
So, if you will create a class in the admin panel then it will be created as a simple PHP code in the Pimcore.
The data object in the Pimcore can be managed through inheritance in a simple PHP code. Now, I am not going to tell you how to manage it from the code. In this blog, I will use GUI.
Pimcore Company ? Read More
With the help of the data objects, you can sync the data from Pimcore to third-party systems like ERP, CRM, and eCommerce.
Create the Data Object
You can check the blog article to understand more about the data objects in Pimcore. Now, I think it is clear what is data objects in Pimcore so let’s move on to create a class type of data object.
For this, you need to install the Pimcore on your dedicated server. After that, you can log in to your Pimcore dashboard by entering the user login and password.
On the left side of the menu, you will get the “setting” icon. You can navigate to Setting -> Data Object -> Classes. Classes are a collection of some pre-defined data types. The data type could be a number, text, or a reference type of object so that you can make a complete connection.
Here you will get some Pre-defined classes provided by Pimcore after installation so you can change these or you can create a new one.
For creating new Classes, you can click on the “Add” button and a pop-up will open where you can enter the details of your custom class.
So, in the pop-up, you can enter the details like “Class Name” and “Unique Identifier”. Make sure, you are entering the correct unique identifier because, in the Pimcore Database, you can enter only 64 characters.
So, I have just created a new class and named it “Test_Pim”. You can see the General Information section in the Pimcore. In this, you can see and modify the basic details of a Class data object.
You can update the name and description of class-type data objects.
That’s all how to create a Class type of data object in Pimcore. In this blog series, the next topic will be “Class Setting in Pimcore”. After that, we will learn how to create the “Add Layout Component” and “Add Data component” in Pimcore.