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

#   Email subject: text placeholder is not replaced when order variable is also incl

##

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

Less More

- Posts: 29
- Thank you received: 1
-
-

2 years 11 months ago -  2 years 11 months ago [\#357133](#357133) by [bendegoose](/forum/user/29609-bendegoose "View bendegoose's Profile")  *[Email subject: text placeholder is not replaced when order variable is also incl](/forum/35-orders-management/907374-email-subject-text-placeholder-is-not-replaced-when-order-variable-is-also-incl#357133 "-- HikaShop version -- : 4.7.4 -- Joomla version -- : 3.10.12 -- PHP version -- : 7.4.29  Hi,  I tried to add the order number to the email subject for the administrator notification email when an order is created but experienced the next:  1. When subject contains only text placeholder (or constant or I don't know what is the name of it in English) it works fine, the language specific expression is incuded subject: ORDER&#95;CREATION&#95;NOTIFICATION&#95;SUBJECT result: &quot;Új megrendelés történt az oldalán&quot;  2.When the order number is addded to the subject, then it works partially, the text placeholder is not replaced to the language specific expression but the order number is filled: subject: ORDER&#95;CREATION&#95;NOTIFICATION&#95;SUBJECT - {order.order&#95;number} result: &quot;ORDER&#95;CREATION&#95;NOTIFICATION&#95;SUBJECT - 23/12/054160PB&quot;  So it seems like if a DB field is included the text placeholders/constants are not processed.  Is there a way to make it work?  Best regards,  Bence")* was created by *[bendegoose](/forum/user/29609-bendegoose "View bendegoose's Profile")*

-- HikaShop version -- : 4.7.4
-- Joomla version -- : 3.10.12
-- PHP version -- : 7.4.29

Hi,

I tried to add the order number to the email subject for the administrator notification email when an order is created but experienced the next:

1. When subject contains only text placeholder (or constant or I don't know what is the name of it in English) it works fine, the language specific expression is incuded
subject: ORDER_CREATION_NOTIFICATION_SUBJECT
result: "Új megrendelés történt az oldalán"

2.When the order number is addded to the subject, then it works partially, the text placeholder is not replaced to the language specific expression but the order number is filled:
subject: ORDER_CREATION_NOTIFICATION_SUBJECT - {order.order_number}
result: "ORDER_CREATION_NOTIFICATION_SUBJECT - 23/12/054160PB"

So it seems like if a DB field is included the text placeholders/constants are not processed.

Is there a way to make it work?

Best regards,

Bence

Last edit: 2 years 11 months ago by [bendegoose](/forum/user/29609-bendegoose "View bendegoose's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwNzM3NC1lbWFpbC1zdWJqZWN0LXRleHQtcGxhY2Vob2xkZXItaXMtbm90LXJlcGxhY2VkLXdoZW4tb3JkZXItdmFyaWFibGUtaXMtYWxzby1pbmNsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86575
- Thank you received: 14318
-
-

2 years 11 months ago [\#357137](#357137) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Email subject: text placeholder is not replaced when order variable is also incl](/forum/35-orders-management/907374-email-subject-text-placeholder-is-not-replaced-when-order-variable-is-also-incl#357137 "-- HikaShop version -- : 4.7.4 -- Joomla version -- : 3.10.12 -- PHP version -- : 7.4.29  Hi,  I tried to add the order number to the email subject for the administrator notification email when an order is created but experienced the next:  1. When subject contains only text placeholder (or constant or I don't know what is the name of it in English) it works fine, the language specific expression is incuded subject: ORDER&#95;CREATION&#95;NOTIFICATION&#95;SUBJECT result: &quot;Új megrendelés történt az oldalán&quot;  2.When the order number is addded to the subject, then it works partially, the text placeholder is not replaced to the language specific expression but the order number is filled: subject: ORDER&#95;CREATION&#95;NOTIFICATION&#95;SUBJECT - {order.order&#95;number} result: &quot;ORDER&#95;CREATION&#95;NOTIFICATION&#95;SUBJECT - 23/12/054160PB&quot;  So it seems like if a DB field is included the text placeholders/constants are not processed.  Is there a way to make it work?  Best regards,  Bence")*

Hi,

You need to leave the subject to ORDER_CREATION_NOTIFICATION_SUBJECT
Then, edit your HikaShop language file under the Languages tab of the HikaShop configuration page and there search for ORDER_CREATION_NOTIFICATION_SUBJECT in order to create a translation override. In that override text you can add your tag {order.order_number}
You can read more about translation overrides here:
[ www.hikashop.com/download/languages.html#modify](https://www.hikashop.com/download/languages.html#modify)

The following user(s) said Thank You: [bendegoose](/forum/user/29609-bendegoose "View bendegoose's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwNzM3NC1lbWFpbC1zdWJqZWN0LXRleHQtcGxhY2Vob2xkZXItaXMtbm90LXJlcGxhY2VkLXdoZW4tb3JkZXItdmFyaWFibGUtaXMtYWxzby1pbmNsP3RtcGw9bWFya2Rvd24=) 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.047 seconds

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