Home Forums WoodMart support forum Guest Checkout Payment Fails with New Card – WoodMart Theme Conflict

Guest Checkout Payment Fails with New Card – WoodMart Theme Conflict

Viewing 19 posts - 1 through 19 (of 19 total)
  • Author
    Posts
  • #670661

    Taf Baig
    Participant

    Message:
    Hello WoodMart Support Team,

    I’m experiencing a serious problem with the checkout process when using the WoodMart theme.

    Problem Summary:
    When a guest (not logged-in) user tries to pay using a new credit card, the payment fails.

    The error message shown is:
    “An error occurred, please try again or try an alternate form of payment.”

    If the user is logged in, the payment goes through normally.

    If I switch to a different theme (like Storefront), the issue is completely resolved — guest checkout with a new card works perfectly.

    I tested the same issue with multiple PHP versions, and the problem still occurs.

    Additional Issue with Latest PHP Version:
    After updating to the latest PHP version, the checkout behaves even worse:

    When users enter their card info, the payment panel gets stuck loading and never finishes.

    This seems like a JavaScript or AJAX issue introduced by a theme incompatibility with the updated PHP environment.

    My Setup:
    WordPress: Last version

    WooCommerce: Last version

    WoodMart: v8.2.5

    Payment Gateway: Autorize .net

    PHP Version: Tested on latest (issue persists)

    Screenshot attached showing the stuck payment panel when trying to check out as guest.
    This issue is critical as it prevents new customers from completing their orders. Please help me identify and resolve the conflict between WoodMart and the payment gateway during guest checkout.

    Thank you!

    Best regards,

    #670662

    Taf Baig
    Participant

    Here is screenshot

    Attachments:
    You must be logged in to view attached files.
    #670684

    Luke Nielsen
    Keymaster

    Hello,

    Send me access to the admin panel and send me a test credit card so I can replicate that issue on your end and investigate. Also, confirm the permission for plugins deactivation and switching to the parent/default theme.

    Kind Regards

    #670734

    Taf Baig
    Participant

    Thank you for your follow-up.

    Attachments:
    You must be logged in to view attached files.
    #670736

    Taf Baig
    Participant

    Before proceeding with test payments, please go to the website and install the plugin File Manager so you can access the functions . php file.

    Inside that file, please remove the following function, which we added to force customers to log in before checking out: (check attach file)

    We added this function earlier to require login before checkout, which helps calculate shipping based on customer history. However, it interferes with guest checkout and might be related to the current issue.

    ✅ Next Steps
    After removing that function, go to the Checkout page as a guest (not logged in).

    Open the browser’s page source.

    Search for Accept. js. and maybe you will see error there

    Testing
    I cannot provide a test credit card, but you can search for a product priced at $0.01 and try checking out with it to simulate the payment process.

    If you’re able to fix the Accept.js issue on the guest checkout page, please let me know — I’ll test checkout again immediately.

    ⚠️ Important Notes:

    Please do not deactivate plugins for too long — real customers are actively placing orders on the site.

    If you need to deactivate anything, kindly do it as quickly as possible or during low-traffic times.

    Let me know if you need admin access or a staging environment.

    Kind Regards,
    Thank you

    #670737

    Taf Baig
    Participant

    You can install file manager there using a plugin
    folder of website is:
    public_html/magicwandcompany.com

    also you will see function that you need remove on function so you can go checkout without foce you to sign in

    Attachments:
    You must be logged in to view attached files.
    #670835

    Luke Nielsen
    Keymaster

    Please create a staging environment and send the FTP access so we can investigate it more deeply.

    Kind Regards

    #670893

    Taf Baig
    Participant

    Below I will provide you with the FTP login details that you can pass on to your web developer:

    #670894

    Taf Baig
    Participant

    Please create a staging environment , do you mean make a copy website,
    You can make a copy of website on beta subdomain: http://beta.magicwandcompany.com/

    #670923

    Luke Nielsen
    Keymaster

    Hello,

    We have disabled the child theme and the issue is gone. Please recheck that issue but without the Child theme, activate the parent theme and check how it works.

    Kind Regards

    #670966

    Taf Baig
    Participant

    Hi still same issue, when I try pay without sign in, I see same message as you see in screenshot attach file, I think the problem you can see it when you click view source code of checkout
    you will see accept.js as you see in attach file there

    Please read file Function file in attach file too

    Attachments:
    You must be logged in to view attached files.
    #670969

    Taf Baig
    Participant

    See this note too please

    Attachments:
    You must be logged in to view attached files.
    #670974

    Taf Baig
    Participant

    See differnt between screenshot when you sign in after going checkout the the &# 039; defer is NOT showing beside accept.js but when if go to checkout without sign in the &# 039; is SHOWNING again with accept.js and this is problem, solution , Fix all &# 039; defer and remove # 039; from accept.js
    Thank you

    Attachments:
    You must be logged in to view attached files.
    #670979

    Taf Baig
    Participant

    Find out what’s injecting the ' inside accept.js and remove that, and go checkout as guest without sign in and check source code of checkout and see if you still see this code &#039, this is how you know you solved issue or not

    #671058

    Luke Nielsen
    Keymaster

    We are checking here – when the child theme is enabled, there is a URL problem https://monosnap.com/file/kBYKlAaPP74vl66m8yHs5jY434Go04 but when we disable your child theme, the problem disappears https://monosnap.com/file/WusjqTy7T7GQaLSuJH7xLMaBu60YfR and accordingly, this problem is located in the child theme, and unfortunately our support does not cover troubleshooting problems in the child theme.

    Kind Regards

    #671231

    Taf Baig
    Participant

    Hi,

    Thank you for your response.

    We want to clarify that the main issue occurs only when the Woodmart theme (child or parent) is active — not with other themes. This includes the critical payment loading issue on the checkout page, which directly affects our business.

    We have extended support specifically to get assistance with this, and we expected help identifying what within the Woodmart setup (including the child theme if needed) is causing this major issue.

    If this is something your team cannot solve, please let us know clearly so we can look for another solution. But we hope, since it’s directly related to the Woodmart theme and its compatibility, that your team can help fix this.

    We appreciate your urgent support.

    Kind regards,
    Thank you!

    #671266

    Luke Nielsen
    Keymaster

    As I mentioned above, the issue is in the Child theme, which means that you have the 3rd-party custom code in the Child theme that causes that issue. You can remove all 3rd party code in the Child theme and then the issue will be gone.

    Kind Regards

    #671566

    Taf Baig
    Participant

    how I can remove all 3rd party code in the Child theme

    #671569

    Luke Nielsen
    Keymaster

    Hello,

    Here is an example of the empty child theme – https://take.ms/ds0M4 -> https://take.ms/HRhLZ

    You can use the File Manager plugin to remove third-party files/code.

    Kind Regards

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