Google Shopping Feed
Google Shopping Feed
- How do I configure the Google Shopping feed?
- How do I assign Google categories?
- How do I export the Google Shopping feed?
- How do I generate a 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:
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:
- 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:
KEY=VALUE for a single parameter
KEY=VALUE, KEY2=VALUE2 and so on for multiple parameters
- 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
To products
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"