# Commercetools Choose Product widget not rendering products

**URL:** <https://forum.builder.io/t/commercetools-choose-product-widget-not-rendering-products/1676>\
**Category:** Bugs\
**Created:** [February 3, 2022, 1:42am UTC](https://forum.builder.io/t/commercetools-choose-product-widget-not-rendering-products/1676 "2022-02-03T01:42:31Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![JamieWT](https://avatars.discourse-cdn.com/v4/letter/j/9de053/32.png) [@JamieWT](https://forum.builder.io/u/JamieWT)\
**Post date:** [February 3, 2022, 1:42am UTC](https://forum.builder.io/t/commercetools-choose-product-widget-not-rendering-products/1676/1 "2022-02-03T01:42:31Z")

</div>

_Please fill out as many of the following questions as possible so we can help you promptly! If you don’t know how to answer or it does not apply, feel free to remove it or leave it blank._

**Builder content link**

> **[Builder.io: Drag and drop page builder and CMS](https://builder.io/content/aa77eaaff03a425698154ed9e3125176)**
>
> Build and optimize digital experiences for any tech stack, visually.

**Detailed steps to reproduce the bug**

- enable the Commercetools integration
- add a field to a model and give it a type of Commercetools Product
- create new Content for that model, and click on the “Choose Product” button

The browser is making a successful REST call to Commercetools to fetch a list of products, and the JSON response returns products, but they’re not rendered in the product selector modal - that remains empty.

**Screenshots or video link**

 ![image](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/a/a83afe783d4a120d9d57844fd35548b28998bfd4.png)

---

<div class="post-metadata">

**Author:** ![JamieWT](https://avatars.discourse-cdn.com/v4/letter/j/9de053/32.png) [@JamieWT](https://forum.builder.io/u/JamieWT)\
**Post date:** [February 3, 2022, 2:46am UTC](https://forum.builder.io/t/commercetools-choose-product-widget-not-rendering-products/1676/2 "2022-02-03T02:46:28Z")

</div>

It looks like this is because the integration with Commercetools contains a hard-coded locale of ‘en-US’:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/c/cf1861c0abb8c65a96c2239c0c699f67fed3f49a.png)

I’m using the Commercetools sample data which doesn’t use that locale.

Is the “correct” approach here to fork that plugin, and create a custom plugin that works as needed?

NOTE: I had to post a screenshot of github because this forum won’t let me past a url to the BuilderIO github repo:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/b/b9cbb4e9bc4414208359e02ac2c27e3333b27dcd.png)

---

<div class="post-metadata">

**Author:** ![aziz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/aziz/32/2551_2.png) [@aziz](https://forum.builder.io/u/aziz)\
**Post date:** [February 3, 2022, 7:17pm UTC](https://forum.builder.io/t/commercetools-choose-product-widget-not-rendering-products/1676/3 "2022-02-03T19:17:30Z")

</div>

Hi @JamieWT thanks for reporting looking into this issue and we’ll get back to you.

---

<div class="post-metadata">

**Author:** ![aziz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/aziz/32/2551_2.png) [@aziz](https://forum.builder.io/u/aziz)\
**Post date:** [February 3, 2022, 7:47pm UTC](https://forum.builder.io/t/commercetools-choose-product-widget-not-rendering-products/1676/4 "2022-02-03T19:47:26Z")

</div>

![Screen Shot 2022-02-03 at 11.44.39 AM](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/b/bbb40eeeb22a43e697b5fb2ffba5ba5776442858.jpeg)  
Released a dev version that accepts the locale as input to unblock you, will push a new version after testing this, thanks again for reporting this issue

---

<div class="post-metadata">

**Author:** ![aziz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/aziz/32/2551_2.png) [@aziz](https://forum.builder.io/u/aziz)\
**Post date:** [February 3, 2022, 8:41pm UTC](https://forum.builder.io/t/commercetools-choose-product-widget-not-rendering-products/1676/5 "2022-02-03T20:41:08Z")

</div>

@JamieWT this is fixed and released to the plugin patch version, please allow some time for the change to propagate, if you’re still running into this try a hard refresh to catch the latest changes.

---

<div class="post-metadata">

**Author:** ![JamieWT](https://avatars.discourse-cdn.com/v4/letter/j/9de053/32.png) [@JamieWT](https://forum.builder.io/u/JamieWT)\
**Post date:** [February 3, 2022, 9:38pm UTC](https://forum.builder.io/t/commercetools-choose-product-widget-not-rendering-products/1676/6 "2022-02-03T21:38:47Z")

</div>

Thanks for that @aziz . I couldn’t figure out how to find and install a “dev” version of a plugin or the “patched” version - I looked for branches but couldn’t find them.

But I see your fix (github\_com/BuilderIO/builder/pull/759/files - it would be great if this forum allowed urls that point to the BuilderIO github repos), and can see the new “locale” field in your code change. Its not showing up in the Commercetools integration settings despite some enabling/disabling and hard reloads.

I’ll check back on this later. Btw, this PR includes:

```auto
scopes?: string;
...
`${authUrl}/oauth/token?grant_type=client_credentials&scope=${
        scopes || `view_products:${projectKey}`
}`

```

but still has

```auto
      {
        name: 'scopes',
        type: 'string',
        required: true,
      },

```

Should “scopes” no longer be mandatory?

 ![image](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/6/667307638d7edd31bc7261a0be7a7be78e61f5af.png)

---

<div class="post-metadata">

**Author:** ![aziz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/aziz/32/2551_2.png) [@aziz](https://forum.builder.io/u/aziz)\
**Post date:** [February 3, 2022, 10:50pm UTC](https://forum.builder.io/t/commercetools-choose-product-widget-not-rendering-products/1676/7 "2022-02-03T22:50:58Z")

</div>

Hey @JamieWT, there’s a way to lock down the version,  
in the integrations tab: if you scroll all the way down and press `advanced configuration`

 ![Screen Shot 2022-02-03 at 2.48.14 PM](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/c/c1b6623c19bd67fbce080f153b2b8c6e388f30ed.png)

You’ll find a list of the plugins installed, you can lock down the version of the plugin by appending `@{{package version}}`

 ![Screen Shot 2022-02-03 at 2.50.15 PM](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/6/656d16d384dffe774c9258f9126da59a1dd13097.jpeg)

---

<div class="post-metadata">

**Author:** ![aziz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/aziz/32/2551_2.png) [@aziz](https://forum.builder.io/u/aziz)\
**Post date:** [February 3, 2022, 11:02pm UTC](https://forum.builder.io/t/commercetools-choose-product-widget-not-rendering-products/1676/8 "2022-02-03T23:02:09Z")

</div>

> [@JamieWT](#):
>
> Should “scopes” no longer be mandatory?

Good point, addressed in this [pr](https://github.com/BuilderIO/builder/pull/761/files), thanks for pointing that out
