Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
Is it possible to change the "Cart" title on the checkout progress bar and on the checkout cart page?
I can see that the cart item is added to the progress list in the commerce_checkout_progress.module on line 322 (function commerce_checkout_progress_get_items).
Is it possible to overwrite the title of that item? I would like it to be "My cart" instead of "Cart"...
I also want the checkout page to have that title... I think I can change this by using hook_page_alter()?
Any suggestions would be welcome! Thanks!
Comments
Comment #1
ursula00 CreditAttribution: ursula00 commentedJust add this to your settings.php file:
$conf['locale_custom_strings_en'][''] = array(
'Cart' => 'YourPreferredTerminology',
);
You could also list other 'Cart' variations.
Comment #2
nvahalik CreditAttribution: nvahalik at Centarro commentedYou can also modify the output of this module using the provided hook: