1267 views 26 March 2020 7
Changing the "Related Products" text in WooCommerce 4 requires a small piece of code. Add this into your theme functions.php file, changing "Your Custom Text Here" to whatever you want: add_filter( 'gettext', 'wtd_related_products_text', 20, 3 ); function wtd_related_products_text( $translated_text, $text, $domain ) { switch ( $translated_text ) { case 'Related products' : $translated_text = __( 'Your Custom Text Here', 'woocommerce' ); break; } return
1266 views 25 March 2020 1
Creating a discount or promotional coupon in WooCommerce is very simnple and built into the core system. With this flexible feature you can offer users money off vouchers by either a percentage or a fixed amount, or offer discounts or even free shipping. I also use this feature to create 99% discount coupons when I'm doing a quick checkout test on a live environment. To Create a New WooCommerce Coupon Navigate to WooCommerce > Coupons and select Add coupon Fill in the coupon
1911 views 24 March 2020 1
Ordering WooCoomerce products within the product catalogue (Shop, Category and tag pages) is quite straightforward. Navigate to Appearence > Customise Select WooCommerce Select Product catalogue In Default product sorting, select your order preferences, there are several options, most of which are self explanatory Default sorting (Custom ordering + name) Popularity (sales) Average rating Sort by most recent Sort by price (asc) Sort by price
1325 views 20 March 2020 1
Featured Products are a useful tool in WooCommerce for giving certain products additional visibility on your site. WooCommerce themes will often provide sections on the site (eg on the Home Page) for the display of Featured Products, and some will add a star or other indicator to let you know these products are of special interest. Marking a product as a featured product is very easy. From the WooCommerce Product Index Setting a product as featured from the WooCommerce Product
1199 views 19 March 2020 2
To remove the product featured image zoom effect in WooCommerce 3 at the following into your child theme: add_action( 'after_setup_theme', 'remove_product_image_zoom', 11 ); function remove_product_image_zoom() { remove_theme_support( 'wc-product-gallery-zoom'
2007 views 19 March 2020 2
WooCommerce keeps track of user sessions and baskets in the woocommerce_sessions table, and if these can quickly fill up your database, particularly if you are subject to bots visiting your website. The simple solution to this problem is to remove all sessions using the WooCommerce tool. Note that this will end the sessions and empty all carts, including users who are currently on the site. To expire all sessions, Navigate to WooCommerce > Status Select the 'Tools'
530 views 19 March 2020 1
To make WooCommerce Billing fields compulsory, the following code can be added to functions.php. Please note unless you are experienced with php, you shoul dproceed with caution as an incorrect installation can render your website inoperable. add_filter('woocommerce_billing_fields', 'wtd_custom_billing_fields', 1000, 1); function wtd_custom_billing_fields( $fields ) { $fields = true; $fields = true; return