Skip to content

How to Install SintraPimcoreBundle

Marco Guiducci edited this page May 13, 2019 · 13 revisions

How to Install SintraPimcoreBundle

Once you have Installed Pimcore, add the following dependencies to your Pimcore composer.json file

"require": {
     "...": "...",
     "phpclassic/php-shopify": "v1.0.2",
     "springimport/swagger-magento2-client": "*@dev"
},

In order to properly install the SintraPimcoreBundle, follow these steps. The execution order is crucial to get a correct installation.

  1. Clone the repository in the src/SintraPimcoreBundle directory in yours Pimcore installation

  2. Bulk import the configuration file that you will find inside the Exports/ folder in order to create Classes, FieldCollections and ObjectBricks needed by the SintraPimcoreBundle.

    Pimcore < v5.6.0 ----> structure_configuration.json
    Pimcore >= v5.6.0 ---> structure_configuration_v5.6.json

    CAUTION:
    In case that you already have defined a Pimcore class named "Product", export the class configuration in order to re-upload that later. This is necessary because bulk import replace classes definitions if the class name match.
    You can achieve this point directly on Pimcore interface selecting: Settings -> Data Objects -> Bulk Import

  3. Duplicate the Resources/Ecommerce/BaseEcommerceConfig.php.example file and remove the .example extension. Edit the created BaseEcommerceConfig.php file and set your own information. In order to override some SintraPimcoreBundle functionalities, properly set the custom bundle namespace. Check how to Create a New Bundle and How to Customize SintraPimcoreBundle.

  4. Enable and Install the SintraPimcoreBundle by the Pimcore Extensions Manager. You can achieve this point directly on Pimcore interface selecting: Tools -> Extensions


Now that you have installed the SintraPimcoreBundle, you are free to customize the "Product" class as you like. Keep in mind that the "sku" field is required by some bundle's functionalities in order to identify a product using a unique key.

Once you have structured your class, you can Configure a TargetServer for Objects Synchronization.