1

I am a front end developer trying to figure out how to override

app/code/core/Mage/XmlConnect/controllers/CartController.php

So I can change the coupon code error text, can anyone please guide me on how I would do this the correct way?

1

You can add a transltion CSV-file to your theme folder:

app/design/frontend/theme/package/locale/en_US/translate.csv

"Coupon code %s was applied.","Your customized string"

Or for a specific translation

"Mage_XmlConnect::Coupon code %s was applied.","Your customized string"

Note: replace en_US with the language code you need

1
  • You got me started in the right direction it was: "Mage_Checkout::Coupon code ""%s"" is not valid.","This promotion has expired." Thankyou bb!! :-)
    – Kara
    May 12 '17 at 16:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.