facebook-for-woocommerce
facebook-for-woocommerce copied to clipboard
Product Addons For Shop Products
Hi, Great Plugin!! I'm using the Woocommerce Product Add-Ons Plugin and noticed that when a customer clicks 'Check Out On Website' on the Facebook Shop product, it directs them to the checkout where there's an error message as they haven't filled in the personalised add-on fields. Are there plans to integrate this add-ons functionality directly within the Facebook Shop Products? I've noticed that Shopify sellers have this functionality already. Many thanks!
@petecharles80, thanks for raising this issue. We are not currently building a fix for this issue, bu
We have a known issue with certain other plugins or variations cause incorrect add-to-cart behavior with respect to shops, there's a workaround you can do by sending users to the product page instead of the add to cart page. It's described in #4.
To re-iterate on this old issue : we aren't actively building support for this, and encourage everyone to use the workaround for now, but if anyone wants to jump in and build this, we'll be happy to review your pull request!
Upload a screen shot to help you find it.

Bringing this back as I have the same issue with my Name Your Price plugin. @mengyingdu I believe the workaround described in #4 is insufficient. Linking to checkout for products that support it and linking to the product page for products that do not, should be automatic.
WooCommerce itself handles this in the shop loop by testing the following condition:
$product->supports( 'ajax_add_to_cart' ) && $product->is_purchasable() && $product->is_in_stock()
So it's possible to do and the benefit of doing so would be dramatically increased compatibility with WooCommerce.com marketplace plugins such as Mix and Match Products, product bundles, composite products, product-addons, name your price, etc.
The purchasable and stock status are already in the WooCommerce Rest API, which I assume it what you are using to fetch/sync products to the Facebook app that controls their display in FB itself.
My proposal
- Submit PR to add
supportsto WooCommerce product API response - Use the new
supportsin conjunction with existingstock_statusandpurchasableto recreate the shop loop logic condition - If ajax add to cart is supported and purchasable and in stock, display 'checkout' and link to checkout, automatically adding the product to the cart (maintaining the existing functionality for simple products)
- If one of the conditions is not met display 'view product | select options' and link to product page
- even better if the button text can be pulled from the API too. Currently the
button_textproduct property in the API response is only for external product types, but either it could be made to do more or you could support a custom property. I'd add support for it in my plugin so that my product type gets the appropriate text.
but if anyone wants to jump in and build this, we'll be happy to review your pull request!
@dmitridr How would this be possible? I haven't looked at this closely since I worked on some pixel stuff a few years back, but my understanding it this plugin only appears to handle the sync between FB and the WooCommerce API? How can we submit PRs to the application that displays the products at FB?
@dmitridr could we add the supports( 'ajax' ) to the info synced? Or does it need to be explicitly in the WooCommerce API? Where can we see the code that handles the display on the FB side?
Actually now the product object has the has_options() method correct? If the product has options then it should link to the single product page. This could resolve a lot of compatibility issues.
With the latest changes announced by Meta we will not be working on this.
What changes are those?
The general changes to FB and Instagram shops where Meta is slowly going away from Check Out On Website feature. So far in limited locations but I think that this will be expanded soon. Given the low traction of this issue, this should happen before we will ever get to this. I am happy to re-popen in case you think that this should still be open.
https://www.facebook.com/business/help/623552069600842