• nukurt

    (@kurtnuimage)


    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]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there!

    I can understand your conern, please note that we do not provide support for customization, If you need more in-depth support or want to consider professional assistance for customization, I can recommend?WooExperts?and?Codeable.io?as options for getting professional help. Alternatively, you can also ask your development questions in the??WooCommerce Community Slack?as custom code falls outside our usual?scope of support

    Thank you for your cooperation and understanding

    Thread Starter nukurt

    (@kurtnuimage)

    Hi @shahzeenfarooq,

    Thank for the response, I’m not really sure you quite understand though.

    It’s not customisation. We’re just trying to use the existing filter that you provide via your documentation here – https://woocommerce.com/document/google-for-woocommerce/attribute-mapping/use-cases/#mapping-custom-fields – It doesn’t seem to work as expected.

    As stated, we’ve used the filter to add mapping between custom fields to the Google for Woocommerce fields doesn’t seem to be working. e.g. I update my field, and the mapped GTIN / MPN fields aren’t updated. Plus, why the Availability Date field isn’t available as a Mapping attribute option?

    Also, you didn’t answer my query about whether this setup works for variable products?

    • This reply was modified 2 days, 17 hours ago by nukurt.
    Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello nukurt,

    Thank you for your the clarification.

    For better understanding, could you share screenshots of the:
    – Snippet you have added.
    – Attribute rule.

    I want to review the configuration and guide you further.
    Looking forward to your response. ??

    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.