Custom Google Shopping feed

Is there any way to extend or change the functionality of the Google shopping feed items when they’re being generated?
For instance:
We don’t want to map Google product category on a per product basis but rather use a field from the Main Category of the product instead. We also need to use article number from the product as MPN number and would preferably not have to specify a specific field for Brand since this is a single brand store we’re developing for.
I’m asking since the panel in Back office won’t let me define these relationships.

Litium version: [7.2.2]

You’d have to create a custom feed to do all of those. The settings section only maps fields on the base product or variant.
https://docs.litium.com/documentation/litium-documentation/products/price-agents

It’s also possible to solve some of them by using validations to copy values to fields on the product, but a custom feed is probably a better and more maintainable option.

If you implement your own IPriceAgentItemFactory you can decide where data for the different fields should be populated from.

1 Like

I have a custom IPriceAgentItemFactory set up to do just that, and as far as I can tell I can add my fields on PriceAgentItemResult.Properties, is that how I’m supposed to do it? I can see that the Google Shopping agent already returns fields as empty that I want to populate myself, if I add my own key called “google_​​product_​​category” it’ll use it instead?
I can’t get my feed to save correctly on my dev environment, currently only our production env. actually displays the feed that’s why I’m asking instead of just trying myself :slight_smile:

If you are not implementing a custom GoogleShoppingPriceAgent then you need to set “GoogleProductCategory” as peroperty name/id.
priceAgentItemResult.Properties["GoogleProductCategory"] = GoogleShoppingCategoryId;

Ok, I can have a look at the GoogleShoppingPriceAgent to see how I need to name my properties, thanks!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.