# ec studio

# ec studio

ec studio is a web-configurator designed solely for the ecommerce website.  The app runs on a server in a datacenter and your website visitors can play the app via any browser of any device.

 ![](https://outline-production-attachments.s3-accelerate.amazonaws.com/uploads/b8818edf-d878-43c7-bdf0-a354b2391882/f102d0e2-87e6-4831-9813-33ca3e06a56c/2023-02-24_14-24-48.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA4EOUDTOVUICLPZ4P%2F20260924%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260924T113000Z&X-Amz-Expires=86400&X-Amz-Signature=6fe5025fc8887debbd15825461cceef412ba24989aa18f352e6eb8baa73b9668&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject)

# How to embed the ec studio on your website

## Step 1　Whitelist the domain of website to which the studio will be embed

R.Designのサーバーエンジニアがホワイトリストの作業を行いますので、埋め込み先のWEBサイトのドメインをお知らせください。

## Step 2　Create an ec studio package for each item

* 対象アイテムが属するデザイン・ファミリーについて、ecスタジオ向けにベイク作業を行い、ecスタジオ向けにパッケージを行います（R.Designチーム）。
* [デザイン・バージョン](https://docs.r.design/pages/viewpage.action?pageId=69402876)について、以下の設定が必要です。
  * Active=TRUE
  * Debug=FALSE
* デザイン・ファミリーのStatus | ec studioフィールドの値を「Requested」にして、R.Designチームに作業依頼をしてください。

## Step 3　Get an URL for the target item's streaming

 ![](https://outline-production-attachments.s3-accelerate.amazonaws.com/uploads/b8818edf-d878-43c7-bdf0-a354b2391882/3e3a716a-fdcd-4cc0-950f-31276e824cd9/2023-03-22_12-00-16.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA4EOUDTOVUICLPZ4P%2F20260924%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260924T113000Z&X-Amz-Expires=86400&X-Amz-Signature=c4ab1f4ecf452aaa4a99b7bc5b9dd5a1c6b9104b0c13e2cbc837ec65c2830d0a&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject)

## Step 4　Configure an iframe

貴社ページ内にiframeを設定下さい。iframeはレスポンシブである必要があります。

デフォルトのストリーミングサイズは**1280px x 720px**です。  
埋め込むサイトのページ幅がこれより広い場合であっても、原則、1280px幅で表示させて下さい。  
サーバーのGPUの消費を安定させる上で、iframeの最大サイズを1280pxに設定して頂く必要があります。  

 ![](https://outline-production-attachments.s3-accelerate.amazonaws.com/uploads/b8818edf-d878-43c7-bdf0-a354b2391882/b3721ffe-bbc3-4569-ab68-8cfeb202576d/2023-02-18_11-53-41.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA4EOUDTOVUICLPZ4P%2F20260924%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260924T113000Z&X-Amz-Expires=86400&X-Amz-Signature=1321258e080649ff73e3131ae18a483693b1836ca36dc1fbee1dc16daa42c31b&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject)

# CSS and HTML to apply

下記コードを、ウェブサイトの開発者の方に該当するページに適用頂くよう、ご依頼ください。但し、`<iframe>` の src 属性には、各対象アイテム毎に指定されたURLを記入して下さい。

To avoid the straight loading studio, we showing the image should be a requirement to implement the ec studio

```Java
<style>
.rdesign-ec-studio .rdesign-iframe{display:none}
.rdesign-ec-studio iframe {
	width: 100%; height: 100%; display: block; position: absolute; margin: 0 auto; top: 0; left: 0;
}
.rdesign-ec-studio .rdesign-iframe {
	padding-top: 56.25%; position: relative; width: 100%;
}
@media (min-width: 1280px){
	.rdesign-ec-studio iframe { width: 1280px; height: 720px; }
}
@media (max-width: 575px){
	.rdesign-ec-studio iframe{ margin: 0 15px; height: 100%; }
}
</style>
<div class="rdesign-ec-studio">
	<a class="rdesign-studio-cover" href="javascript:void(0)"><img src="...cover-image.png" /></a>
	<div class="rdesign-iframe">
		<iframe src="" data-src="https://ec.streaming.r.design/ec-studio?design_version_id=.........." frameborder="0" allowfullscreen="allowfullscreen" rel="nofollow"></iframe>
	</div>
</div>
// use jQuery to play studio when clicked on cover image
jQuery(function($){
	$('.rdesign-studio-cover').click(function(){
		var iframe = $('.rdesign-iframe');
		iframe.find('iframe').attr('src', iframe.find('iframe').data('src'));
		$(this).hide();
		iframe.show();
	})
})
```

ℹ️

**Full Screen Mode**

In order to make your EC Studio goes fullscreen mode, you must add \`allowFullScreen="allowFullScreen"\` attribute to the iframe  
To support full browser, please use these attributes:  

|     |     |
|:----|:----|
|     |     |
| `Most recent browsers` | `allowfullscreen="allowfullscreen"` |
| `Old Firefox` | `mozallowfullscreen="mozallowfullscreen"` |
| Old Internet Explorer | `msallowfullscreen="msallowfullscreen"` |
| Old Opera | `oallowfullscreen="oallowfullscreen"` |
| Old Chrome | `webkitallowfullscreen="webkitallowfullscreen"` |

❌

**Fullscreen button for iOS Safari browser**

The fullscreen feature of that browser was stopped supporting from version 12. You can check the browser compatibility [here](https://developer.mozilla.org/en-US/docs/Web/API/Fullscreen_API#browser_compatibility)

In order to fake a feature like fullscreen mode, we can make the iframe to fixed position by CSS, the width and height of that iframe is equal to the browser and can be overlap everything in the website.

## `<iframe>` の src 属性の値（iframeで埋め込むURL）

## Step 4-2　Configure an iframe in a popup

**Iframe in a popup (general)** - add iframe to content of popup  (like Embed the ec studio on your site by iframe)  
 - The popup will have size like iframe (Default iframe size: 1280px x 720px)  
 - On closed popup need run the code:  
  
`//example iframe added <iframe id="rdesign_studio_iframe" ...></iframe>` `document.querySelector('#rdesign_studio_iframe').src += ""` **Iframe in a popup (Wordpress & use Plugin** Popup Maker)  
 - add iframe to content of popup.  
The html exmaple:  
  
`<div class="rdesign-ec-studio">` `<div class="rdesign-iframe">` `<iframe id="rdesign_studio_iframe" src="..." frameborder="0" allowfullscreen="allowfullscreen" rel="nofollow"></iframe>` `</div>` `</div>`  - make size popup is 1280px x 720px  
 - on closed popup will run the code:  
`jQuery(function($){` `$('.pum-close.popmake-close').click(function(){` `document.querySelector('#rdesign_studio_iframe').src += "";` `})` `})`

# 「カートに入れる」ボタンをECサイトと連動させたい場合（オプション機能）

## 手順１　Manage Store Viewレコードの作成

* A ManageStoreView Code (manage_store_view_code) is registered. To make sure your ManageStoreView, uses this API [https://material-db.herokuapp.com/studio/manage_store_views/](https://material-db.herokuapp.com/studio/manage_store_views/am_shop_ja)<manage_store_view_code>
* Step 3: Set iframe's src attribute, it should be the EC Studio URL [https://ec.streaming.r.design/ec-studio?design_version_id=](https://ec.streaming.r.design/ec-studio?design_version_id=a4010000000k3zaAAA)<design_version_id>&store_view=<manage_store_view_code>

Preparation:

* A web page where you want to embed our EC Studio streaming
* [デザイン・バージョン](https://docs.r.design/pages/viewpage.action?pageId=69402876) IDが付与されていること
  * Your design version should match: Active=TRUE, Debug=FALSE
  * To make sure your design version, uses this API [https://material-db.herokuapp.com/v1/design_versions/](https://material-db.herokuapp.com/v1/design_versions/a4010000000k3zaAAA)<design_version_id>

手順:

* Step 1: Give your web page domain name to our EC Studio server. Your URL should be whitelisted by our server developer.
* Step 2: 貴社ページ内にiframeを設定下さい。iframeはレスポンシブである必要があります。Develop an iframe in your web page. That iframe can responsive with all screens to have a best experience.
* Step 3: Set iframe's src attribute, it should be the EC Studio URL [https://ec.streaming.r.design/ec-studio?design_version_id=](https://ec.streaming.r.design/ec-studio?design_version_id=a4010000000k3zaAAA)<design_version_id>&store_view=<manage_store_view_code>

 ![](https://outline-production-attachments.s3-accelerate.amazonaws.com/uploads/b8818edf-d878-43c7-bdf0-a354b2391882/efcc64df-98da-4b29-ae6c-80aefa2e6807/2023-02-18_11-58-43re.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA4EOUDTOVUICLPZ4P%2F20260924%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260924T113000Z&X-Amz-Expires=86400&X-Amz-Signature=09b686fd2596649c608eea7dc51302925979a4b3d0369847afd3d57a6e5a3620&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject)

# 設定項目

| 1   | Property | 2   | 3   | Files |
|:----|:---------|:----|:----|:------|
| **右パネル**<br><br>バリエーション選択 | [メッシュ・タブ](/doc/44oh44od44k344ol44o744k44ow-LLhVHb6HWD) |     |     |       |
|     | [マテリアル・タブ](/doc/44oe44og44oq44ki44or44o744k44ov44kz-WIJ0dvcgdS) |     | [マテリアル定義レコード](https://docs.r.design/pages/viewpage.action?pageId=69402801)の下記項目にて設定<br>•<br>アイテム設定での表示ラベル(英)<br>•<br>アイテム設定での表示ラベル(日) |  ![](https://outline-production-attachments.s3-accelerate.amazonaws.com/uploads/b8818edf-d878-43c7-bdf0-a354b2391882/472e5eac-28f0-4b5d-b01c-d40f7d356d63/2023-02-18_11-58-43re2.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA4EOUDTOVUICLPZ4P%2F20260924%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260924T113000Z&X-Amz-Expires=86400&X-Amz-Signature=7ca0931049fcfdec0acce95ffec6f7beab3287ec35ab4ec88bbab09b4c3c55ee&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject) |
|     | [カスタム・アイテム・タブ](/doc/44kr44k544k44og44o744ki44kk44og44og44o744k44ow-deI4id5ZzX) |     |     |       |
| メッシュ・タブ内 | [Untitled](/doc/untitled-DSyxEF3fvU) |     | • メッシュ名<br>•<br>メッシュ名（日） |  ![](https://outline-production-attachments.s3-accelerate.amazonaws.com/uploads/b8818edf-d878-43c7-bdf0-a354b2391882/28ed8c30-3926-4bf2-9806-e75ee0148725/2023-02-24_13-57-44.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA4EOUDTOVUICLPZ4P%2F20260924%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260924T113000Z&X-Amz-Expires=86400&X-Amz-Signature=fac366cf040ccb3d3624e10a869b597598589d8850f3db37b738ab8e22ca8a46&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject) |
|     | [Untitled](/doc/untitled-dqNsUGZ0Ah) |     |     |       |
| カスタム・アイテム・タブ内 | [Untitled](/doc/untitled-wQEHNoRTP9) |     | [カスタム・アイテムの保存](https://docs.r.design/pages/viewpage.action?pageId=71992016)<br><br>[カスタム・アイテムの公開](https://docs.r.design/pages/viewpage.action?pageId=71992076) |  ![](https://outline-production-attachments.s3-accelerate.amazonaws.com/uploads/b8818edf-d878-43c7-bdf0-a354b2391882/2b07534e-b2b0-423e-aebe-0426ac10a11a/2023-02-24_13-59-54.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA4EOUDTOVUICLPZ4P%2F20260924%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260924T113000Z&X-Amz-Expires=86400&X-Amz-Signature=9b541d3059a872fe5057b716a46e1add90e4174aa52d787c5cf5c1c37fb20e5b&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject) |
|     | [Untitled](/doc/untitled-FKMsF4CPsT) |     | [カスタム・オプション用のデザイン・ファミリー](https://docs.r.design/pages/viewpage.action?pageId=91193645)<br><br><br><br>ファブリック・コレクションを各アイテムに紐づける場合<br><br><br><br>‐　各デザイン・ファミリー |  ![](https://outline-production-attachments.s3-accelerate.amazonaws.com/uploads/b8818edf-d878-43c7-bdf0-a354b2391882/f1f81f30-44f4-4406-82ca-ccb933fd14d6/2023-02-24_14-12-22.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA4EOUDTOVUICLPZ4P%2F20260924%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260924T113000Z&X-Amz-Expires=86400&X-Amz-Signature=7bfc749accf0ddf246e36ed843f6025000350603ace5d447a3f09f9308ba284e&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject) |
|     | [Untitled](/doc/untitled-GQLdrytjFe) |     | [商品属性と属性値の登録](https://docs.r.design/pages/viewpage.action?pageId=71991851) |  ![](https://outline-production-attachments.s3-accelerate.amazonaws.com/uploads/b8818edf-d878-43c7-bdf0-a354b2391882/58fc1f7e-7d13-4139-ba1f-c5cdf418ce1d/2023-02-24_14-13-00.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA4EOUDTOVUICLPZ4P%2F20260924%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260924T113000Z&X-Amz-Expires=86400&X-Amz-Signature=d8f33fd0c4c3ad1afbbf5826f4131de494b9424e4c0a06a4d709cba89100e033&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject) |

  
  

# Embed the ec studio on your site by iframe

Preparation:

* A web page where you want to embed our EC Studio streaming. Based on your framework/platform, please choose the best way to include an iframe tag to your page content.
* A [DesignVersion](https://docs.r.design/pages/viewpage.action?pageId=69402876) ID (design_version_id) is registered in our system. Contact with us if you don't know your design version ID.
  * Your design version should match: Active=TRUE, Debug=FALSE
  * To make sure your design version, uses this API [https://material-db.herokuapp.com/v1/design_versions/](https://material-db.herokuapp.com/v1/design_versions/a4010000000k3zaAAA)<design_version_id>

Steps:

* Step 1: Give your web page domain name to our EC Studio server. Your URL should be whitelisted by our server developer.
* Step 2: Log in to our Community site and go to My Page <https://community.r.design/en/my_page/>
* Step 3: Select \`Design Families\` tag on your page. If you cannot see it, that meant your member account is not an admin or approver. Contact us for support.

  ![](https://outline-production-attachments.s3-accelerate.amazonaws.com/uploads/b8818edf-d878-43c7-bdf0-a354b2391882/d999e7ac-7bf6-46b9-8281-600d1de2b8c8/image2023-2-28_10-51-4.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA4EOUDTOVUICLPZ4P%2F20260924%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260924T113000Z&X-Amz-Expires=86400&X-Amz-Signature=c7ecf82d4d6335805beba2268dc92fdb7c3d6daae28a911185c4217d3c309de9&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject)
* Step 4: On that page, search for your item if you do not see it by design version ID.  
    
    
  If your item is approved by our system, you will see the \`EC Studio URL\` button on the right side of the item name, click on it.  

  ![](https://outline-production-attachments.s3-accelerate.amazonaws.com/uploads/b8818edf-d878-43c7-bdf0-a354b2391882/3b475dff-c580-4b72-aaa1-776cb78309e7/image2023-3-28_8-25-10.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA4EOUDTOVUICLPZ4P%2F20260924%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260924T113000Z&X-Amz-Expires=86400&X-Amz-Signature=2d403636d025540ac620ba8e3ef3c1f9b290a7c045b36c498b719a7e51860ef6&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject)
* Step 5: After clicking, you will see a popup that contains your EC Studio URL, copy it by clicking on the copy icon.
* Step 6: Develop an iframe for your web page. The iframe's src should be your EC Studio URL. That iframe can responsive to all screens to have the best experience. Our studio is implemented for responsive desktop and mobile screens.

ℹ️

**Iframe permission**

In order to make your EC Studio goes fullscreen mode, you must add \`allowFullScreen="allowFullScreen"\` attribute to the iframe

❌

**Support fullscreen for browsers**

To support full browser, please use these attributes:

```XML
allowfullscreen="allowfullscreen"
```

```XML
mozallowfullscreen="mozallowfullscreen"
msallowfullscreen="msallowfullscreen"
oallowfullscreen="oallowfullscreen"
webkitallowfullscreen="webkitallowfullscreen"
```

# EC Studio layout settings

* **Hide product prices:** The price table will be shown as default. With this setting, that table will be hidden and you can open it by clicking on the info icon on the left.

  ![](https://outline-production-attachments.s3-accelerate.amazonaws.com/uploads/b8818edf-d878-43c7-bdf0-a354b2391882/3ec2ef56-17a0-406e-bcbf-2d52973515b1/image2023-3-28_8-55-19.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA4EOUDTOVUICLPZ4P%2F20260924%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260924T113000Z&X-Amz-Expires=86400&X-Amz-Signature=d11ec87234ce3d649307f09be75270aa8cd08571ceb013ff9e27cc0f46994c9e&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject)
* **Hide multi elements selector:** if your item has multi slots, this setting will be displayed.  
  The EC studio will show the list of slots that can be applied to the same selected material. The setting will make the list invisible on the right sidebar.  

  ![](https://outline-production-attachments.s3-accelerate.amazonaws.com/uploads/b8818edf-d878-43c7-bdf0-a354b2391882/23c1f3d2-a2bf-412b-92ff-eb06763656ff/image2023-3-28_8-58-55.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA4EOUDTOVUICLPZ4P%2F20260924%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260924T113000Z&X-Amz-Expires=86400&X-Amz-Signature=0938a080edd00eac563f8d76b0f49c31a827547a9a911a85faeab4d89376be1c&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject)
* **Hide a tab:** it will hide the given tab in the right sidebar

 ![](https://outline-production-attachments.s3-accelerate.amazonaws.com/uploads/b8818edf-d878-43c7-bdf0-a354b2391882/e37ccd68-22ea-46c0-a33a-e524346d0eca/image2023-3-28_9-8-17.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA4EOUDTOVUICLPZ4P%2F20260924%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260924T113000Z&X-Amz-Expires=86400&X-Amz-Signature=3f03a153f4b248f3329c8e0b7112546e8abadceb3c1d7449bfbd4f55b3f689cf&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject)

* **Open a default tab:** if will open as default a selected tab and stick the sidebar to open
* **Open a default fabric collection:** if your item has some custom fabrics, this setting will be displayed  
  There is a list of fabric collections that can be applied to your item. The setting will decide which collection can be expanded as default  

  ![](https://outline-production-attachments.s3-accelerate.amazonaws.com/uploads/b8818edf-d878-43c7-bdf0-a354b2391882/f0ce5525-c4de-4e96-9612-e3ee98be6765/image2023-3-28_10-56-40.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA4EOUDTOVUICLPZ4P%2F20260924%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260924T113000Z&X-Amz-Expires=86400&X-Amz-Signature=93f949934fa2e46cd0670850ee1d3e776651b92e17ee14472dc092aa12dcdfb3&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject)

  ![](https://outline-production-attachments.s3-accelerate.amazonaws.com/uploads/b8818edf-d878-43c7-bdf0-a354b2391882/3618e113-8688-4ba1-872c-5dcc1cf93b8d/image2023-3-28_10-57-29.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA4EOUDTOVUICLPZ4P%2F20260924%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260924T113000Z&X-Amz-Expires=86400&X-Amz-Signature=a3aec3a636643e1b60562a001eb571aef0246a96ad25f46cf55265577602eaa5&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject)
* **Show Add to cart button:** Show the Add to cart button below the price table.

  ❌

  Please make sure you already read and completed the **Add to cart** **button** section below.

  ℹ️

  in some case, your Cart button cannot show because your current configuration does not hit any products from our system, please contact us if you want to have it

❌

**EC Studio with setting changes**

Please copy your EC Studio URL after finishing your setting so that all your settings can be applied correctly

# iFrame size settings for desktop and for mobile

Default iframe size: 1280px x 720px

# Fullscreen button for iOS Safari browser

The fullscreen feature of that browser was stopped supporting from version 12. You can check the browser compatibility [here](https://developer.mozilla.org/en-US/docs/Web/API/Fullscreen_API#browser_compatibility)

In order to fake a feature like fullscreen mode, we can make the iframe to fixed position by CSS, the width and height of that iframe is equal to the browser and can be overlap everything in the website.

# Add to cart button

# Step 1: Enable the Add to cart button for your design family at Community Site.

* Go the My Page on Community site
* Click on \`Design families\` menu item

  ![](https://outline-production-attachments.s3-accelerate.amazonaws.com/uploads/b8818edf-d878-43c7-bdf0-a354b2391882/d999e7ac-7bf6-46b9-8281-600d1de2b8c8/image2023-2-28_10-51-4.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA4EOUDTOVUICLPZ4P%2F20260924%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260924T113000Z&X-Amz-Expires=86400&X-Amz-Signature=c7ecf82d4d6335805beba2268dc92fdb7c3d6daae28a911185c4217d3c309de9&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject)

  ℹ️

  **You cant see that menu**

  Please make sure you are logging in and your account is Approver type. If you don't know about it, please contact with administrator or supporter.
* Search your design family by name or design version SFID
* Click on \`Studio URL\` button on the right side of your design family name
* Check on \`Show Add to cart button\`

  ![](https://outline-production-attachments.s3-accelerate.amazonaws.com/uploads/b8818edf-d878-43c7-bdf0-a354b2391882/8ad473a4-9dfd-424c-9d32-0332e0082e02/image2023-2-28_11-0-1.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=AKIA4EOUDTOVUICLPZ4P%2F20260924%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260924T113000Z&X-Amz-Expires=86400&X-Amz-Signature=636060a0165bcaaa983575dd647fa9e0efd142165ea9c1e4de7080749689bea2&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject)
* Copy the URL result by clicking on the top right copy icon.

# Step 2: Update the new studio URL to your iframe's src

* Go back to your website and add or replace current URL to the copied URL to iframe's src

# Step 3: Implement a JS script at your website to receive a message sent out from EC Studio.

* When the user clicks on \`Add to cart\` button, a JS message is sent by iframe to the parent website. The message format looks like this

  ```JavaScript
  {
  	func: "addToCartFromIframe",
  	message: {
  		products: [
  			option_1: "<name>",
  			option_1_amount: 0,
  			option_1_sfid: "<sfid>",
  			option_2: "<name>",
  			option_2_amount: 0,
  			option_2_sfid: "<sfid>"
  			sku: "<product SKU>"
  			qty: 1
  		]
  	}
  }
  ```
* From parent website, add an \`message\` event listener to catch that one. It looks like this

  ```JavaScript
  window.addEventListener("message", function(event) {
  	const { func, message } = event.data;
  	if (func === "addToCartFromIframe") {
  		// process to add the products to your cart feature
  	}
  })
  ```

# Step 4: Send a result to iframe with \`postMessage\` method

* After processing, sends a result message to iframe with these formats

  ```JavaScript
  Success case:
  {
  	func: "addToCartResultFromIframe",
  	message: { success: true }
  }
  failure case:
  {
  	func: "addToCartResultFromIframe",
  	message: { success: false, message: "<error message>" }
  }
  ```
* The JS script should looks like

  ```JavaScript
  var iFrame = document.getElementById("<iframe id>");
  iFrame.contentWindow.postMessage({ func: "addToCartResultFromIframe", message: { success: true } }, "*")
  ```

ℹ️

**Whitelist your site URL for the streaming**

# Iframe in a popup

* How to refresh the streaming after closing the popup
  * In Javascript code, trigger the popup close event
  * Run this script when the event is fired

    ```JavaScript
    document.querySelector("THE IFRAME OF CLOSED POPUP").src += ""
    ```
  * Replace \`THE IFRAME OF CLOSED POPUP\` with your iframe CSS selector

---

**Documents**

- [How R Design Works?  - Basic Concepts](https://rdesign.getoutline.com/s/5dd023dd-8e05-47b3-8045-c6833db350d0/doc/how-r-design-works-basic-concepts-CDy1hFW4tl)
- [Login - Brand Community Site](https://rdesign.getoutline.com/s/5dd023dd-8e05-47b3-8045-c6833db350d0/doc/login-brand-community-site-uAmd6TZ59L)
- [Registration - Step By Step Guidance](https://rdesign.getoutline.com/s/5dd023dd-8e05-47b3-8045-c6833db350d0/doc/registration-step-by-step-guidance-0HKS54Tha1)
- [[en] デバグ](https://rdesign.getoutline.com/s/5dd023dd-8e05-47b3-8045-c6833db350d0/doc/en-CGK8pWgrHY)
- [ec studio](https://rdesign.getoutline.com/s/5dd023dd-8e05-47b3-8045-c6833db350d0/doc/ec-studio-scBKpcyf5T)
- [PageHeader mobile phone](https://rdesign.getoutline.com/s/5dd023dd-8e05-47b3-8045-c6833db350d0/doc/pageheader-mobile-phone-jxPUdfZ4CT)
- [Copy of カスタムファブリックコレクションがある時](https://rdesign.getoutline.com/s/5dd023dd-8e05-47b3-8045-c6833db350d0/doc/copy-of-X3Phv2v9hM)
- [3D Modeling Guide](https://rdesign.getoutline.com/s/5dd023dd-8e05-47b3-8045-c6833db350d0/doc/3d-modeling-guide-f1dm6HZ1Jw)
- [Working in Unreal Engine (For Asset team)](https://rdesign.getoutline.com/s/5dd023dd-8e05-47b3-8045-c6833db350d0/doc/working-in-unreal-engine-for-asset-team-1mekikZinD)
- [Making a template](https://rdesign.getoutline.com/s/5dd023dd-8e05-47b3-8045-c6833db350d0/doc/making-a-template-kiZ8lBtIKz)
- [Embed R.Design Contents on your site](https://rdesign.getoutline.com/s/5dd023dd-8e05-47b3-8045-c6833db350d0/doc/embed-rdesign-contents-on-your-site-fLBBPM8WiL)
- [Custom Community Site](https://rdesign.getoutline.com/s/5dd023dd-8e05-47b3-8045-c6833db350d0/doc/custom-community-site-Idj1KNOVey)