torimoody
Forum Replies Created
-
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.
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.
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?
Forum: Plugins
In reply to: [TeamBy10Web] Remove more button and + buttonMy ultimate goal was to have the buttons smaller overall, but I don’t know how to edit the button dimensions. So removal seems to be another option.
I am using the circle theme and have tried both of the CSS edits shown in prior posts to remove the buttons. neither have worked for me. I am inserting them into Team WD > Options > Custom CSS.
Any help would be appreciated. The site is locally hosted so I don’t have a link to share.
Added information… It appears that ANY text that comes before the image tag results in added height to the page. Even if I just put plain text before the tag.
I tried to move the text above the image and it doubled the height and popped the text and the image down to the bottom. Any ideas on how to resolve this?