Active
Project:
Commerce Coupon (D7)
Version:
7.x-1.0-beta6
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Jan 2013 at 15:31 UTC
Updated:
5 Jan 2015 at 06:05 UTC
Jump to comment: Most recent
Comments
Comment #1
skchan2 commentedId like to know this also, I want to change "Enter here your coupon code" to "Enter your coupon code here"
Comment #2
kruser commentedI was able to hook_form_alter to change this...
Comment #3
millionleaves commentedWould be handy if the ability to change (or remove) the instructions were exposed in the module configuration page, or perhaps in the 'Coupons' checkout panes configuration screen.
At the every least, could I suggest changing the hard-coded label to the grammatically more correct: "Enter your coupon code here".
UPDATE: confirmed that the method outlined in #2 works. I created a custom module including this function and was able to override the form label with that. I still have to open up a module file to make changes, but at least this is better than changing the commerce_coupon module code and having it overridden next time I upgrade the module.
Comment #4
leewillis77 commentedThere's an issue (With patch) here https://drupal.org/node/2112905#comment-7970437 that covers some of this.
Once this is installed, the strings should be translatable, which would mean you could change them using String Overrides module (http://drupal.org/project/string_override). It also changes the grammar of the string you identified.
Comment #5
sureshpotnuru commentedyes, correct leewillis77. but you finds module at https://www.drupal.org/project/stringoverrides. Thanks for save my day.