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

#   'NEW\_ORDER\_SUBJECT' not getting 'translated'

##

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

Less More

- Posts: 196
- Thank you received: 6
-
-
-
- [](http://www.paschencommunications.com)
-

13 years 7 months ago [\#97376](#97376) by [cpaschen](/forum/user/12420-cpaschen "View cpaschen's Profile")  *['NEW\_ORDER\_SUBJECT' not getting 'translated'](/forum/2-general-talk-about-hikashop/79942-new-order-subject-not-getting-translated#97376 "I've got a site (HS Business 2.1.1) where the admin email notices are being sent and the subject line is appearing as &quot;NEW&#95;ORDER&#95;SUBJECT&quot; and not getting 'translated' into the &quot;New order No. %s...")* was created by *[cpaschen](/forum/user/12420-cpaschen "View cpaschen's Profile")*

I've got a site (HS Business 2.1.1) where the admin email notices are being sent and the subject line is appearing as "NEW_ORDER_SUBJECT" and not getting 'translated' into the "New order No. %s created on %s" as specified in the language file.

All other email subject lines are being handled properly.

Looks like a JText entry is missing, but I have no idea where to look (and wonder why other emails would be having their subjects handled properly).

Any ideas?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc5OTQyLW5ldy1vcmRlci1zdWJqZWN0LW5vdC1nZXR0aW5nLXRyYW5zbGF0ZWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) 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)
-

13 years 7 months ago [\#97404](#97404) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *['NEW\_ORDER\_SUBJECT' not getting 'translated'](/forum/2-general-talk-about-hikashop/79942-new-order-subject-not-getting-translated#97404 "I've got a site (HS Business 2.1.1) where the admin email notices are being sent and the subject line is appearing as &quot;NEW&#95;ORDER&#95;SUBJECT&quot; and not getting 'translated' into the &quot;New order No. %s...")*

Hi,

Thanks to check in Config &gt; Languages, edit your language file and see id the string NEW_ORDER_SUBJECT is present.
If not, you can add it, and add the translation between double quotes.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc5OTQyLW5ldy1vcmRlci1zdWJqZWN0LW5vdC1nZXR0aW5nLXRyYW5zbGF0ZWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 196
- Thank you received: 6
-
-
-
- [](http://www.paschencommunications.com)
-

13 years 7 months ago [\#97424](#97424) by [cpaschen](/forum/user/12420-cpaschen "View cpaschen's Profile")  Replied by *[cpaschen](/forum/user/12420-cpaschen "View cpaschen's Profile")* on topic *['NEW\_ORDER\_SUBJECT' not getting 'translated'](/forum/2-general-talk-about-hikashop/79942-new-order-subject-not-getting-translated#97424 "I've got a site (HS Business 2.1.1) where the admin email notices are being sent and the subject line is appearing as &quot;NEW&#95;ORDER&#95;SUBJECT&quot; and not getting 'translated' into the &quot;New order No. %s...")*

As noted in my first post, it isn't using what's in the language file.
And I checked the syntax there multiple times.
(I've translated commercial Joomla apps,so I'm pretty familiar with the language files).

It has:

NEW_ORDER_SUBJECT="New order No. %s created on %s"

at the bottom of the ;email content section

NOTE: This site was customized by a previous developer (on an older version of HS) so my guess is that he might have manually edited that code IF there some code specifically for this email notice. (And it looks an awful lot like the JText isn't there or is somehow got some wrong syntax).
IF there is a specific php file for this email form (that addresses the subject line) I'd love to know so that I can take a look at it.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc5OTQyLW5ldy1vcmRlci1zdWJqZWN0LW5vdC1nZXR0aW5nLXRyYW5zbGF0ZWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) 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)
-

13 years 7 months ago [\#97486](#97486) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *['NEW\_ORDER\_SUBJECT' not getting 'translated'](/forum/2-general-talk-about-hikashop/79942-new-order-subject-not-getting-translated#97486 "I've got a site (HS Business 2.1.1) where the admin email notices are being sent and the subject line is appearing as &quot;NEW&#95;ORDER&#95;SUBJECT&quot; and not getting 'translated' into the &quot;New order No. %s...")*

Hi,

This JText is in the file "administrator/components/com_hikashop/classes/order.php" near the line 350.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc5OTQyLW5ldy1vcmRlci1zdWJqZWN0LW5vdC1nZXR0aW5nLXRyYW5zbGF0ZWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 196
- Thank you received: 6
-
-
-
- [](http://www.paschencommunications.com)
-

13 years 7 months ago [\#97601](#97601) by [cpaschen](/forum/user/12420-cpaschen "View cpaschen's Profile")  Replied by *[cpaschen](/forum/user/12420-cpaschen "View cpaschen's Profile")* on topic *['NEW\_ORDER\_SUBJECT' not getting 'translated'](/forum/2-general-talk-about-hikashop/79942-new-order-subject-not-getting-translated#97601 "I've got a site (HS Business 2.1.1) where the admin email notices are being sent and the subject line is appearing as &quot;NEW&#95;ORDER&#95;SUBJECT&quot; and not getting 'translated' into the &quot;New order No. %s...")*

Very strange.

The order.php file has (at line 345-347):

if(empty($order-&gt;mail-&gt;subject)) {
$order-&gt;mail-&gt;subject = JText::sprintf('NEW_ORDER_SUBJECT',$order-&gt;order_number,HIKASHOP_LIVE);
}

and the en-GB.com_hikashop.ini file (at line 649, in the ";email content" section) has:

NEW_ORDER_SUBJECT="New order No. %s created on %s"

So this sure looks like it should be working.

Any other ideas?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc5OTQyLW5ldy1vcmRlci1zdWJqZWN0LW5vdC1nZXR0aW5nLXRyYW5zbGF0ZWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) 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)
-

13 years 7 months ago [\#97662](#97662) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *['NEW\_ORDER\_SUBJECT' not getting 'translated'](/forum/2-general-talk-about-hikashop/79942-new-order-subject-not-getting-translated#97662 "I've got a site (HS Business 2.1.1) where the admin email notices are being sent and the subject line is appearing as &quot;NEW&#95;ORDER&#95;SUBJECT&quot; and not getting 'translated' into the &quot;New order No. %s...")*

Can you try to remove the "if" condition around: $order-&gt;mail-&gt;subject = JText::sprintf('NEW_ORDER_SUBJECT',$order-&gt;order_number,HIKASHOP_LIVE);

To force the use of the JText ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzc5OTQyLW5ldy1vcmRlci1zdWJqZWN0LW5vdC1nZXR0aW5nLXRyYW5zbGF0ZWQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) 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.057 seconds

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