> For the complete documentation index, see [llms.txt](https://docs.live2.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.live2.ai/live2.ai-integration/magento.md).

# Magento

## Extension Installation Guide

### Step 1: Install Live2.ai Module

To begin, open your terminal and use Composer to add the Live2 extension to your Magento project by running:

```
 composer require live2/live2
```

This command fetches and installs the Live2 module into your Magento setup.

### Step 2: Install Codebase and Database Schemas:

Next, you need to install the codebase and update the database schemas. Run the following commands sequentially in your terminal:

```php
php bin/magento setup:di:compile
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f
php bin/magento indexer:reindex
php bin/magento cache:clean
php bin/magento cache:flush
```

These commands will compile the code, update the database, deploy static content, reindex data, and clear caches.

### Step 3: Update Authorization Token

* After installing the Live2 extension, Obtain the authorization token provided by the Live2 team. Then, navigate to **Store -> Configuration.**

<figure><img src="/files/tpZfpqt3niPLNziRuwlr" alt=""><figcaption></figcaption></figure>

* Go to Live2 -> Live2 Token. In the URL enter [https://console.live2.ai](https://console.live2.ai/) and Token will be provided to you by Live2.ai at the time of integration.

<figure><img src="/files/JP5mbxW91vsCmgXS783I" alt=""><figcaption></figcaption></figure>

### Step 4: To Embed Videos follow these steps:

* Go to **Content -> Pages**&#x20;

<figure><img src="/files/Ab1COFOeoj5cmr10te7R" alt=""><figcaption></figcaption></figure>

* Select the page where you want to embed the video, click on Edit. For this example we are considering Home Page

<figure><img src="/files/5vrIlyu30RMqt4nJ5YpA" alt=""><figcaption></figcaption></figure>

* Click on Content

<figure><img src="/files/qwktYE9qhxBmdf0OTFfZ" alt=""><figcaption></figcaption></figure>

* Click on Insert Widget

<figure><img src="/files/DNlp0VxxVvgnDIGkpkzz" alt=""><figcaption></figcaption></figure>

* Select SocialWalls Widget from the dropdown, and enter the Embed Id generated from the Live2.ai social wall console dashboard.

<figure><img src="/files/fbdMyoanEhnwIy5udJN1" alt=""><figcaption></figcaption></figure>

* After the Widget is successfully added click on Save

<figure><img src="/files/u0NEyDyC0UZPLS2kq2HY" alt=""><figcaption></figcaption></figure>

* Go to Content → Pages. Click on View for the page the embed was created.

<figure><img src="/files/347akVXDCQYuZbdI7HuH" alt=""><figcaption></figcaption></figure>

* You will be able to see the preview of the live embed

<figure><img src="/files/A9Fm2svhlHUCoatvWVB9" alt=""><figcaption></figcaption></figure>

### Step 5: Enable Product Sync

Enable the product synchronization feature to sync your catalog with Live2. Run the following command:

```
bin/magento live2:productSync
```
