User Tools

Site Tools


Sidebar

magento_2:product_feed

For more details see the Product Feed extension page.

Product Feed for Magento 2

Create product feeds for Google Shopping, Nextag, Bing, Amazon and many other comparison shopping engines to attract more customers and drive sales to your Magento store.

  • Ready-made feed templates for most popular shopping engines
  • Automatic and manual feed generation
  • Flexible feed configuration to comply with all shopping engines
  • Ability to set particular time for feed generation
  • Unlimited number of product feeds

Creation of product feeds

To see how to set up feed profile for Google, Facebook and Bing in 4 easy steps please check our blog post on Google Feed Wizard.

To create a product feed, please go to Catalog → 'Feeds' section → Profiles.

When you create a feed, you can use ready-made templates. In this case, the feed will contain all the basic settings for the certain shopping search engine. You can do any custom adjustments while creating a feed or you can do them later.

To duplicate, generate and delete feeds in bulk select the feeds you need, click the button 'Actions' and choose the action.

The link to the generated feed is displayed on the grid. Click the Copy button to immediately get it.

Add new feed settings

General

Name - specify feed name.

File name - specify the feed file name.

Type - choose product feed format (XML, CSV or TXT)

Store - select for which store view you want to create the feed

Status - here you can activate or deactivate the feed.

Execution mode - specify the feed generation mode (Manual, Hourly, Daily, Weekly or Monthly).

Cron Execution Time - specify feed generation time to generate feeds when the site workload is minimal (for example, at nights). The option works only with automatic modes (hourly, daily etc.)

Compress - you can set to compress the feed to Zip, Gz or Bz format when it generates and uploads to the server.

Exclude Disabled Products - set to Yes to exclude products with the disabled status from the feed.

Exclude Out of Stock Products - enable the option if you don't want to include out of stock products to the feed.

Exclude Not Visible Products - set to Yes to skip not visible products so that they won't be included in the feed.

Content

The 'Content' tab allows configuring product data that are included in the product feed. The functionality of the tab depends on the format you select at the ‘General’ tab. If you choose XML format, you will get fields for entering the feed header, footer and product information.

Header - used to place some info into the XML header.

The time of the feed generation automatically adds to the header. If you don't need it, you can remove it from the header at any time.

Item - a tag which will wrap each product in the feed.

Content - an XML editor where XML tags and attribute codes are inserted.

Tag - XML tag for the entity set up below. To add a line of data to a feed, please enter the attribute XML tag according to the specification of a particular shopping search engine (e.g. for google.com XML tag will be g:price).

Attribute - When you configure product data, you can add a new attribute, image and other entity. For example, add a Price with TAX(VAT) attribute to get more relevant information on the product prices.

Format - here you choose a format of the attribute field (as it is, data format or price format)

Parent - when enabled, simple products which are associated with configurable products will output attribute value from the parent configurable product.

Footer - used to place some info into XML footer

It is possible to add modifiers for cases when you need to modify the original values of an attribute. To do this, use ‘Add modifier’ action; select one action from the available range: strip tags, html escape, lowercase

In this example, we apply “HTML Escape” modifier to escape special symbols from the product description. It is important for XML format as special symbols can be treated as part of XML markup and break feed file.

You can also use a category mapping for any shopping platform. All you need to do is to add a new attribute from the list:

To learn more about category mapping, please, go to the Configure Category Mapping for shopping platforms section.

Format settings

In the ‘Formats’ section, you can specify the date format for the feed file, choose how many digits should be displayed after delimiter for decimal prices. You can also specify price currency and abbreviation for it.

Conditions

It's also possible to create a feed for specific products. For example, you can add configurable products in one feed, and simple products to another. At the ‘Conditions’ tab, you can specify the products that will be included into the feed you are editing.

In our example, we specified the conditions to generate the feed only for the products from the Category 36 and with the Attribute Set 'Bag'.

Delivery

Enable feed download on ‘Delivery’ tab and enter FTP account credentials where the feed will be uploaded.

Host - FTP\SFTP server hostname or IP address.

User - FTP\SFTP username.

Password - FTP\SFTP password.

Path - path to directory on FTP\SFTP server. Please note: this path is set relative to FTP\SFTP user home directory. If the home directory is already set to desired feed destination then you don't need to set Path.

Passive Mode - can enable Passive mode for FTP connections. More on FTP modes here.

Click the Test connection button to check whether the data for the FTP\SFTP connection is correct.

Analytics

These settings allow you to set utm-parameters, that will be added to the urls in your feed. Thus, you can collect all the statistics to your Google Analytics account. NOTICE: the fields Campaign Source, Campaign Medium and Campaign Name are REQUIRED.


General Settings

Go to Admin Panel – Stores – Configuration – Amasty Extensions – Product Feed

URL with category - to generate an appropriate product feed, switch between shortest and longest URL paths.

Shortest Path — uses the shortest possible path in product URL;

