Made in Builder

×

Developers

Product

Use Cases

Pricing

Developers

Resources

Company

Get StartedLogin

Product

Features

Integrations

Talk to an Expert

Pricing

Blog

Home

Resources

Blog

Forum

Github

Login

Signup

×

Visual CMS

Drag-and-drop visual editor and headless CMS for any tech stack

Theme Studio for Shopify

Build and optimize your Shopify-hosted storefront, no coding required

Resources

Blog

Get StartedLogin

commercetools E-commerce Plugin

You can use your commercetools products and categories within Builder with the commercetools e-commerce plugin.

The plugin provides custom types that can be used to:

  • Provide products and categories as inputs for your custom code components.
  • Target content based on products or categories instead of URL paths with hard-coded resource handles or IDs.
  • Preview products and categories on product detail pages and inside of other content while editing.

For a general overview of what you can do with e-commerce plugins and where they fit into your site, you can check out E-commerce Plugins for Builder.

Setup within commercetools

In order to enable the plugin to communicate with commercetools, you can create an API Client within your commercetools account. This step will provide you with the configuration information needed to complete the plugin setup below.

For more information, check out commercetools' API Clients documentation.

Setup within Builder

You can install the plugin from the Integrations page by clicking Enable on the commercetools plugin entry.

Afterwards, click Settings to configure the plugin with your commercetools account information.

Completing the plugin's setup requires the following information from your commercetools API Client configuration:

  • Project ID
  • Client ID
  • Secret
  • API URL
  • Auth URL
  • Scopes (optional)
  • Locale (optional)

For more information, check out Setting Up E-commerce Plugins.

Custom types

The commercetools plugin provides eight custom types:

  • Commercetools Product, referred to as CommercetoolsProduct in code
  • Commercetools Product Preview (CommercetoolsProductPreview)
  • Commercetools Product Handle (CommercetoolsProductHandle)
  • Commercetools Products List (CommercetoolsProductsList)
  • Commercetools Category (CommercetoolsCategory)
  • Commercetools Category Preview (CommercetoolsCategoryPreview)
  • Commercetools Category Handle (CommercetoolsCategoryHandle)
  • Commercetools Categories List (CommercetoolsCategoriesList)

Please refer to E-commerce Custom Types for details on the shape of each type's values.

Usage

For more information on how to use the commercetools plugin, please refer to our e-commerce plugin docs:

Source code

Check out the Builder GitHub repo for the plugin's source as well as instructions on how to modify or develop it.

Was this article helpful?