Home Forums WoodMart support forum About Product Detail Page

About Product Detail Page

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #432028

    gokhanmms
    Participant

    Hi,

    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.
    #432043

    Artem Temos
    Keymaster

    Hello,

    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

    #432045

    gokhanmms
    Participant

    Hi,

    We checked this way but it didn’t fix it.

    #432051

    Artem Temos
    Keymaster

    OK, let us check this from your end while plugins and child theme are turned off.

    Kind Regards

    #432056

    gokhanmms
    Participant

    Thank you, we look forward to hearing from you.

    #432067

    Artem Temos
    Keymaster

    Please, deactivate the plugins and child theme so we can take a look.

    Kind Regards

    #432069

    gokhanmms
    Participant

    But how will you check if I deactivate the WooCommerce plugin? I have sent the panel information, can you do whatever it takes?

    #432070

    Artem Temos
    Keymaster

    No, 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.

    #432073

    gokhanmms
    Participant

    Can you check again, please?

    #432095

    Artem Temos
    Keymaster

    We still see 20 plugins and child them active. Please, keep them temporarily turned off.

    Kind Regards

    #432097

    gokhanmms
    Participant

    Done, can you check again, please?

    #432101

    Artem Temos
    Keymaster

    Now it seems to work correctly, please, test it from your end.

    Kind Regards

    #432106

    gokhanmms
    Participant

    Can we use Child themes and plugins by activating them again?

    #432107

    Artem Temos
    Keymaster

    Yes, 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

Viewing 14 posts - 1 through 14 (of 14 total)