Longest Path — uses the longest possible path in product URL;

Default Rule — utilizes the default Magento 2 rule for URLs, deactivates the extension.

For example, you have a product that is listed in 2 categories, therefore, it's available via two links:

1) store.com/category1/product.html

and

2) store.com/category2/subcategory2/product.html

If you choose the Shortest Path, the extension will use the first link, if you select the Longest Path - the second URL will be used.

Configure Category Mapping for shopping platforms

If you need to make changes to your store’s categories to suit the requirements of the platform where you would like to upload your feed (for example, Amazon), please go to сategories section.

Go to Catalog → 'Feed' section → Categories

To create new category mapping, please specify the name and code here.

Click on the category name to activate it and specify a new name. After you click ‘Save’ the name will be changed; previous category name will be displayed in brackets.

How does it work?

To IGNORE and exclude particular categories from the feed, CHECK the necessary boxes.

For example, if a product is assigned to the categories “Bags” and “Sale”, the extension will choose the category with the biggest value by default. In our case, it can be “Sale”. If you want to assign the product only to the “Bags” category - select the “Sale” checkbox to ignore it.

If you want to manage a category that will be selected for the product in the feed by yourself, select the categories that you would like to ignore. In this case, if the product is assigned to more than 1 category, the extension will ignore the checked checkboxes.

Set up feed for Google and Facebook with Feed wizard

Since Facebook is using the same feed format and tags as Google, the feed profile we're going to create here will work for both Google and Facebook.

Go to Feeds and click the Setup Google Feed button.

Step 1: Categories

To map your category to category in Google taxonomy simply click on the category name and insert suitable category path from Google taxonomy:

Hit 'Proceed to next step' to continue.

Step 2: Basic Product Information

Wizard will have all fields already filled for you so you can skip to the next step if you don't want to make any changes.

But in case you want, for example, to use short description instead of the description in your feed, then you can do it like this:

The same can be applied to all other attributes.

Also check the Options section. There you can select which storeview to take attribute values from. It's very useful when you have a multilingual store, for example, so you can create feeds using the names or descriptions in specific languages. Same works for currencies. If you have a multistore configuration with different currencies set for each store then this setting will make the Feed fetch product prices in the currency assigned to the specific store.

Hit 'Proceed to next step' to continue.


Step 3: Optional Product Information

Just as in previous step here we see a list of attributes. But this time which attributes to use greatly depends on what you are selling. Google has different requirements for data that should be included in the feed. The requirements depend on your store location and the type of products you export.

For example, if you sell apparel and the Condition tag is set to New in your products, you will need to have attributes gtin, mpn and brand in the feed.

Brand should be set manually. For example, in our case, we have the brand info saved in the manufacturer attribute, so we choose it in the drop-down.

Step 4. Run and Upload

In the following example we're going to set up a feed to be uploaded to the Google servers daily, once a day, using SFTP in fully-automatic mode.

We should start from the Google Merchant account setup. Add a new feed:

Add a new feed

A test feed will do for now, but please keep in mind that test feeds can't be used in AdWords campaigns: Create a test product feed

Since we're going to upload our feed files to Google server, Upload is what we need here: SFTP for product feed

The next one is important because the name of the feed file you set here should match the actual name of the file you're going to upload to Google. The same name we're going to use in Wizard a bit later:

In the Google Merchant dashboard, go to Settings (near your profile avatar) > SFTP / FTP / GCS: SFTP settings in Google merchant

Click Reset password and save the password. Now, on the SFTP settings page we can get the server address and login: SFTP settings

Return to the Product Feed extension, step 4, choose SFTP as the upload method and enter the data you have received from the Google Merchant dashboard. Here also goes the filename you've set in the Google Marchant feed settings. Switch the Generate feed setting to Daily, and you’re done!

Here’s how the configured step 4 may look like:

As you click Finish and start generation, the feed profile will open and the feed generation will start, and because we configured the SFTP upload, the feed will go to the Google server, too.

After the file is uploaded to the Google server, it will be automatically processed.

How to submit configurable products to Google Merchant

Related help article on Google support site.

To let Google know that simple and configurable products you submit in the feed are related, you should use g:item_group_id tag. Add this tag to your feed profile, set it to output SKU attribute and enable Parent option.

With this setup, Feed extension will export products with same g:item_group_id if they are related, i.e. if they are associated products of the same Configurable Product. Then Google will check g:item_group_id value and treat these products as a variant of the same product.

XML formatting error

In the most cases, this error appears when your feed has special characters inside tags. Please note the line number in the error message, then open your XML feed file and check the aforementioned line. Note the tag used in this line, then open feed profile, find the tag and add a modifier “HTML Escape”

Click Update, save and generate the feed.


Rate the user guide
 stars  from 1 votes (Details)
magento_2/product_feed.txt · Last modified: 2018/09/21 13:29 by karpova