• Resolved anayslauby

    (@anayslauby)


    Hello,

    I use:
    – Object sync for Salesforce : to bring down data on pages + Woocommerce products and categories product
    – ACF plugin: to create custom fields on wordpress and backoffice of my woocommerce products

    I managed to make a fieldmap that syncs between Woocommerce and Salesforce for woo PRODUCTS!
    => the data comes down from salesforce, is put in the acf fields created on the woocommer products then are called on my elementor templates via dynamic tags.

    I would like to do the same thing for the object Product Categories woocommerce.

    But when I do the fieldmaps on the wordpress object “category”, it comes to create me categories of posts… And I can’t find in the dropdown list any other wordpress object that could match!

    Is it possible? Do you know how to add to the wordpress object list the woocommerce product categories to do my mapping?

    Thank you very much for your feedback!

Viewing 1 replies (of 1 total)
  • Plugin Author Jonathan Stegall

    (@jonathanstegall)

    This plugin doesn’t necessarily support all of Woocommerce’s features, so it’s possible you won’t be able to do this without some custom development. The first question is whether Product Categories are stored in a custom database table or not; some Woocommerce objects are, and that’s why this plugin doesn’t load them automatically.

    You can use the object_sync_for_salesforce_add_more_wordpress_types filter (some basic documentation here) to add additional objects that can be mapped. It’s not very complicated to add an additional object, but it can be tricky to add fields to that object. See the object_sync_for_salesforce_wordpress_object_fields documented on that same page.

    Ultimately it may very well be possible, but it’s not built into this plugin and I wouldn’t provide support for it here. But if you do manage to achieve it with this plugin’s developer hooks, and would be willing to post whatever code you use publicly on GitHub or a similar place, I’d be happy to add it to the plugin’s documentation.

Viewing 1 replies (of 1 total)
  • The topic ‘Create fieldmap for a Product Category WordPress Object’ is closed to new replies.