Posts

Showing posts with the label checkout

How to correctly add your message to the “Thank you” page? Woocommerce 3

Image
Clash Royale CLAN TAG #URR8PPP How to correctly add your message to the “Thank you” page? Woocommerce 3 Need add custom message after "Thank you. Your order has been received.". A variable has been added to my message. It contains the percentage of the total amount of the order. In general, I think that this is a working option, but if there are errors, please write the correct answer. add_filter('woocommerce_thankyou_order_received_text', 'woo_change_order_received_text', 10, 2 ); function woo_change_order_received_text( $str, $order ) { // Get order total $order_total = $order->get_total(); $percent = get_option( 'wc-custom-percent' ); // Percentage $order_saving = (float)($percent * $order_total / 100); // Bonus amount $new_str = $str . ' You participate in the bonus program, your bonus interest from this order is' . $order_saving . ' euros. <a href="#">Learn more about the bonus program.</a>...

Add a row in Woocommerce order edit pages after order total

Image
Clash Royale CLAN TAG #URR8PPP Add a row in Woocommerce order edit pages after order total I need to exchange two of the rows in my checkout-review-order-table (taxes and total price) - I want the taxes displayed above the total price and then I need an info text below the total price and in an additional row. It would be great if there was a possibilty to solve the problem in the functions.php Please let me know if you need any additional information. Thank you so much for helping! :) By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.