Home › Forums › WoodMart support forum › AJAX Add to cart
AJAX Add to cart
- This topic has 5 replies, 2 voices, and was last updated 4 years ago by Artem Temos.
-
AuthorPosts
-
January 19, 2021 at 6:19 pm #259808
AchkanParticipantHi,
I’ve installed the facebook pixel
But when I use the AJAX add to cart button the tracking datas are not OK with facebook.And when I deactivate the Ajax add to cart option, the action after add to cart isnt OK. The cart widget is not displayed.
How can I fix this issue please ?
Can I fix the pixel tracking infos with AJAX add to cart ?
Or Can I fix the cart widget display after add to cart action ?Thank for your help
January 20, 2021 at 7:28 am #259946
Artem TemosKeymasterHello,
It looks like this plugin works with standard WooCommerce AJAX add to cart action and doesn’t handle custom AJAX requests. Sorry, but we don’t have a fix for this. You might contact plugin’s developers for help on this matter. If there is anything we can implement in our theme to fix this, we would be glad to help you in resolving this problem.
Kind Regards
January 21, 2021 at 3:48 pm #260365
AchkanParticipantHello,
It’s a woocommerce native plugin
I’ve asked them, and they told me that this issue is not normal
Besides, they’ve seen that add to cart from Page List (archives pages) is OK
and it seems to use a similar functionSo can you please tell me how to fix it please ?
Thanks
January 22, 2021 at 7:08 am #260515
Artem TemosKeymasterHi,
The product list has a different AJAX add to cart function. By default, there is no AJAX add to cart function on the single product page. It is our theme’s custom function. So if you want to make it work as it should with other themes, then you need to disable AJAX add to cart on the single product page. Or ask plugin’s developers for some instruction about how to add their tracking code to custom AJAX functions.
Kind Regards
January 22, 2021 at 7:12 am #260519
AchkanParticipantHi,
Ok
But is it possible to disable AJAX add to cart and keep the widget cart functional ?Thanks
January 22, 2021 at 7:32 am #260527
Artem TemosKeymasterHello,
Unfortunately, it is not possible since it works with JS and AJAX functions only. When you use standard WooCommerce add to cart, it simply reloads the page without any JS actions.
Kind Regards
-
AuthorPosts
Tagged: add to cart, AJAX, facebook
- You must be logged in to create new topics. Login / Register