[Skip to main content](#vessel-content)

#   Is it a bug?

##

- **[watashi](/forum/user/8585-watashi "View watashi's Profile")**
- [![watashi's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8585-watashi "View watashi's Profile") Topic Author
- [ Offline](/forum/user/8585-watashi)

Less More

- Posts: 120
- Thank you received: 1
-
-
-

14 years 2 months ago [\#62281](#62281) by [watashi](/forum/user/8585-watashi "View watashi's Profile")  *[Is it a bug?](/forum/3-bug-report/62281-is-it-a-bug#62281 "Hi All,  Can you see the below attached screenshot? When I enter incorrect coupon code, this message appears: &quot;COUPON&#95;NOT&#95;VALID&quot; However, the value for this string is clearly defined in language file (this is also seen from screenshot).  When I delete a coupon, translation of the message &quot;Coupon Deleted&quot; appears correctly.  Can you tell me how to solve this issue?")* was created by *[watashi](/forum/user/8585-watashi "View watashi's Profile")*

Hi All,

Can you see the below attached screenshot?
When I enter incorrect coupon code, this message appears: "COUPON_NOT_VALID"
However, the value for this string is clearly defined in language file (this is also seen from screenshot).

When I delete a coupon, translation of the message "Coupon Deleted" appears correctly.

Can you tell me how to solve this issue?

[ ![ss.png](/forum/attachment/5389) ](/forum/attachment/5389 "ss.png")

- [ ![ss.png](/forum/attachment/5389) ](/forum/attachment/5389 "ss.png") [ ](/forum/attachment/5389?download=1 "ss.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC82MjI4MS1pcy1pdC1hLWJ1Zz90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

14 years 2 months ago [\#62315](#62315) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Is it a bug?](/forum/3-bug-report/62281-is-it-a-bug#62315 "Hi All,  Can you see the below attached screenshot? When I enter incorrect coupon code, this message appears: &quot;COUPON&#95;NOT&#95;VALID&quot; However, the value for this string is clearly defined in language file (this is also seen from screenshot).  When I delete a coupon, translation of the message &quot;Coupon Deleted&quot; appears correctly.  Can you tell me how to solve this issue?")*

Hi watashi,

The translation has the good syntax, I can't reproduce the bug on my end.
Please check if the code for the translation in \administrator\components\com_hikashop\classes\discount.php is correct, it must be like
: Code:

$error_message = JText::_('COUPON_NOT_VALID');

Maybe try to clear the cache.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC82MjI4MS1pcy1pdC1hLWJ1Zz90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14281
-
-

14 years 2 months ago [\#62404](#62404) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Is it a bug?](/forum/3-bug-report/62281-is-it-a-bug#62404 "Hi All,  Can you see the below attached screenshot? When I enter incorrect coupon code, this message appears: &quot;COUPON&#95;NOT&#95;VALID&quot; However, the value for this string is clearly defined in language file (this is also seen from screenshot).  When I delete a coupon, translation of the message &quot;Coupon Deleted&quot; appears correctly.  Can you tell me how to solve this issue?")*

You should try to turn on the debug language option of the joomla configuration. At the bottom of each pages, it will list all the language files loaded and will tell you which one have an error in them and on which line.

That should help you find the issue with the modification.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC82MjI4MS1pcy1pdC1hLWJ1Zz90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[watashi](/forum/user/8585-watashi "View watashi's Profile")**
- [![watashi's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8585-watashi "View watashi's Profile") Topic Author
- [ Offline](/forum/user/8585-watashi)

Less More

- Posts: 120
- Thank you received: 1
-
-
-

14 years 2 months ago [\#62474](#62474) by [watashi](/forum/user/8585-watashi "View watashi's Profile")  Replied by *[watashi](/forum/user/8585-watashi "View watashi's Profile")* on topic *[Re: Is it a bug?](/forum/3-bug-report/62281-is-it-a-bug#62474 "Hi All,  Can you see the below attached screenshot? When I enter incorrect coupon code, this message appears: &quot;COUPON&#95;NOT&#95;VALID&quot; However, the value for this string is clearly defined in language file (this is also seen from screenshot).  When I delete a coupon, translation of the message &quot;Coupon Deleted&quot; appears correctly.  Can you tell me how to solve this issue?")*

The code in discount.php seems correct: Code:

$error_message = JText::_('COUPON_NOT_VALID');

After I switched on Language Debug mode, the following errors occured, which seems to have nothing to do with HikaShop: Code:

JROOT/templates/rt_voxel/language/en-GB/en-GB.tpl_rt_voxel.ini имеются ошибки в строках 138, 172, 173, 183 JROOT/language/en-GB/en-GB.mod_roknavmenu.ini имеются ошибки в строках 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13

Can it be the cause? Unfortunately, I can not identify what is wrong. For example, line 138 in tpl_rt_voxel.ini says: Code:

SIDEMENU_TITLE=Side Menu Title

It seems the reason of error are missing quote brackets. But how it can influence to our coupon_not_valid issue?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC82MjI4MS1pcy1pdC1hLWJ1Zz90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[watashi](/forum/user/8585-watashi "View watashi's Profile")**
- [![watashi's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8585-watashi "View watashi's Profile") Topic Author
- [ Offline](/forum/user/8585-watashi)

Less More

- Posts: 120
- Thank you received: 1
-
-
-

14 years 2 months ago [\#62486](#62486) by [watashi](/forum/user/8585-watashi "View watashi's Profile")  Replied by *[watashi](/forum/user/8585-watashi "View watashi's Profile")* on topic *[Re: Is it a bug?](/forum/3-bug-report/62281-is-it-a-bug#62486 "Hi All,  Can you see the below attached screenshot? When I enter incorrect coupon code, this message appears: &quot;COUPON&#95;NOT&#95;VALID&quot; However, the value for this string is clearly defined in language file (this is also seen from screenshot).  When I delete a coupon, translation of the message &quot;Coupon Deleted&quot; appears correctly.  Can you tell me how to solve this issue?")*

Just FYI,
I have also downloaded a fresh translation file from backend by pressing button "Load the latest version from our server" in Hikashop's language panel.
I have removed all language overrides and saved this virgin file.
This did not help.

I also have AwoCoupon Pro installed. Can it be the cause? It has inserted the following code in discount.php file: Code:

\# awocoupon_code START =============================================================== $do=true; JPluginHelper::importPlugin( 'hikashop' ); $dispatcher =&amp; JDispatcher::getInstance(); $item = $dispatcher-&gt;trigger( 'onBeforeCouponLoad', array( &amp;$coupon, &amp; $do) ); if(!$do) return current($item); # awocoupon_code END =================================================================

In debug mode I have following files, which were not loaded:
Code:

**Не загружен** : JROOT/language/ru-RU/ru-RU.mod_hikashop_cart.ini **Не загружен** : JROOT/modules/mod_hikashop_cart/language/ru-RU/ru-RU.mod_hikashop_cart.ini **Не загружен** : JROOT/language/en-GB/en-GB.mod_hikashop_cart.ini **Не загружен** : JROOT/modules/mod_hikashop_cart/language/en-GB/en-GB.mod_hikashop_cart.ini

I have following strings which are detected as "not translated" when Language Debug mode is ON:
Code:

\# JROOT/libraries/joomla/application/component/view.php DISPLAY_THE_CART="THE CART" PRICE_BEGINNING_0="BEGINNING 0" PRICE_ENDING_0="ENDING 0"

I have also made a language override for COUPON_NOT_VALID, which did not work for me as well..

I have cleared browser's cash. I have also tried to see the page from another browser on another PC under different OS.

What else can I try? Any idea?...

sd

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC82MjI4MS1pcy1pdC1hLWJ1Zz90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

14 years 2 months ago [\#62520](#62520) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Is it a bug?](/forum/3-bug-report/62281-is-it-a-bug#62520 "Hi All,  Can you see the below attached screenshot? When I enter incorrect coupon code, this message appears: &quot;COUPON&#95;NOT&#95;VALID&quot; However, the value for this string is clearly defined in language file (this is also seen from screenshot).  When I delete a coupon, translation of the message &quot;Coupon Deleted&quot; appears correctly.  Can you tell me how to solve this issue?")*

Hi watashi,

Maybe AwoCoupon got the same text to translate than HikaShop, try to change the code in discount.php from COUPON_NOT_VALID to HIKA_COUPON_NOT_VALID
And change it too in the translation file.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC82MjI4MS1pcy1pdC1hLWJ1Zz90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[watashi](/forum/user/8585-watashi "View watashi's Profile")**
- [![watashi's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8585-watashi "View watashi's Profile") Topic Author
- [ Offline](/forum/user/8585-watashi)

Less More

- Posts: 120
- Thank you received: 1
-
-
-

14 years 2 months ago [\#62523](#62523) by [watashi](/forum/user/8585-watashi "View watashi's Profile")  Replied by *[watashi](/forum/user/8585-watashi "View watashi's Profile")* on topic *[Re: Is it a bug?](/forum/3-bug-report/62281-is-it-a-bug#62523 "Hi All,  Can you see the below attached screenshot? When I enter incorrect coupon code, this message appears: &quot;COUPON&#95;NOT&#95;VALID&quot; However, the value for this string is clearly defined in language file (this is also seen from screenshot).  When I delete a coupon, translation of the message &quot;Coupon Deleted&quot; appears correctly.  Can you tell me how to solve this issue?")*

Thanks for advice. I have replaced it as per your advice in both php and language files.
However, I still get the same message COUPON_NOT_VALID.
In such a case I understand that it is generated not by Hikashop, but by AwoCoupon.
I have contacted AwoCoupon team and will wait for their reply.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC82MjI4MS1pcy1pdC1hLWJ1Zz90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[watashi](/forum/user/8585-watashi "View watashi's Profile")**
- [![watashi's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8585-watashi "View watashi's Profile") Topic Author
- [ Offline](/forum/user/8585-watashi)

Less More

- Posts: 120
- Thank you received: 1
-
-
-

14 years 2 months ago [\#62527](#62527) by [watashi](/forum/user/8585-watashi "View watashi's Profile")  Replied by *[watashi](/forum/user/8585-watashi "View watashi's Profile")* on topic *[Re: Is it a bug?](/forum/3-bug-report/62281-is-it-a-bug#62527 "Hi All,  Can you see the below attached screenshot? When I enter incorrect coupon code, this message appears: &quot;COUPON&#95;NOT&#95;VALID&quot; However, the value for this string is clearly defined in language file (this is also seen from screenshot).  When I delete a coupon, translation of the message &quot;Coupon Deleted&quot; appears correctly.  Can you tell me how to solve this issue?")*

This solution worked for me:
[ awodev.com/forum/awocoupon/help-section/couponnotvalid](http://awodev.com/forum/awocoupon/help-section/couponnotvalid)

So the bug was at AwoCoupon's side.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC82MjI4MS1pcy1pdC1hLWJ1Zz90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14281
-
-

14 years 2 months ago [\#62688](#62688) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Is it a bug?](/forum/3-bug-report/62281-is-it-a-bug#62688 "Hi All,  Can you see the below attached screenshot? When I enter incorrect coupon code, this message appears: &quot;COUPON&#95;NOT&#95;VALID&quot; However, the value for this string is clearly defined in language file (this is also seen from screenshot).  When I delete a coupon, translation of the message &quot;Coupon Deleted&quot; appears correctly.  Can you tell me how to solve this issue?")*

Thank you for your feedback.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC82MjI4MS1pcy1pdC1hLWJ1Zz90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.074 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
