I use woocommerce to create a store in wordpress. I changed the text of the payment data to the delivery details and vice versa through the following code
function wc_custom_addresses_labels( $translated_text, $text, $domain )
{
switch ( $translated_text )
{
case 'Billing Address' :
$translated_text = __( 'Shipping Address', 'woocommerce' );
break;
case 'Billing Details' :
$translated_text = __( 'Shipping Detail', 'woocommerce' );
break;
case 'Ship to a different address?' :
$translated_text = __( 'Bill to a different address?', 'woocommerce' );
break;
case 'Shipping Details' :
$translated_text = __( 'Billing Detail', 'woocommerce' );
break;
}
return $translated_text;
}
add_filter( 'gettext', 'wc_custom_addresses_labels', 20, 3 );
But after that, on the page received when ordering,
The invoice details and delivery information have the same text and delivery address you can check here - http://screencast.com/t/BKOYuAg48W
source
share