Add the following PHP code to your child theme functions.php file. [php] /* Move email form to top of Woocommerce checkout page */ add_filter( 'woocommerce_billing_fields', 'custom_woo_move_checkout_email_field', 10, 1 ); function...
WooCommerce Tips
Hide Coupon Code Area on WooCommerce Cart Page
Add the following PHP code to your child theme functions.php file. [php] // hide coupon field on the cart page function disable_coupon_field_on_cart( $enabled ) { if ( is_cart() ) { $enabled = false; } return $enabled; } add_filter(...
Show Product Thumbnail on WooCommerce Checkout Page
Add the following PHP code to your child theme functions.php file. [php] /** * Show product thumbnail on checkout page. * * @see {templates|woocommerce}/checkout/review-order.php */ add_filter( 'woocommerce_cart_item_name',...
How to delay WooCommerce Emails
You may find this helps speed up the checkout process by delaying the WooCommerce order emails from sending immediately at checkout. Add the following PHP code to your child theme functions.php file. [php] // delay woocommerce emails add_filter(...
Add the Add to Cart button to WooCommerce Shop and Category pages
Add the following to your child theme functions.php file. [php] // Add Add to Cart buttons to shop pages add_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 20 ); [/php]
eCommerce with WooCommerce and WordPress – What you need to know
Here are some thoughts, ideas and tips that may help you on the way to building your own eCommerce website with WooCommerce and WordPress. What does it cost? I guess it comes down to the level of game you want to play. If you want to do things on...
How to customize WooCommerce messages on cart and checkout pages
Add the following CSS in the Divi theme options area and customize however you like. [css] .woocommerce-error, .woocommerce .woocommerce-error, .woocommerce-info, .woocommerce .woocommerce-info, .woocommerce-message, .woocommerce...
How to change “Create an account” text in WooCommerce / WordPress
If you want to change the text that appears on things like the WooCommerce "create an account". You can use the same code and replace the variable "woocommerce" for other items. Try the simple code below and it may work for you. Add the function...
How to change the word “Sale” on the WooCommerce sale badge
Add the function below to your child theme functions.php file. [php] // change Sale to Save on the sale badge add_filter( 'woocommerce_sale_flash', 'wc_custom_replace_sale_text' ); function wc_custom_replace_sale_text( $html ) { return str_replace(...
How to uncheck Ship to a different address on checkout page
It's hard to believe this actually needs to be done. Add the function below to your child theme functions.php file. [php] // uncheck Ship to a different address? on checkout page add_filter( 'woocommerce_ship_to_different_address_checked',...
How to replace Howdy message in WordPress
I'm guessing someone in Texas had something to do with the word "Howdy" being the welcome prefix in WordPress. It's easy enough to change. Add the function below to your child theme functions.php file. [php] /* replacing Howdy with Hello */...
How to add search fields to WooCommerce orders page
You may find it useful to have additional search fields in the WooCommerce orders page in the WP admin area. Add the function below to your child theme functions.php file. [php] /* add search fields to woocommerce orders page Allowed search fields:...
How to prevent hidden WooCommerce products from showing up in WordPress search results
Add the function below to your child theme functions.php file. [php] /* Preventing Hidden WooCommerce products from showing up in WordPress search results */ if ( ! function_exists( 'gamma_search_query_fix' ) ){ function gamma_search_query_fix(...
How to move WooCommerce category description to bottom of page
For SEO reasons you should have good text on your WooCommerce category pages. But, you may want to display your products first. Add the function below to your child theme functions.php file. [php] // move category description to bottom of pages...
How to add Order Again button to WooCommerce My Account / Previous Orders page
Add the function below to your child theme functions.php file. [php] /** * Add order again button in my orders actions. * * @param array $actions * @param WC_Order $order * @return array */ function cs_add_order_again_to_my_orders_actions(...
How to remove product image rollover on WooCommerce product pages
Add the function below to your child theme functions.php file. [php] // removing the product image rollover function remove_product_zoom_support() { remove_theme_support( 'wc-product-gallery-zoom' ); } add_action( 'wp',...
How to add alt tags to WooCommerce product images
Add the function below to your child theme functions.php file. [php] // adding alt tags to product images add_filter('wp_get_attachment_image_attributes', 'change_attachement_image_attributes', 20, 2); function change_attachement_image_attributes(...
How to update WooCommerce order status to processing when an order is placed using PayPal
How to update WooCommerce order status to processing when an order is placed using PayPal. Add the following PHP code to your child theme functions.php file. [php] function update_wc_order_status($posted) { $order_id = isset($posted['invoice']) ?...
How to change the “Proceed to PayPal” button text on the WooCommerce checkout screen
The default PayPal buttons says "Proceed to PayPal". You may want to change this to something else like "Continue to Pay" or whatever you like. Add the following PHP code to your child theme functions.php file. [php] add_filter( 'gettext',...