woocommerce / google-listings-and-ads

Sync your store with Google to list products for free, run paid ads, and track performance straight from your store dashboard.
https://woo.com/products/google-listings-and-ads/
GNU General Public License v3.0
47 stars 21 forks source link

Ability to map WooCommerce Attributes to Google Attributes #2280

Open Juberstine opened 8 months ago

Juberstine commented 8 months ago

Currently, some attributes, like color can be mapped to WooCommerce attributes, however, others like Gender and Age Group can only be mapped to Categories. I'd like to see these values and any others allow the ability to map to either a category or products that contain a certain attribute.

For example,

I'd like to be able to map the Age Group "Google" Attribute of "Newborn" to products that contain the product attribute of size-label = baby.

or map the Gender "Google" Attribute to all products that contain a custom gender attribute.

I hope this makes sense. TLDR. Ability to map Google Attributes not just to category but also to existing product attributes.

sukafia commented 8 months ago

7777104-zen

mikkamp commented 8 months ago

Thanks for the suggestion, this sounds like a great enhancement. Although we might need to put some thought into how to expand the attribute mapping rules in that way without making it too complex.

Just wanted to mention that an alternative option right now would be to use the filter woocommerce_gla_product_attribute_values. That filter will provide a copy of the Google Product as well as the WooCommerce Product, which can be used to evaluate what product attributes are set and if they match your criteria. When they do the ageGroup can be set to the value of newborn.