• Resolved darekion

    (@darekion)


    Hello

    I create all my products using the Woocommerce API. I have not been able to find any documentation saying that just plugin adds to the API so I am assuming it is not.

    The field “Facebook sync” is by default set to “Sync and show in catalog” even when I have chosen not to sync products to Facebook. Is there a hook or filter I can add in functions where I can set this default value to “Do not sync” instead, so that not every product is synced because its the default value?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter darekion

    (@darekion)

    I am still having this issue. When I create a new woocommerce product its Facebook sync field defaults to “Sync and show in catalog” which I really do not want it to as some of my products are alcohol, and I am not allowed to advertise alcohol on Facebook.

    John Coy a11n

    (@johndcoy)

    Automattic Happiness Engineer

    Hi @darekion

    When retrieving a product with GET, the Facebook sync option appears to use the “key”: “_wc_facebook_sync_enabled” and “value”: “no” to set this option to not sync the product.

    Hope this helps

    Thread Starter darekion

    (@darekion)

    Hi @johndcoy

    Thanks for the reply.

    I believe this will be enough, otherwise I will be back ??

    Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Default values for new product’ is closed to new replies.