AddToCart doesn’t send correct variant ID on product page
-
On a (WooCommerce) product with variants, when you select a variant on the Product page and click “Add to cart”, Facebook Pixel helper gives a warning on the AddToCart event, saying “Can’t match products”:
If you then go to view the Cart, the AddToCart event now works:
The difference is the submitted
content_ids
: On the Product page, the ID on the product itself is submitted, and on the Cart page, the specific variant’s ID is submitted. So it looks like the AddToCart event expects a variant ID in this case, and that’s what should be submitted on the Product page as well?The page I need help with: [log in to see the link]
- The topic ‘AddToCart doesn’t send correct variant ID on product page’ is closed to new replies.