Home › Forums › WoodMart support forum › Having Issues with AJAX add to cart and a plugin
Having Issues with AJAX add to cart and a plugin
- This topic has 9 replies, 2 voices, and was last updated 1 year ago by Artem Temos.
-
AuthorPosts
-
November 27, 2023 at 5:13 pm #516000
conceptoriginalParticipantWhen i activate the plugin for our specific pricing AJAX add to cart does not work.
I have spoken to the support and they have told me the following…
Kindly note that we’ve observed and wish to bring to your attention that the issue seems to stem from the theme itself. To gain more clarity and resolution, we recommend reaching out to the theme developers directly. Kindly request their assistance in addressing the specific error occurring within the console.
Furthermore, we’ve introduced a code snippet within the theme’s JavaScript file for testing purposes exclusively. While implementing this code, we discovered its presence. The code added is located in ‘js/scripts/wc/addToCartAllTypes.min.js’:
0 < (a.notices && a.notices.indexOf(“error”) !== -1) ? e.append(a.notices, d.addClass(“not-added”))
We strongly advise contacting the theme developers to address the issue. Emphasize that making certain modifications within the theme codebase might provide a resolution, based on our preliminary attempts.
November 27, 2023 at 5:23 pm #516008
Artem TemosKeymasterHi,
Please, describe to us your problems in a bit more detail. Attach some screenshots and provide us with a list of steps on how to reproduce them on your website.
Thank you in advance.
November 27, 2023 at 5:25 pm #516013
conceptoriginalParticipantIf you add a product to the cart it doesnt update in the header unless you refresh
November 27, 2023 at 5:27 pm #516017
Artem TemosKeymasterPlease, provide us with your admin access. The password sent earlier seems to be wrong.
Kind Regards
November 27, 2023 at 5:28 pm #516018
conceptoriginalParticipantthanks below
November 27, 2023 at 5:37 pm #516022
Artem TemosKeymasterCould you please clarify what plugin do you have a conflict with?
November 27, 2023 at 5:38 pm #516023
conceptoriginalParticipantcustomer specific pricing for woocommerce
November 27, 2023 at 5:41 pm #516025
Artem TemosKeymasterThe problem is that the plugin adds some extra redirect after adding a product to cart https://gyazo.com/7183df3b7681740b13f3c30d401e5bfd
By redirecting the request it breaks the AJAX so this function doesn’t work as expected. The redirect should be removed or you can disable the AJAX add to cart option.Kind Regards
November 27, 2023 at 5:51 pm #516029
conceptoriginalParticipantthank you
November 27, 2023 at 6:10 pm #516042
Artem TemosKeymasterYou are welcome. Feel free to contact us if you have any further questions.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register