Commerce Cart to Basket

Component ID

2268543

Component name

Commerce Cart to Basket

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

1410

Component created

Component changed

Component body

Changes all references to the "shopping cart" to refer instead to the "shopping basket" in Drupal Commerce. A common requirement for UK-based websites.

Americans tend to use "shopping cart" or "cart" for online shops.

In the UK we call the things with wheels "shopping trolleys", so "cart" doesn't make so much sense to a British person. So UK online shops tend to prefer "basket" (and, more rarely, "trolley" or "bag").

Methods used:

  • Adds string overrides for most strings. Plays nicely with String Overrides module.
  • Implements hook_menu_alter() to copy menu item for 'cart' to also work as 'basket'.
  • Implements hook_url_outbound_alter() to change all links pointing to 'cart' to point to 'basket'.