Instruction Google Content API for Shopping for PrestaShop1.7
Download and install
Download the plugin archive from the Shop Pinta store and save it on your computer.
In the admin panel of your website, select Modules (1) > Module manager (2).
Next, click the Upload a module button.
In the window that opens, click the select file button (1).
Select the plugin archive (2) and click the Open button (3).
To configure the plugin, click the Configure button.
Plugin page
The plugin page includes:
The Content Language field - to select the language of the uploaded data.
The Currency field - to select the product currency.
The Target Country field - to select the target country.
The Merchant Id field - to enter the account ID from Google Merchant Center.
The Category Status checkbox - to enable / disable the use of Google categories.
The Taxes checkbox - to enable / disable the display of the price with tax.
The Prefix offer Id field - to enter a prefix for the product ID. You can add any word to the product ID, if necessary.
The Your Access Token field - to enter the token after setting up an account in the Google Merchant Center.
This field is filled in automatically when uploading a json file.
The Your Access Code field - to enter the code after setting up an account in the Google Merchant Center.
This field is filled in automatically when uploading a json file.
The Upload json file block allows you to synchronize your website with account in the Google Merchant Center. This block consists of:
The Load button - to load a json file with the access token and the access code.
The Your redirect url field - use this redirect URL when setting up an account in the Google Merchant Center.
The Login button - to authorize data.
After successful authorization, the Your Access Token and the Your Access Code fields are automatically filled.
The Trigger edit and add product field - to enable / disable automatic updating of product data in the Merchant Center. To update the data after the editing / creating of products, select the Enabled position.
The Trigger delete product field - to enable / disable automatic updating of product data in the Merchant Center. To update the data after the deleting of products, select the Enabled position.
The LOAD PRODUCTS button - to load all the products of your website in the Google Merchant Center.
The Delete All Products button - to remove all products of your website from the Google Merchant Center.
The Clear logs - to delete logs of the using the plugin.
Uploading products to Google Merchant Center
Sign up for a Google account if you don't already have one, and create an account with Google Merchant Center.
Copy the account ID and add it on the plugin page (to the Merchant Id field).
Use the Google API to set up integration with the Google Merchant Center.
To do it, you need to create a new project in the Google Cloud Console. For example, My Project 10854 (1).
Next, go to the Library menu (2).
Using the search, find the required library - Content API for Shopping.
After selecting, confirm the connection of this library to the project (the ENABLE button).
Next, you need to generate a json file with authorization data:
Go to the Credentials menu (1) and select Create Credentials (2) > OAuth Client ID (3).
Select the Web Application option in the Application Type field.
Enter the client name, for example, Web Client 2.
Add your redirect URL in the Authorized redirect URIs block:
To display the field for entering the redirect URL, click the ADD URI button.
Copy the redirect URL on the plugin page (the Your redirect url field).
Paste to the URIs 1 field (1) the redirect URL copied from your website's admin panel.
Click the CREATE button (2).
Download a json file.
Go to the OAuth Consent Screen menu (1).
In the Publishing Status block, select the In Production option.
Next, click the Back to Testing button (2).
To authorize data on the plugin page, upload a json file.
To do it, click the Load button (1) and select the previously downloaded json file (2, 3).
Next, click the Save button (4) to save the current data.
And click the Login button (5).
After successful authorization, the Your Access Token and the Your Access Code fields are automatically filled.
Upload your products to your Google Merchant Center account.
To load products correctly, first create the Feed (menu Products > Feeds). And select Content API as the data input method.
Next, click the Load Products button and go to your Google Merchant Center account (menu Products > All Products).
Now you can quickly upload all the products of your website to your Google Merchant Center account.
VIDEO INSTRUCTION