Buy Now

Google Shopping Feed For Magento 2

Google Shopping Feed:  This extension provides the store owners the ability to show their products on Google search page in a visual manner, next to all the competitors in line. Allow Magento 2 store owners to create Google Product feeds for their store’s products, export the products to their Google Merchant account, and map the categories(many to many) in Magento with the Google shopping feed categories. Apart from this the Google Feed is auto updated once the product gets save on the store end.

Features

  • Store products add to Google Feed using content API.
  • Google Feed Auto update on product save on store.
  • Dynamic Attributes mapping.
  • Map store category with Google shopping feed categories.
  • Many to Many Category mapping available.
  • Supports Simple, Virtual, Downloadable, and Configurable product types.
  • Option to Authenticate the Merchant account of the user.
  • Product deleted at Magento is auto deleted from the Google Feeds.

Installation

Follow the below steps for installing the extension –

Step 1:

Unzip the respective extension zip and and then move “app” folder (inside “src” folder) into magento root directory on the server.

Step 2:

Now, run the below-mentioned commands in the Magento 2 root directory via terminal.

  1. composer require google/apiclient
  2. php bin/magento setup:upgrade
  3. php bin/magento setup:di:compile
  4. php bin/magento setup:static-content:deploy

Step 3:

lastly, flush the cache and re-index all by navigating through System->Cache management.

Module Translation

For translating the module language, please go to app>code>Webkul>GoogleShoppingFeed>i18n and edit the en_US.csv file. Now, translate the words on the right and upload the modified file to the same location. The filename of the translated file should be according to the language and region code like de_DE.csv.

How to get the Credentials – Client ID and Client Secret

Create APP, Get the Client Id & Secret:

Step 1: Go to console.developers.google and login using your Gmail Id. After login click Select a Project option.

Step 2: Click the NEW PROJECT option.

Step 3: Enter your project name and select the location and click the Create button.

Step 4: Select your created project and then click ENABLE APIS & SERVICES button.

Step 5: Now in the search box type in Shopping.

Step 6: The results will populate and then selectContent API for Shopping.

Step 7: Now select the created app and then click on the Create Credentials button.

Step 8: Now select OAuth client ID as shown below in the snapshot.

Step 9: Under Application type select the Web Application, under the Authorized redirect URIs enter the redirect URl.
Example: https://www.example.com/admin/googleshoppingfeed/oauth/index/ 

Now, click the Create button.

Step 10: Now you can see the client Id and the client secret key. Copy them into the module configuration settings.

Sign Up for Google Merchant:

Step 1: Go to Merchant Center and click on the Sign Up button.

Step 2: login with your Gmail address that you have used for creating the credentials and click the Next button.

Step 3: On the Terms & Condition page check the checkbox to agree to the terms & conditions and click Continue button after that.

Step 4: Now, you need to verify and claim your website URL. To do so, follow the Upload HTML file to your website method.


Download the HTML file provided at the point no. 1

Now, using a file transfer wizard like FileZilla transfer this file to where you have installed the Magento.

To Confirm this transfer, click the link provided at point no. 3 after which you can see the below shown result.

After the above steps click Verify URL button.

Step 5: After clicking the verify button a pop-up will appear. Click Continue to proceed further for verification.

Step 6: After clicking the Continue button in the image above, you can see that the website is verified and claimed. Lastly, click the Finish button.

Now, you can see the Google Merchant Center dashboard.

Module Configuration

After the successful installation, the admin can configure the module by navigating through Stores>Configuration>Webkul>Google Shopping Feed.

Here, we have two configuration settings –

  1. General Settings
    OAuth Consumer Key – Enter the oAuth consumer key that you received after registering at console.developers.google.com
    OAuth Consumer Secret  – Enter the oAuth consumer secret that you received after registering at console.developers.google.
    Authenticate User – Click here to authenticate your Google merchant account.com
    Export to Google Shop – Click here to export your products to the Google merchant account.
  2. Default Configurations

    Default Category – Indicate the category of your item based on the Google product taxonomy. Categorizing your product helps ensure that your ad is shown with the right search results.
    Weight Unit – Enter the weight unit that you are using for your store. It will be applicable on the items on Google feeds.
    Age Group – Select the target age group of the item on Google feeds.
    Product Available For – Select the target gender of the item on Google feeds.
    Product Condition – Select the product conditions as – New, Refurbished, or Used.
    Tax Rate -Enter the tax rate in percentage of the item on Google Shopping Feed.
    Tax Apply on Ship – Select Global or As Product.
    Tax Apply on Ship – Select Yes or No.

After setting up the configuration, click the Authenticate User button to authenticate your credentials. This brings up a pop-up, just select your email address or login with your Google account to proceed further.

Now, the section that appears click the Allow button.

Lastly, you will see Google merchant center account successfully authorized message just click on Ok button. After that, just refresh the configuration page.

You can see the account is Authorized now.

Workflow – Admin’s End

After the successful installation, the admin will be able to see the Google Shopping Feed menu option with two sub-options :

  • Map Attribute
  • Map Category

Map Attribute:

Under this section, the admin will be able to map the Google Merchant Account attributes with your Magento store attributes as  shown below in the snapshot. Here, the admin can map the values, reset, and save the the mapping data as required.

After selecting the respective fields for the Google shopping feeds click the Save Mapping Data button to save the mapped data. After save, you see a confirmation message for the same.

Map Category:

Under this section, the admin will be able to find a list of all mapped categories, their details, and can map the categories of his Magento 2 store with the Google Merchant Account categories. The mapping here is basically a Many to Many mapping.To map a new category click the Map Category button in the snapshot above and this brings up the section to map the store categories with the Google Feed Category.

To map, select your store category and after that select the corresponding Google Shopping Category, it’s sub-categories if any as required. Lastly, click the Save Mapping Data button to save the mapping and you can also see a success message for the same. Here, you can do a many to many mapping.

The admin can also delete the mappings as required by first checking the mapping and then choosing the delete option from the actions drop-down.

Apart from the above options, the admin also needs to navigate to Catalog>Products>Add New Product. On the add new product page, navigate to the Google Shopping Feed Fields. Here, the admin will find the Google shopping fields for which you need to select their corresponding values. These are the new attributes that have been added via the extension itself. You need to select the values for them before saving the product otherwise the default values set in the admin panel will be applicable for these new attributes.

How to Export product To Google Merchant Account

To export your Magento 2 products to the Google Merchant Account navigate to Stores>Configuration>Webkul>Google Shopping Feed. Here Initially, after you have authenticated the user by entering the Client Id and the Client secret and then clicking the Authenticate User button, you will see Authorized check in front of it.

Now, to export the products just click on the Export to Google Shop button.

After this, you will see that the products will start syncing on the pop-up. After a successful export you will see the success message for the same.

Workflow at Google Merchant Account

After the admin has configured the extension, mapped the attributes, categories, and exported the products to the Google’s Merchant Account, the exported products will be visible under the Products>List section.

List:
Final Attributes:

That’s all for the Google Shopping Feed For Magento 2. If you have any queries or doubts get back to us at support@webkul.com or raise a ticket at webkul.uvdesk.com.

Current Product Version - 2.0.0

Supported Framework Version - 2.0.x, 2.1.x, 2.2.x

. . .

Comments (2)

Add Your Comment

  • Jesper
    The example path for the API: What is a more correct address, and how should the target be defined?
    • Nishad Bhan
      Jesper, We have already mentioned how to get the API keys in the User Guide itself. You can shoot back a mail at support@webkul.com with your exact query and we will be more than happy to help you out with it.

      Thanks!

  • css.php

    Index