Hi guys,
I am using OC 3.0.3.8 with Journal3 theme (I know it's not supported here) but I have a small small thing I want to modify and that is to make the coupon codes uppercase everywhere on frontpage. Can anyone help me with this small thing? Thank you!
LE: Also everywhere in backend if possible!
https://prnt.sc/LhmWqBw72uBj
I am using OC 3.0.3.8 with Journal3 theme (I know it's not supported here) but I have a small small thing I want to modify and that is to make the coupon codes uppercase everywhere on frontpage. Can anyone help me with this small thing? Thank you!
LE: Also everywhere in backend if possible!
https://prnt.sc/LhmWqBw72uBj
We can not help because we do not have the css class for the coupon code "everywhere" as there is no "everywhere" in Opencart.
However to answer your question so you can do it yourself this would be the way to do it in the shopping cart of checkout
However to answer your question so you can do it yourself this would be the way to do it in the shopping cart of checkout
Code: Select all
#input-coupon {
text-transform:uppercase;
}
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
Thanks for the suggestion but that won't do the job, I think I need to modify somewhere in a variable in controller or model, not sure because I can't seem to find the one responsible...by mona wrote: ↑Thu Aug 17, 2023 1:44 amWe can not help because we do not have the css class for the coupon code "everywhere" as there is no "everywhere" in Opencart.
However to answer your question so you can do it yourself this would be the way to do it in the shopping cart of checkout
Code: Select all
#input-coupon { text-transform:uppercase; }
Coupon code is generated by ___?
ae4add4f
ae4add4f
View all extensions | Request custom work | Pricing | Contact Me
In total/coupon controller add mb_uppercase() function where it assigns submitted coupon to session variable. Might have to do the same for theme's controller if it has its own.
Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com
I’m not that experienced with PHP. Can you please help me with the code?
Thanks!
Default is not case sensitive so the cosmetic solution works fine.katalin wrote: ↑Thu Aug 17, 2023 6:06 amThanks for the suggestion but that won't do the job, I think I need to modify somewhere in a variable in controller or model, not sure because I can't seem to find the one responsible...by mona wrote: ↑Thu Aug 17, 2023 1:44 amWe can not help because we do not have the css class for the coupon code "everywhere" as there is no "everywhere" in Opencart.
However to answer your question so you can do it yourself this would be the way to do it in the shopping cart of checkout
Code: Select all
#input-coupon { text-transform:uppercase; }
Have you tried it? I just tested it and it works on 3.0.3.8 maintenance default theme
Real code aaa222
Code entered aAa222
Code appears to customer end entry AAA222
Code appears in cart aAa222 - which can also be changed via css for cosmetic reasons
code accepted and discount applied to cart
DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.
https://www.youtube.com/watch?v=zXIxDoCRc84
I tried it but it only applies to the input, not under cart subtotal. I would like to see it uppercase there also and also in admin view order if possible.by mona wrote: ↑Thu Aug 17, 2023 9:43 pmDefault is not case sensitive so the cosmetic solution works fine.katalin wrote: ↑Thu Aug 17, 2023 6:06 amThanks for the suggestion but that won't do the job, I think I need to modify somewhere in a variable in controller or model, not sure because I can't seem to find the one responsible...by mona wrote: ↑Thu Aug 17, 2023 1:44 amWe can not help because we do not have the css class for the coupon code "everywhere" as there is no "everywhere" in Opencart.
However to answer your question so you can do it yourself this would be the way to do it in the shopping cart of checkout
Code: Select all
#input-coupon { text-transform:uppercase; }
Have you tried it? I just tested it and it works on 3.0.3.8 maintenance default theme
Real code aaa222
Code entered aAa222
Code appears to customer end entry AAA222
Code appears in cart aAa222 - which can also be changed via css for cosmetic reasons
code accepted and discount applied to cart
Thanks!
How can I make it uppercase in cart also?by mona wrote: ↑Thu Aug 17, 2023 9:43 pmDefault is not case sensitive so the cosmetic solution works fine.katalin wrote: ↑Thu Aug 17, 2023 6:06 amThanks for the suggestion but that won't do the job, I think I need to modify somewhere in a variable in controller or model, not sure because I can't seem to find the one responsible...by mona wrote: ↑Thu Aug 17, 2023 1:44 amWe can not help because we do not have the css class for the coupon code "everywhere" as there is no "everywhere" in Opencart.
However to answer your question so you can do it yourself this would be the way to do it in the shopping cart of checkout
Code: Select all
#input-coupon { text-transform:uppercase; }
Have you tried it? I just tested it and it works on 3.0.3.8 maintenance default theme
Real code aaa222
Code entered aAa222
Code appears to customer end entry AAA222
Code appears in cart aAa222 - which can also be changed via css for cosmetic reasons
code accepted and discount applied to cart
Can you please answear to my last post?by mona wrote: ↑Thu Aug 17, 2023 1:44 amWe can not help because we do not have the css class for the coupon code "everywhere" as there is no "everywhere" in Opencart.
However to answer your question so you can do it yourself this would be the way to do it in the shopping cart of checkout
Code: Select all
#input-coupon { text-transform:uppercase; }
Who is online
Users browsing this forum: No registered users and 35 guests