Menu Close

WooCommerce: Edit “Ship to a Different Address?” @ Checkout

default

The “Ship to a Different Address?” checkbox displays on the WooCommerce Checkout page and toggles the shipping form. That’s useful when Billing and Shipping addresses are different, so let’s say every B2C requires the double form.

However, the “Ship to a Different Address?” string may be confusing or may need further clarification, as not all customers are created equal. What about “I’d like to define a different shipping address” or “Ship to a different address than the Billing one“?

Either way, editing the string is super easy, so you can change it to whatever you like. Enjoy!

The snippet below allowed me to change “Ship to a different address?” to “Ship elsewhere?” in a matter of seconds. You can edit it to whatever you like.

PHP Snippet: Edit the “Ship to a Different Address?” Checkbox @ WooCommerce Checkout

/**
 * @snippet       Translate "Ship to a Different Address?" @ Checkout
 * @how-to        Get CustomizeWoo.com FREE
 * @author        Rodolfo Melogli
 * @compatible    WooCommerce 7
 * @donate $9     https://businessbloomer.com/bloomer-armada/
 */

add_filter( 'gettext', 'bbloomer_translate_shippingtodiffaddr', 9999, 3 );
   
function bbloomer_translate_shippingtodiffaddr( $translated, $untranslated, $domain ) {
   if ( ! is_admin() && 'woocommerce' === $domain ) {
      switch ( $untranslated ) {
         case 'Ship to a different address?':
            $translated = 'Ship elsewhere?';
            break;
      }
   }   
   return $translated;
}
View Source
Posted in WooCommerce Tips