• Resolved torimoody

    (@torimoody)


    Visitors to this Nonprofit site that try to donate using WooCommerce PayPal Checkout are getting a false message” We were unable to process your payment, please try again” and then seconds later they get a Payment Successful window confirming that the payment processed. I have confirmed with PayPal that the payments are indeed processing correctly. The issue is within WordPress or WooCommerce. I have tested on several browsers and from different locations, and different users. Each time we receive the brief message about unable to process the payment moments before it processes successfully. Does anyone have any idea how to approach this solution?

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 18 total)
  • Hi @torimoody

    This erroneous notification seems to be getting triggered due to a conflict somewhere.

    Do you remember making any changes before the issue started such as updating or installing any plugin(s)?

    Please temporarily switch your theme back to Storefront and disable all plugins except for WooCommerce to see if that fixes the behavior.

    Let us know how it goes.

    Thread Starter torimoody

    (@torimoody)

    The only change I made was to update the Divi Theme to the most current version to enable the WooCommerce Divi Modules to appear in the Divi Builder Module options.

    I cannot switch the theme away from DIVI. This is a LIVE site that is actively receiving donations. Maybe I can create a staging copy to work with for testing purposes?

    Thread Starter torimoody

    (@torimoody)

    I wonder if there is a way to just edit the message “your order failed to process” and have it say “please wait while your order is being processed”. This would work because it takes about 5-10 seconds before the message for “Order Successfully Processed” appears automatically.

    Thread Starter torimoody

    (@torimoody)

    I was able to solve my problem by editing the Woocommerce PHP file that produces the error. The best way to adjust the text on the page, including the error messages, would be to look into this file:

    YourWPFolder//wp-content/plugins/woocommerce/includes/class-wc-checkout.php

    When you open that file for editing you will see the message at:

    /**
    	 * Process the checkout after the confirm order button is pressed.
    	 *
    	 * @throws Exception When validation fails.
    	 */
    	public function process_checkout() {
    		try {
    			$nonce_value = wc_get_var( $_REQUEST['woocommerce-process-checkout-nonce'], wc_get_var( $_REQUEST['_wpnonce'], '' ) ); // phpcs:ignore
    
    			if ( empty( $nonce_value ) || ! wp_verify_nonce( $nonce_value, 'woocommerce-process_checkout' ) ) {
    				WC()->session->set( 'refresh_totals', true );
    				throw new Exception( __( 'We were unable to process your order, please try again.', 'woocommerce' ) );
    			}

    All I had to do was to edit that message and I was good to go. This process is universal and can be applied to every text and error on WooCommerce.

    I ran a test afterward with an incorrect credit card number just to see if it would alert the user to an issue with processing the order, and it did, it worked correctly, so the function of the cart still works great.

    Glad to hear it πŸ™‚ thanks for the information, this is helpful.

    I’ll mark this thread as resolved now. If you have any further questions, I recommend creating a new thread.

    I’m getting the same issue when using Divi’s new Woo Modules

    Hi there,

    I understand, since each case is unique, we recommend creating a new thread for your inquiry, that way we can assist you much better.

    Thanks.

    Are we able to open this thread back up? I don’t believe it was resolved, just a workaround found.

    Hello @samlee1985r, @markaruf

    Please be sure to create your own thread for your issue – https://wordpress.org/support/plugin/woocommerce/#new-topic-0.

    We want to make sure that every user’s issues receive their own thread with proper attention.

    * Frequently Asked Questions.

    Thanks πŸ™‚

    • This reply was modified 2 years, 3 months ago by Igor H.

    I’ve confirmed with Divi that this is indeed a known bug that they are working on. No fix yet. They suggest to go back to the woocommerce_checkout shortcode instead of the Divi woocommerce modules for the checkout page.

    I also thought of changing the message. If one goes that route, it’s probably more advisable to use something like the Say What or Loco Translate plugins than to alter woocommerce plugin code.

    Hello there,

    Thanks for sharing this information.

    Since this forum is created for WooCommerce Core only, and this is related to Divi, I recommend reaching out to the Divi Support Team directly at: https://www.elegantthemes.com/contact/.

    Thanks.

    I DO have a ticket open with them directly – that’s how I got the information that it’s a current bug being worked on. It is, however, a bug that is specifically between Divi and WooCommerce and this thread was about that specific bug so I thought it pertinent to add to this discussion. The OP mistakenly thought it was an issue with WooCommerce. For me, I mistakenly thought it was a problem with Stripe. I just wanted to let folks know that it’s not an issue with WooCommerce (or Stripe) but Divi. Thanks.

    • This reply was modified 2 years, 3 months ago by dleigh.
    • This reply was modified 2 years, 3 months ago by dleigh.

    Hi @dleigh

    Thanks for letting us know.

    Please watch out for updates from the Divi team.

    Cheers

    Hi, @dleigh, would you please post a link here or a ticket number so we can follow up on divi’s side for this issue? Thanks!!

    Unfortunately the tech support at Elegant Themes (Divi) doesn’t work exactly that way. One opens the ticket via chat and then wait for their response via email. The conversation goes on like that but there is not a public repository of bugs/tickets/issues that can be searched or monitored. Here’s the dialog for this issue starting with their response to my initial request for help:

    ET

    Sorry to hear this trouble. This is a known bug. Our team is aware of it. They are investigating the issue and hopefully, it would be fixed in future theme versions. Unfortunately, there is no ETA on a solution that I can provide at this time. However, I can assure you that issues are addressed as quickly as possible based on our development team’s current workload and the severity of the case compared to other open problems’ seriousness.

    You can stick to the Woocommerce Shortcodes method until we fix the issue permanently.

    Thanks for your understanding.

    Me

    Ok – that helps to know that it’s a known issue. Is there a way to be notified when the fix has been released? Thanks!

    ET

    We don’t send Emails but once we release a new theme version, you would get a notification in your Dashboard. You can click on update log file to see which issues are fixed in this update and then update your theme.

    Me

    It would be nice if somewhere ET kept a note of who was interested by a certain bug report. Obviously lots of software projects provide this sort of tracking. As a developer, I monitor a couple dozen sites and knowing when a particular issue is purported to be fixed helps as I communicate with clients. Something to pass on as a desire from your clients.

    ET

    I can understand that. However, our bugs repository is private. You can ping us here and we would check and report this bug to our dev team.

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Woocommerce: “We were unable to process your order, please try again”’ is closed to new replies.