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

#   Purchase Order option

##

- **[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
-
-

12 years 1 month ago [\#172862](#172862) 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 option](/forum/29-payment-methods/870746-purchase-order-option?start=20#172862 "-- HikaShop version -- : latest -- Joomla version -- : 3.3.0 -- PHP version -- : 5.5.11 -- Browser(s) name and version -- : IE 11  I purchased the Essentials of Hikashop, and nowhere does it say the Essentials can't do a Purchase Order, yet I can't find the option. How do I add a Purchase Order option?")*

And where is the email PHP code? Where do I look for the element? I can program php, I just need to know where to look for things. Or Nicholas can since he wrote the PO payment plugin???

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzA3NDYtcHVyY2hhc2Utb3JkZXItb3B0aW9uP3N0YXJ0PTIwJnRtcGw9bWFya2Rvd24=) 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: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

12 years 1 month ago -  12 years 1 month ago [\#172893](#172893) 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 option](/forum/29-payment-methods/870746-purchase-order-option?start=20#172893 "-- HikaShop version -- : latest -- Joomla version -- : 3.3.0 -- PHP version -- : 5.5.11 -- Browser(s) name and version -- : IE 11  I purchased the Essentials of Hikashop, and nowhere does it say the Essentials can't do a Purchase Order, yet I can't find the option. How do I add a Purchase Order option?")*

Hi,

You can edit the emails in the HikaShop backend "System &gt; emails".
Nicolas, as the rest of the support team, is currently quite busy ; they currently don't have time for custom developments.

Regards,

---

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

Last edit: 12 years 1 month ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile").

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

12 years 1 month ago [\#173290](#173290) 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 option](/forum/29-payment-methods/870746-purchase-order-option?start=20#173290 "-- HikaShop version -- : latest -- Joomla version -- : 3.3.0 -- PHP version -- : 5.5.11 -- Browser(s) name and version -- : IE 11  I purchased the Essentials of Hikashop, and nowhere does it say the Essentials can't do a Purchase Order, yet I can't find the option. How do I add a Purchase Order option?")*

The "Hikashop Purchase Order Payment Plugin" has a way for the user, at checkout, to enter a Purchase Order Number.

However, when the user presses Finish to create the order, that purchase order number is not included in the email that we get from Hikashop.

Simply, how do I get the purchase order number into the email that goes out?

Does that make sense? Nothing complex, just trying to get the PO # included in the email that we receive.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzA3NDYtcHVyY2hhc2Utb3JkZXItb3B0aW9uP3N0YXJ0PTIwJnRtcGw9bWFya2Rvd24=) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86560
- Thank you received: 14307
-
-

12 years 1 month ago [\#173352](#173352) 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 option](/forum/29-payment-methods/870746-purchase-order-option?start=20#173352 "-- HikaShop version -- : latest -- Joomla version -- : 3.3.0 -- PHP version -- : 5.5.11 -- Browser(s) name and version -- : IE 11  I purchased the Essentials of Hikashop, and nowhere does it say the Essentials can't do a Purchase Order, yet I can't find the option. How do I add a Purchase Order option?")*

It's actually not that easy because the data is not stored in the order but in the history table.
You would have to add such code in your emails via the menu System&gt;Emails: Code:

&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;

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

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

12 years 1 month ago [\#173423](#173423) 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 option](/forum/29-payment-methods/870746-purchase-order-option?start=20#173423 "-- HikaShop version -- : latest -- Joomla version -- : 3.3.0 -- PHP version -- : 5.5.11 -- Browser(s) name and version -- : IE 11  I purchased the Essentials of Hikashop, and nowhere does it say the Essentials can't do a Purchase Order, yet I can't find the option. How do I add a Purchase Order option?")*

Excellent! I put this code into the order_admin_notifcation.html.php file after the line that contains "(TXT:PAYMENT_METHOD)" and it includes the PO # in the email.

THANK YOU!

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

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