Problem with product catalog (variable products)
-
Hi,
ViewContent and Addtocart are with warnings – WARNINGS
Products Are Missing From Your Catalogs
And this problem is only with variable products. How can I create product catalog with variations?
Best regards,
Eve
-
Hi,
I’m facing the same issue. I’m using the Product Catalog to generate product data feed to Facebook. Only the main (first) variation is created and the other variations do not appear in the feed.
If anyone knows of any solution, please let us know! ??
Regards,
Janesame problem here, sadly it seems that this plugin is no longer supported
I noticed that there are lots of topics without a single answer for months
- This reply was modified 5 years, 11 months ago by caetanocop.
ohh.. found a topic saying that the author @antoscarface is coming back.
please help us! ??
Thank you
I was doing some tests here…
my AddToCart was fine, my problem here was ViewContent… it was showing on Pixel Helper:
Products Are Missing From Your Catalogs ... content_type: product_group content_ids: [1453,1454,1455,1456,1457,1458]
so I installed “Facebook for Woocommerce” plugin and noticed that it follows a diferent behavior, so i checked https://developers.facebook.com/docs/facebook-pixel/reference/ and it says:
content_ids -> Product IDs associated with the event, such as SKUs (e.g. [‘ABC123’, ‘XYZ789’]).
ok thats fine, but..
content_type ->
Either product or product_group based on the content_ids or contents being passed. If the IDs being passed in content_ids or contents parameter are IDs of products then the value should be product. If product group IDs are being passed, then the value should be product_group.so my pixel helper was saying that I was sending content_type = product_group even sending an array of product..
so I change the file: pixel-caffeine/includes/supports/class-aepc-woocommerce-addon-support.php line 208
from: ‘content_type’ => ‘product_group’,
to: ‘content_type’ => ‘product’,and now my ViewContent is working… just checked at facebook itself:
content_ids: ["1453", "1454", "1455", "1456", "1457", "1458"] All content IDs match to one or more of your catalogs. content_type: product
so here its fixed for me (I think) ??
- This reply was modified 5 years, 11 months ago by caetanocop.
- This reply was modified 5 years, 11 months ago by caetanocop.
Hey @caetanocop,
Thanks for finding a solution.
Hopefully, the plugin author can verify and update the plugin too. We wouldn’t want to change the code every time the plugin update…
Hi guys,
thank you for your effort on look for a solution.
Anyway, a fix is scheduled for the new version of the plugin that I’ll release in a few days.So, please stay tuned for the new version and upgrade your plugin version as soon as it will be available. After upgrading, please refresh the feed and make sure that it is updated in your facebook Ad Account.
Then, the issue should be fixed.Thank you @antoscarface! Looking forward to it!
Hey,
The new version is out there, please upgrade and the issue should be solved!
Let me know, thanks! ??The new version did not solve the problem. I changed class-aepc-woocommerce-addon-support.php line 227 from “product_group” to “product” and it works.
Still having this problem. Workaround fixed it
It might be time to move on to a new plugin as it appears it’s not regularly maintained. “Facebook for Woocommerce” should do the trick.
Unfortunately not. I think every plugin has problems with variations.
But the workaraound shown up there fixes this issue for the moment. Thanks @caetanocopHi all,
sorry for the pain with this issue, it’s a pain for me as well!
I hope to have found now the solution.Firstly, I want to explain to you: the reason why I didn’t want to immediately change the
content_type
parameter fromproduct_group
toproduct
is that the variable product should be aproduct_group
for Facebook Pixel and Product Catalog. So, according to the facebook documentation, I want to leave the variable products as aproduct_group
.After this clarification, I fixed the issue by passing the variable product ID/SKU in
content_ids
instead of the array of variations ID/SKU, as now. This seems to be the trick.I did it and before to release a new version with this fix, I ask you to replace your version with this one that includes this fix: https://www.dropbox.com/s/5mky9s60zyg3vtl/pixel-caffeine.2.0.7.fix-variable-products.zip?dl=0. Just delete the one you have installed on your website (you won’t lose anything) and install this one or replace it via FTP.
No problems when you will upgrade the plugin to new official release because the fix in this URL has already the final fix.
Please, let me know if this solves the issue for you finally.
Nice to get some feedback!
The problem I see here is that if you add an article (e.g. Size S, colour WH) to the cart, it will be a product with one fixed ID. So I`m not sure, if your fix will change from group to single product for that case. With the content_type parameter changed from group to product, like shown above, it seems to work without any errors. View content shows all variations on a page, as soon as I take one specific article to the cart, the correct ID is shown at the add2cart event.Let me explain with an example: let’s assume we have the variable product B with variation C, D and E.
The product B has ID 10 and the variations have 11, 12 and 13 as IDs.Firstly, in the product catalog you should add the Product B with ID
10
and then you should also add the variations C, D and E with11
,12
and13
as ID and10
asitem_group_id
, because this is a Product Group, because the products C, D, E are identical products but have variations (see the documentation)So, let’s assume you see the variable product page: you should send a
ViewContent
withcontent_type: product_group
andcontent_ids: [10]
because it’s a product group, as explained before, and then, if you add a variation to the cart (let’s assume you add to cart the variation D) you should sendAddToCard
withcontent_type: product
andcontent_ids: [12]
.This is what the plugin will do with the fix. It’s the same as before, but the wrong thing was that we send
product_group
withcontent_ids: [11, 12, 13]
instead ofcontent_ids: [10]
, as it should be. Instead, I was able finally to replicate the real issue and now with the fix it’s solved for me.I hope everything is more clear to you.
Instead, if you don’t want treat the variable products as a Product Group, you can deactivate the
product_group
feature from the setting of Pixel Caffeine: go to General Settings -> Advanced settings box and check the optionDo not track variable products as product_group in the conversion events
. In this way, you won’t sendcontent_type: product_group
for variable products.Finally, please try the new fix and let me know ??
Thanks.
- The topic ‘Problem with product catalog (variable products)’ is closed to new replies.