Managing product catalogs is often one of the most technical challenges for companies operating with multiple systems. When a business chooses Pimcore 12 as its central product information management platform and commercetools as its headless commerce engine, the need to keep both environments synchronized becomes unavoidable. Doing this manually — typing every attribute, uploading images one by one, rebuilding the category tree — is not only inefficient but also introduces errors and drift that can become costly over time. In this article we explain step by step how to establish a robust connection between Pimcore 12 and commercetools, based on integration best practices and the expertise of Q2BSTUDIO as a technology partner specialized in custom software development.
Before starting, it is important to understand that integrating a PIM with an e-commerce platform is not a simple data dump. It involves handling category hierarchies, product families with typed attributes, multi-currency prices, variants, images, and localized content. A well-designed connector must ensure data flows in both directions in an idempotent way — repeating the process should not create duplicates or inconsistencies. Additionally, credential security and traceability of each operation are critical factors that require a solid cybersecurity infrastructure, especially when working with cloud environments like AWS or Azure, where Q2BSTUDIO offers advanced consulting services.
Step 1: Environment preparation and credential acquisition
The first step is to have a running Pimcore 12 instance with Studio and the corresponding connector installed. Then, access the commercetools Merchant Center and create an API Client. This process generates five essential pieces of data: project key, client ID, client secret, region, and scopes. These must be stored securely. At Q2BSTUDIO we recommend using cloud secret management services, as any exposure could compromise the entire catalog. Once obtained, they are configured in the Credentials module of the connector within Pimcore Studio. The system verifies the connection via OAuth2 using the client-credentials flow; if everything is correct, the status turns green and the client secret is encrypted at rest. Multiple projects can be stored (e.g., production and test), but only one can be active at a time.
Step 2: Mapping entities to Pimcore classes
The connector does not enforce a fixed schema; instead, it allows you to associate each commercetools entity (category, family, product) with any Pimcore DataObject class. This flexibility is key to adapting to existing data models or specific business needs. In the Mappings screen, you first configure the class correspondence (Object Mapping) and then the individual field mappings. Required fields are marked with a red asterisk; custom attributes are matched automatically by code thanks to the family definitions. For companies needing a highly customized model, Q2BSTUDIO offers custom software development services that extend this mapping with additional logic, such as data transformations or validation rules.
Step 3: Importing catalog from commercetools to Pimcore
The import must be executed in a specific order to respect dependencies. First, categories are imported and rebuilt as a tree (parents before children). Then families (product types) are imported, bringing attribute definitions as WkAttribute objects. Finally, products are imported, including their variants — each variant becomes a native Pimcore child — along with prices converted from cents to decimal values, images downloaded as Assets, and links to families and categories. The process runs in the background with step counters, error logs, and the ability to stop cleanly. After completion, objects are reindexed to appear in Studio searches. Throughout this phase, having a reliable cloud infrastructure, whether AWS or Azure, is essential — Q2BSTUDIO manages this for its clients, ensuring performance and scalability.
Step 4: Exporting from Pimcore to commercetools
The export follows the same order: first categories, then families, and finally products. The connector is conservative: it does not modify or remove existing attribute definitions in commercetools, only adds new ones. Prices are sent when creating the product and are not overwritten on subsequent updates, allowing price management to remain in commercetools if desired. Images are uploaded as bytes, staged, and published, keeping the remote gallery as a mirror of the local one. Additionally, the export can be filtered by SKU, which is useful for sending only a subset of products (e.g., recently modified ones). This filtering capability, along with the ability to schedule tasks via command line, makes the solution ideal for integration with automation flows and CI/CD pipelines. At Q2BSTUDIO we have implemented process automation systems that combine these exports with Business Intelligence tools like Power BI, enabling real-time catalog health monitoring.
Step 5: Monitoring, re-running, and best practices
Each import or export job is recorded in a history table with its ID, date, user, status, and warning count. From the Studio interface you can open the details, view the progress bar, step counters (read, created, updated, skipped, failed), and an activity log. If a job fails, it is safe to re-run because the connector maintains a local-remote ID map that decides whether to create or update. Errors on a single row do not stop the entire batch; they are simply skipped and logged. For high-volume environments, the ability to launch these processes from the command line allows integration with orchestration systems and artificial intelligence agents that monitor anomalies. In fact, Q2BSTUDIO is developing AI agents that analyze synchronization logs to detect recurring error patterns and suggest corrective actions, reducing manual intervention.
Conclusions and next steps
Connecting Pimcore 12 with commercetools via a bidirectional connector not only accelerates catalog management but also eliminates friction between product and e-commerce teams. The orderly synchronization of categories, families, and products, along with the handling of variants, images, and localized content, ensures both systems reflect the same business reality. However, every company has its own particularities: legacy data models, specific security requirements, or needs to integrate with ERP, CRM, or BI systems. This is where the experience of a partner like Q2BSTUDIO makes the difference. We offer custom software development, cloud AWS/Azure consulting, cybersecurity, BI/Power BI, automation, and artificial intelligence services so that your data infrastructure is not only synchronized but also intelligent and future-ready.




