For arlanix/product-feed 1.0.0
Google categories
Every shopping platform classifies a product by Google's product taxonomy. Merchant Center calls the field google_product_category and Microsoft calls it product_category; Meta, TikTok, Pinterest and Snapchat use Google's name and Google's list. A feed's Google categories section maps your Magento categories to that list, and the category row that every platform's catalog adds to the mapping reads from it.
Assign categories
Open the feed: in Arlanix > Feeds, Select > Edit in its row. Click Google categories to unfold the section.
Leave Taxonomy locale empty for Google's list in US English, or enter another, such as en-GB. The feed sends Google's number for the category, which is the same in every language, so the locale only changes the words you search in.
Click Default Google category, type a word of the category, such as Clothing, and choose it from the list, Apparel & Accessories > Clothing. Products whose own categories have no assignment get this category. If you leave it empty, they go out without one: a platform would rather have none than a wrong one.
Click Assign a category. In the new row, choose the Magento category, such as Default Category > Gear > Bags, and the Google category it is, such as Luggage & Bags. Type to search either list.
Click Save. The assignments belong to the feed and are saved with it.
To start from another feed's assignments, choose that feed under Copy from and click Copy. A Pinterest feed can start from what the Google feed already decided. Nothing is saved until you save the feed. The same feed for another store view does this.
How a product gets its category
A product takes the first of these that gives it a category:
- A product attribute named
google_product_category, if your catalogue has one and the product has a value in it. - The feed's assignment for the deepest of the product's categories that has one. Assigning Furniture covers every category under it, until a deeper category has an assignment of its own.
- The feed's Default Google category.
A product that none of them gives a category to goes out without one.
The taxonomy
The module fetches the taxonomy from Google the first time the category search asks for it, in the feed's Taxonomy locale, or in en-US when that is empty. If Google cannot be reached, the search falls back to the en-US file bundled with the module, and the reason goes to var/log/arlanix.log.


