Change WooCommerce SKU text to another label

Woocommerce Sku Label.peg

You can change WooCommerce SKU text to another label using the gettext filter add_filter(‘gettext’, ‘translate_woocommerce’, 10, 3); /** * Change SKU Label * @link https://gist.github.com/dannyconnolly/da6f1a2d95dc826ccdcd * @since 1.0.0 */ function translate_woocommerce($translation, $text, $domain) { if ($domain == ‘woocommerce’) { switch ($text) { case ‘SKU’: $translation = ‘Catalogue No:’; break; case ‘SKU:’: $translation = ‘Catalogue No:’;…

Read More

Change ‘You may also like’ and ‘You may be interested in’ WooCommerce text

Change Woocommerce Text You May Be Intersted In

The text strings ‘You may also like’ and ‘You may be interested in’ in WooCommerce can be changed with the gettext filter…   add_filter( ‘gettext’, ‘bt_translate_like’ ); add_filter( ‘gettext’, ‘bt_translate_like_cart’ ); /** * @snippet Trsnslate “You may also like…” Text – WooCommerce * @how-to Watch tutorial @ https://businessbloomer.com/?p=19055 * @sourcecode https://businessbloomer.com/?p=595 * @author Rodolfo Melogli…

Read More

Changing the WooCommerce coupon text in cart and checkout pages

Woocommerce Change Coupon Code Text

Want to change the WooCommerce coupon text… there are a few areas that need to be tackled namely the cart and the checkout pages, WooCommerce has most of the filters needed and the gettext filter can finish off translating the text string. add_filter( ‘gettext’, ‘bt_rename_coupon_field_on_cart’, 10, 3 ); add_filter( ‘woocommerce_coupon_error’, ‘bt_rename_coupon_label’, 10, 3 ); add_filter(…

Read More