• Resolved slaxxarn

    (@slaxxarn)


    Hi!

    Is there any filter to manipulate the attribute value before sync on variations?

    We have comma ‘,’ in our attribute values and by looking at the source code for the plugin (facebook-for-woocommerce/includes/Products/Sync/Background.php line 299 to 304) you guys do an implode on attributes by comma sign to convert all attributes to a string for “additional_variant_attribute”. This breaks our import by, i guess, on facebooks end, explode by comma sign aswell.

    An example how are attribute values are written: processor:1,8 GHz Fyrk\u00e4rnig Core i7 so the whole additional_variant_attribute becomes

    "additional_variant_attribute":"bildskarm:HD 1920x1080,processor:1,8 GHz Fyrk\u00e4rnig Core i7,minne:16GB RAM,4g-cellular:Med 4G Cellular,lagring:512GB SSD"

    Is there any workaround for this?

    • This topic was modified 3 years, 7 months ago by slaxxarn.
    • This topic was modified 3 years, 7 months ago by slaxxarn.
    • This topic was modified 3 years, 7 months ago by slaxxarn.
    • This topic was modified 3 years, 7 months ago by slaxxarn.
Viewing 3 replies - 1 through 3 (of 3 total)
  • laceyrod

    (@laceyrod)

    Automattic Happiness Engineer

    Hi @slaxxarn

    This is a more complex development. I’ll go ahead and leave this thread open for a while in case anyone else wants to chime in, but in the meantime, I can also recommend the following resources for more development-oriented questions:

    – WooCommerce Slack Community: https://woocommerce.com/community-slack/
    – Advanced WooCommerce group on Facebook: https://www.facebook.com/groups/advanced.woocommerce/

    I’ve also reached out to our developers just to see if they can provide any additional insight, and I’ll be in touch if there are any suggestions they can make.

    Cheers!

    Plugin Support John Coy a11n

    (@johndcoy)

    Automattic Happiness Engineer

    Hi @slaxxarn

    We haven’t heard back, we’ll mark this thread as resolved. Should you still have issues, first confirm that Facebook for WooCommerce is fully updated. You can buy the free plugin from that page for updates and support WooCommerce.com. Free free to open a new support thread on this forum if you still have any trouble along the way.

    Thread Starter slaxxarn

    (@slaxxarn)

    Hi @johndcoy

    I created an issue at the github repo and got it resolved, you guys only need to create a new version of the plugin so we can use the changes.

    And I use composer to install plugins, no uploading zip files and installing plugins the traditional way ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Any filter to change attribute values before sync’ is closed to new replies.