Google Shopping Feed

Google Shopping Feed

How do I configure the Google Shopping feed?

Generating the taxonomy

Generating the taxonomy table is a required task after we’ve initially installed the package, and is the source of all the categories provided by google shopping.

To generate the taxonomies table we can:

  1. Navigate to the modules’ section in the admin and generate taxonomies through the modules’ interface 2. Run a command from the root project directory:
php artisan aero:google:taxonomies

Setting a CRON run at time

We can specify the time at which the taxonomies should be updated automatically. This can be changed by:

  1. Editing the config.php file and manually adding the CRON time 2. Setting the value in the admin modules’ section under Configuration in the Google Shopping module.

Query parameters

Query parameters are used for every variant link that is input into the XML feed. These can be used to grab different prices such as included and excluded VAT. To set query parameters:

  1. Navigate to the modules section of the admin, go into Google Shopping and Configure. 2. Add your query parameters without any double or single quotation symbols in the following format:
KEY=VALUE for a single parameter

KEY=VALUE, KEY2=VALUE2 and so on for multiple parameters

  1. Click on save

Each of our variants should now be output into the XML feed with the query parameters we have specified.

How do I assign Google categories?

Google categories can be assigned to categories, or directly to the product. It can be set up either way as the mapping tool automatically detects the ones that have been set up. There is also a way of mapping whether a google category is grabbed from categories or the products. It can be done the following way:

To categories

  1. Navigate to categories under Catalog Management. 2. Choose the category we want to assign a Google Category to from the bottom of the page. 3. Save the category.

To products

  1. Navigate to products under Catalog Management. 2. Choose the category we want to assign a Google Category to from the bottom of the page. 3. Save the product.

How do I export the Google Shopping feed?

To export the feed we need to navigate into the module’s section in the admin, and then to Google Shopping. Provided we’ve generated the taxonomies and have configured the package correctly, we can click on the Exportbutton to begin mapping out the feed.

Mapping allows the feed to use alternative fields as a data source for a certain mapping as well as setting a fallback, in case the data source is empty.

How do I generate a Google Shopping feed?

In order to generate a Google Shopping feed, it is necessary to install an Aero dependency in form of the aerocargo/google-shoppingpackage from agora.aerocommerce.com

More developer-specific information about the Google Shopping feed can be found on the Google Shopping module page in agora.

Installing the package

To install the package, simply run the following command from the project’s root directory:

composer require aerocargo/google-shopping

After the package has been installed:

php artisan migrate

And finally, if we wish to modify any of the configuration:

php artisan vendor:publish --provider="Aerocargo\GoogleShopping\ServiceProvider"