drupalubercart

Changing the QTY label in Uber Cart?


How do you change the QTY (quantity) label in UberCart (in Drupal) without actually hacking the core components? I want the label to be be months, instead of qty.


Solution

  • You could use the String Overrides module. Here is an excerpt from its project page:

    Provides a quick and easy way to replace any text on the site.

    Features:

    • Easily replace anything that's passed through t()
    • Locale support, allowing you to override strings in any language
    • Ability to import/export *.po files, for easy migration from the Locale module
    • Note that this is not a replacement to Locale as having thousands of overrides can cause more pain then benefit. Use this only if you need a few easy text changes.

    I once ran into a similar issue with Ubercart in another language (German), and we "solved" it by re-translating the string. The mentioned module should do the trick in your case.