Home / Forums / WoodMart support forum / About Product Detail Page
Home › Forums › WoodMart support forum › About Product Detail Page
About Product Detail Page
- This topic has 13 replies, 2 voices, and was last updated 2 years, 11 months ago by
Artem Temos.
-
AuthorPosts
-
December 29, 2022 at 2:46 pm #432028
gokhanmmsParticipantHi,
We get this warning when the add to cart button is pressed in the product detail. There is no problem with the product listing pages. I’m sending the video with the screenshot and the error script code.
Video: https://drive.google.com/file/d/1HLG3hEMKK9f6VF5lxi-A0gmdELhjqR1U/view?usp=sharing
!function(r){woodmartThemeModule.addToCartAllTypes=function(){0!=woodmart_settings.ajax_add_to_cart&&(woodmartThemeModule.$body.on("submit","form.cart",function(a){var d,t=r(this),o=t.parents(".single-product-page");(o=0===o.length?t.parents(".product-quick-view"):o).hasClass("product-type-external")||o.hasClass("product-type-zakeke")||o.hasClass("product-type-gift-card")||void 0!==a.originalEvent&&r(a.originalEvent.submitter).hasClass("wd-buy-now-btn")||(a.preventDefault(),d=t.find(".single_add_to_cart_button"),o=t.serialize(),o+="&action=woodmart_ajax_add_to_cart",d.val()&&(o+="&add-to-cart="+d.val()),d.removeClass("added not-added"),d.addClass("loading"),woodmartThemeModule.$body.trigger("adding_to_cart",[d,o]),r.ajax({url:woodmart_settings.ajaxurl,data:o,method:"POST",success:function(a){var t,o,e;a&&(window.location.toString().replace("add-to-cart","added-to-cart"),a.error&&a.product_url?window.location=a.product_url:"yes"===woodmart_settings.cart_redirect_after_add?window.location=woodmart_settings.cart_url:(d.removeClass("loading"),t=a.fragments,o=a.cart_hash,t&&r.each(t,function(a){r(a).addClass("updating")}),t&&r.each(t,function(a,t){r(a).replaceWith(t)}),(e=r(".woocommerce-notices-wrapper")).empty(),0<a.notices.indexof adding="" to="" cart="" error="" .wd-buy-now-btn="" t="r(this).siblings(".single_add_to_cart_button");"undefined"!=typeof" wc_add_to_cart_variation_params="" />Attachments:
You must be logged in to view attached files.December 29, 2022 at 3:19 pm #432043
Artem TemosKeymasterHello,
Thank you so much for purchasing our theme and contacting our support center.
Could you please disable all plugins that are not related to our theme and switch to the parent theme temporarily so we can check it?
Thank you in advance
December 29, 2022 at 3:21 pm #432045
gokhanmmsParticipantHi,
We checked this way but it didn’t fix it.
December 29, 2022 at 3:41 pm #432051
Artem TemosKeymasterOK, let us check this from your end while plugins and child theme are turned off.
Kind Regards
December 29, 2022 at 3:44 pm #432056
gokhanmmsParticipantThank you, we look forward to hearing from you.
December 29, 2022 at 3:54 pm #432067
Artem TemosKeymasterPlease, deactivate the plugins and child theme so we can take a look.
Kind Regards
December 29, 2022 at 3:59 pm #432069
gokhanmmsParticipantBut how will you check if I deactivate the WooCommerce plugin? I have sent the panel information, can you do whatever it takes?
December 29, 2022 at 4:00 pm #432070
Artem TemosKeymasterNo, sorry, we didn’t mean to disable WooCommerce. You need to disable all plugins that are not related to our theme. So keep only WoodMart Core, Elementor/WPBakery, and WooCommerce.
Thank you.
December 29, 2022 at 4:05 pm #432073
gokhanmmsParticipantCan you check again, please?
December 29, 2022 at 4:56 pm #432095
Artem TemosKeymasterWe still see 20 plugins and child them active. Please, keep them temporarily turned off.
Kind Regards
December 29, 2022 at 5:10 pm #432097
gokhanmmsParticipantDone, can you check again, please?
December 29, 2022 at 5:22 pm #432101
Artem TemosKeymasterNow it seems to work correctly, please, test it from your end.
Kind Regards
December 29, 2022 at 5:40 pm #432106
gokhanmmsParticipantCan we use Child themes and plugins by activating them again?
December 29, 2022 at 5:41 pm #432107
Artem TemosKeymasterYes, now you can activate everything one by one and test this after each step to see what exactly causes this problem on your website.
Kind Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register