# Magento 2 Product Feed

### <span style="color: #3b82f6;">Installation and User Guide for Magento 2 Data Feed for Google, Amazon, Facebook Extension</span>

**Table of Contents**

1. [*Installation* ](#bkmrk-installation)
    - *Installation via app/code*
    - *Installation via Composer*
2. [*Configuration Settings for Product Feed Generator* ](#bkmrk-configuration-settin)
    - *General Settings*
3. [*Create Data Feeds* ](#bkmrk-create-data-feeds)
    - *General*
    - *Content*
    - *Format*
    - *Conditions*
    - *Facebook Product Feed XML*
    - *Google Product Feed XML*
    - *Google Product Feed CSV*
    - *Facebook Product Feed CSV*
    - *Make attribute visible in the Google Feed under Rule Conditions*
    - *Product Feed with Swatches*

### <span style="color: #3b82f6;">Installation</span> [](#bkmrk-)

- <span style="color: #f97316;">**Installation via app/code:**</span> Upload the content of the module to your root folder. This will not overwrite the existing Magento folder or files, only the new contents will be added. After the successful upload of the package, run below commands on Magento 2 root directory.
    
    ```php
    php bin/magento setup:upgrade
    php bin/magento setup:di:compile
    php bin/magento setup:static-content:deploy
    ```
- <span style="color: #f97316;">**Installation via Composer:**</span> Please follow the guide provided in the below link to complete the installation via composer.

<p class="callout success">[https://docs.scommerce-mage.com/magento-2-extensions/installation-via-composer/installation-via-composer](https://docs.scommerce-mage.com/magento-2-extensions/installation-via-composer/installation-via-composer)</p>

### <span style="color: #3b82f6;">Configuration Settings for Product Feed Generator</span> [](#bkmrk--1)

Go to **Admin &gt; Stores &gt; Configuration &gt; Scommerce Configuration &gt; Product Feed Generator**

#### <span style="color: #f97316;">General Settings</span> [](#bkmrk--2)

- **Enabled -** Select "Yes" or "No" to enable or disable the module.
- **License Key -** Please add the license for the extension which is provided in the order confirmation email. Please note license keys are site URL specific. If you require license keys for dev/staging sites then please email us at <support@scommerce-mage.com>.
- **Batch Size** – Indicate how many products will be handled during one iteration.
- **Schedule –** Please add the cron schedule for auto generated feeds.

[![image (24).png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/scaled-1680-/pb3image-24.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/pb3image-24.png)

### <span style="color: #3b82f6;">Create Data Feeds</span>

You can create/manage/edit data feeds from **Admin &gt; Scommerce &gt; Manage feed list &gt; Click "Add Feed**", it redirects on **Edit Feed** page which contains all the settings required to create a new feed. You can do any custom adjustments while creating a feed or you can do them later. You will find an ACTIONS drop-down on the top left of the list. It contains the following option: -

- **Generate: -** Click on it to generate the feed manually.
- **Status:** - Select the feed and you can change the status to active or inactive from this option.
- **Mode:** - You can also change the mode of a feed Auto or Manual from this option
- **Delete:** - Click on it to delete a feed.

[![image (9) (1).png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/scaled-1680-/image-9-1.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/image-9-1.png)

#### <span style="color: #f97316;">General</span> [](#bkmrk--5)

The general tab contains all the general settings such as Name of the feed, URL key, type of feed, store, status, and execution mode.

- **URL Key: -** Here enter the URL key
- **Type: -** You can specify the type of feed here such as XML, CSV, TXT etc.
- **Store: -** Choose the store view
- **Exclude Parent Products: -** If "Yes" then the feed will contain only child product links and if set to "NO" Then the feed will contain both child and parent products.

[![image (10) (1).png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/scaled-1680-/image-10-1.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/image-10-1.png)

- **Status: -** Status needs to be active to generate the feed.
- **Execution Mode: -** Execution mode can be Manual or Auto. For the Manual mode you will have generate the feed manually. As for the auto mode, the feed will be generated by the scheduled cron on the time specified in the configurations.

[![image (25).png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/scaled-1680-/526image-25.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/526image-25.png)

#### <span style="color: #f97316;">Content</span> [](#bkmrk--8)

In the content section, you will notice that our extension generates the code automatically for you. You can also make the changes if you want.

- **&lt;g:google\_product\_category&gt;: -** Leave this empty but if you want to then please add the category relevant to google categories.
- **Tag: -** You can add a tag into your content
- **Attribute: -** Select attribute such as brand, price etc.
- **Format: -** Now you can also select Price and Date in the format
- **Parent:** - Select "Yes" to add parent product in the feed and "No" to only include child products.
- **Use Attribute Label: -** Select "Yes" to display the attribute (in text format) and "No" to display attribute in a identifier format.
- **Fill From Child:** - If set to "yes" and product is configurable - value will be taken from first child

**Eg: -** Suppose you want to add GBP in the price attribute then you can change it by simply navigating to the tag &lt;g:price&gt; and add "GBP" before closing the tag. Similarly you can customize any part of the data.

[![image (26).png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/scaled-1680-/EZ5image-26.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/EZ5image-26.png)

[![image (13) (1).png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/scaled-1680-/image-13-1.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/image-13-1.png)

#### <span style="color: #f97316;">Format</span> [](#bkmrk--11)

Here, you can customize the format of several parts of the data such as Price, date, etc.

[![image (27).png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/scaled-1680-/UXMimage-27.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/UXMimage-27.png)

#### <span style="color: #f97316;">Conditions</span> [](#bkmrk--13)

The conditions tab allows you to add custom conditions specific to the feed. For instance, you can apply a condition to generate the feed for only one product by referring to its specific SKU. You can also apply several other conditions from the drop-down list.\\

[![image (28).png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/scaled-1680-/hhqimage-28.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/hhqimage-28.png)

- <span style="color: #f97316;">**Facebook Product Feed XML –**</span> When you click on the feed from **Admin &gt; Scommerce &gt; Manage Feed List &gt; Click "facebook.xml"**, then it opens the product feed.

[![image (12) (1).png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/scaled-1680-/image-12-1.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/image-12-1.png)

- <span style="color: #f97316;">**Google Product Feed XML –**</span> To generate Google feed go to **Admin &gt; Scommerce &gt; Manage Feed List &gt; Click "google.xml"**, it opens the product feed.

[![image (14).jpg](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/scaled-1680-/v18image-14.jpg)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/v18image-14.jpg)

- <span style="color: #f97316;">**Google Product Feed CSV –**</span> When you click on any CSV feed, it opens the product feed in CSV format.

[![image (14) (1).png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/scaled-1680-/image-14-1.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/image-14-1.png)

- <span style="color: #f97316;">**Facebook Product Feed CSV –**</span> Here is the Facebook product feed in CSV format.

[![image (15) (1).png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/scaled-1680-/image-15-1.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/image-15-1.png)

#### <span style="color: #f97316;">Make attribute visible in the Google Feed under Rule Conditions</span> [](#bkmrk--22)

You can add from **Admin &gt; Stores &gt; Attributes &gt; Product &gt; Select Product Attribute (e.g. sku) &gt; Use for Promo Rule Conditions - 'Yes'**

**[![image (16) (1).png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/scaled-1680-/wvFimage-16-1.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/wvFimage-16-1.png)**

In the below image you can see that attribute **"SKU"** added under conditions.

[![image (15).jpg](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/scaled-1680-/ieRimage-15.jpg)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/ieRimage-15.jpg)

#### <span style="color: #f97316;">Product Feed with Swatches</span> [](#bkmrk--22)

To allow colour and size to be auto selected on product page, the URL needs to be created like show below.

**attribute name and value of the attribute**

**for example - size=s&amp;color=red**

```php
https://magento2.scommerce-mage.co.uk/orion-two-tone-fitted-jacket.html?size=s&color=red
```

If you have a question related to this extension please check out our [**FAQ Section**](https://www.scommerce-mage.com/magento-2-product-feed-manager.html#customfaq) first. If you can't find the answer you are looking for then please contact [**support@scommerce-mage.com**](mailto:core@scommerce-mage.com)**.**