Hello everyone.
I am trying to change the text "My Shipping information is the same as my Billing information".
I would like to shorten it a bit.

I have looked everywhere for the text and even used a tool called PowerGREP to scan all of my website files for that text and I can't find it.

Can someone point me in the right direction?

Thank you in advance!

Comments

JCJXXL created an issue. See original summary.

hiramanpatil’s picture

Hi JCJXXL,

You can change the text in - sites/all/modules/commerce/modules/customer/includes/commerce_customer.checkout_pane.inc file.

Find below code in this file and change it as per your requirement.

Line no 141.

'#title' => t('My %target is the same as my %source.', array('%target' => $target_profile_type['name'], '%source' => $source_profile_type['name'])),

Thanks

JCJXXL’s picture

@hiramanpatil
Thank you so much. It was driving me crazy. I really appreciate your help.
How did you find it?

hiramanpatil’s picture

I tried to find the text 'is the same as my' and I found it in commerce_customer.checkout_pane.inc file. :)

fehin’s picture

Is this a good idea to change the text in the code though?

I have similar case but different.
I changed the title of the field "Shipping Information" to "Delivery Information" but the text still says "My Shipping information is the same as my Billing information". I feel it should say "My Delivery information is the same as my Billing information" automatically since the title of the field has been changed.

hiramanpatil’s picture

Can you please post your updated code here? so that I can review it.

rszrama’s picture

Status: Active » Closed (works as designed)

The correct thing to do is to translate that string to whatever you want it to be. You can do this in your language files if you're translating all of Drupal or use the String Overrides module for this specific string: https://www.drupal.org/project/stringoverrides