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.
- 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.
Follow the below steps for installing the extension –
Unzip the respective extension zip and and then move “app” folder (inside “src” folder) into magento root directory on the server.
Now, run the below-mentioned commands in the Magento 2 root directory via terminal.
- composer require google/apiclient
- php bin/magento setup:upgrade
- php bin/magento setup:di:compile
- php bin/magento setup:static-content:deploy
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 select – Content 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.
Now, click the Create button.
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 4: Now, you need to verify and claim your website URL. To do so, follow the Upload HTML file to your website method.
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.
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.
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 –
- 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.
- 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
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.
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.
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
Current Product Version - 2.0.0
Supported Framework Version - 2.0.x, 2.1.x, 2.2.x