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

#   Purchase order field missing on order emails

##

- **[hikalikethat](/forum/user/33967-hikalikethat "View hikalikethat's Profile")**
- [![hikalikethat's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar33967.jpg)](/forum/user/33967-hikalikethat "View hikalikethat's Profile") Topic Author
- [ Offline](/forum/user/33967-hikalikethat)

Less More

- Posts: 60
- Thank you received: 0
-
-

10 years 11 months ago [\#220039](#220039) by [hikalikethat](/forum/user/33967-hikalikethat "View hikalikethat's Profile")  *[Purchase order field missing on order emails](/forum/29-payment-methods/880359-purchase-order-field-missing-on-order-emails#220039 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5 -- PHP version -- : 5.5.11 -- Browser(s) name and version -- : latest Chrome  When a user selects the Purchase Order option, it is not showing on either the outgoing order email to the user, nor to the designated recipients. Where to look and how to fix? Thanks!")* was created by *[hikalikethat](/forum/user/33967-hikalikethat "View hikalikethat's Profile")*

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.5
-- PHP version -- : 5.5.11
-- Browser(s) name and version -- : latest Chrome

When a user selects the Purchase Order option, it is not showing on either the outgoing order email to the user, nor to the designated recipients. Where to look and how to fix? Thanks!

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

10 years 11 months ago [\#220154](#220154) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Purchase order field missing on order emails](/forum/29-payment-methods/880359-purchase-order-field-missing-on-order-emails#220154 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5 -- PHP version -- : 5.5.11 -- Browser(s) name and version -- : latest Chrome  When a user selects the Purchase Order option, it is not showing on either the outgoing order email to the user, nor to the designated recipients. Where to look and how to fix? Thanks!")*

Hi,

1/ Please precise what is the "purchase order option".
2/ Please provide the configuration of that field.
3/ You have to take a look at the email content and at the field configuration too.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

- **[hikalikethat](/forum/user/33967-hikalikethat "View hikalikethat's Profile")**
- [![hikalikethat's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar33967.jpg)](/forum/user/33967-hikalikethat "View hikalikethat's Profile") Topic Author
- [ Offline](/forum/user/33967-hikalikethat)

Less More

- Posts: 60
- Thank you received: 0
-
-

10 years 11 months ago -  10 years 11 months ago [\#220155](#220155) by [hikalikethat](/forum/user/33967-hikalikethat "View hikalikethat's Profile")  Replied by *[hikalikethat](/forum/user/33967-hikalikethat "View hikalikethat's Profile")* on topic *[Purchase order field missing on order emails](/forum/29-payment-methods/880359-purchase-order-field-missing-on-order-emails#220155 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5 -- PHP version -- : 5.5.11 -- Browser(s) name and version -- : latest Chrome  When a user selects the Purchase Order option, it is not showing on either the outgoing order email to the user, nor to the designated recipients. Where to look and how to fix? Thanks!")*

1/ Purchase Order option is a payment method for items purchased.
2/ Published: Yes
Price: 0.00 USD
Percentage: 0
Tax category: None
Order status: created
Order status notification: Yes
Access Level: All

The email we receive only contains the text "Payment method : Purchase Order". It does not include the actual purchase order number.

Where do I change/modify the email content?

Also, when I click on the "Purchase Order" payment method, a drop-down field appears to enter the purchase order number. Not sure how to get this field into the email, nor do I know where the field is "set" or "modified"

Last edit: 10 years 11 months ago by [hikalikethat](/forum/user/33967-hikalikethat "View hikalikethat's Profile").

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

- **[hikalikethat](/forum/user/33967-hikalikethat "View hikalikethat's Profile")**
- [![hikalikethat's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar33967.jpg)](/forum/user/33967-hikalikethat "View hikalikethat's Profile") Topic Author
- [ Offline](/forum/user/33967-hikalikethat)

Less More

- Posts: 60
- Thank you received: 0
-
-

10 years 11 months ago [\#220164](#220164) by [hikalikethat](/forum/user/33967-hikalikethat "View hikalikethat's Profile")  Replied by *[hikalikethat](/forum/user/33967-hikalikethat "View hikalikethat's Profile")* on topic *[Purchase order field missing on order emails](/forum/29-payment-methods/880359-purchase-order-field-missing-on-order-emails#220164 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5 -- PHP version -- : 5.5.11 -- Browser(s) name and version -- : latest Chrome  When a user selects the Purchase Order option, it is not showing on either the outgoing order email to the user, nor to the designated recipients. Where to look and how to fix? Thanks!")*

This is how I got the PO # to print (the file got overwritten when I upgraded to the latest hikashop version):

Open this file:
htdocs\media\com_hikashop\mail\order_admin_notification.html.php

After this line:
&lt;span style="color:#1c8faf !important;font-weight:bold;"&gt;{TXT:PAYMENT_METHOD} :&lt;/span&gt; {VAR:PAYMENT}

Add this code:
&lt;br&gt;
&lt;?php $db = JFactory::getDBO();
$db-&gt;setQuery('SELECT history_data FROM #__hikashop_history WHERE history_type="purchase order" AND history_order_id='.$data-&gt;order_id);
echo $db-&gt;loadResult(); ?&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84ODAzNTktcHVyY2hhc2Utb3JkZXItZmllbGQtbWlzc2luZy1vbi1vcmRlci1lbWFpbHM/dG1wbD1tYXJrZG93bg==) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

10 years 11 months ago [\#220170](#220170) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Purchase order field missing on order emails](/forum/29-payment-methods/880359-purchase-order-field-missing-on-order-emails#220170 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5 -- PHP version -- : 5.5.11 -- Browser(s) name and version -- : latest Chrome  When a user selects the Purchase Order option, it is not showing on either the outgoing order email to the user, nor to the designated recipients. Where to look and how to fix? Thanks!")*

Hi,

The purchase order number is indeed not included in the emails.
You can find it when you edit the order in the backend in the "history" area.

Do that same modification in the HTML version textarea of your email when you're editing it via the menu System&gt;Emails and you won't loose your changes when you update HikaShop.

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

- **[hikalikethat](/forum/user/33967-hikalikethat "View hikalikethat's Profile")**
- [![hikalikethat's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar33967.jpg)](/forum/user/33967-hikalikethat "View hikalikethat's Profile") Topic Author
- [ Offline](/forum/user/33967-hikalikethat)

Less More

- Posts: 60
- Thank you received: 0
-
-

10 years 11 months ago [\#220380](#220380) by [hikalikethat](/forum/user/33967-hikalikethat "View hikalikethat's Profile")  Replied by *[hikalikethat](/forum/user/33967-hikalikethat "View hikalikethat's Profile")* on topic *[Purchase order field missing on order emails](/forum/29-payment-methods/880359-purchase-order-field-missing-on-order-emails#220380 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5 -- PHP version -- : 5.5.11 -- Browser(s) name and version -- : latest Chrome  When a user selects the Purchase Order option, it is not showing on either the outgoing order email to the user, nor to the designated recipients. Where to look and how to fix? Thanks!")*

So I looked at the settings in the System-&gt;Emails and it is in the HTML area already. And it was there before I upgraded. The upgrade overwrote the PHP files.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84ODAzNTktcHVyY2hhc2Utb3JkZXItZmllbGQtbWlzc2luZy1vbi1vcmRlci1lbWFpbHM/dG1wbD1tYXJrZG93bg==) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

10 years 11 months ago [\#220386](#220386) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Purchase order field missing on order emails](/forum/29-payment-methods/880359-purchase-order-field-missing-on-order-emails#220386 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5 -- PHP version -- : 5.5.11 -- Browser(s) name and version -- : latest Chrome  When a user selects the Purchase Order option, it is not showing on either the outgoing order email to the user, nor to the designated recipients. Where to look and how to fix? Thanks!")*

Hi,

You need to save your changes in the interface.
And not directly edit the files via FTP.
The original files are indeed overwritten when you update, but the override files that are created when you save your changes via the interface aren't.

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

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

[](#top)
