Custom Field Attribute Mapping
-
We’re trying to do some attribute mapping. We need to map some custom fields to some Google for WooCommerce fields.
Using your guide as a reference: https://woocommerce.com/document/google-for-woocommerce/attribute-mapping/use-cases/#mapping-custom-fields
So i have custom fields added to my products using the hook “woocommerce_product_options_inventory_product_data”, this means the custom fields are displayed in the Inventory tab for each product.
My field ids are: barcode, part_number, and _backorder_availability_date.barcode should map to GTIN, part_number should map to MPN, _backorder_availability_date should map to the Availability Date field.
I’ve used the filter in your guide above (woocommerce_gla_attribute_mapping_sources_custom_attributes) to add the field keys to the mapping sources, so they do now appear in the dropdown list & I’ve created the mapping rules.
However, I’m not sure the mapping is working as expected. If i update one of my Barcode values, it doesn’t seem to correctly update the GTIN field. Same for the part_number field, it doesn’t update the MPN field.
i was expecting the target attribute to be updated in line with the data source but this doesn’t happen. do you have any ideas why? Am i missing something or misunderstanding how the mapping should work?
Also, why i can’t select Availability Date as a target attribute? It means i can’t add my mapping rule from the data source _backorder_availability_date.
Finally, does the mapping also work for variable products? My field keys for simple / variable products are the same but i don’t see any documentation about mapping variable products.
Thanks
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.