Open Juberstine opened 8 months ago
7777104-zen
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
.
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.