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

#   Purchase Order Email lacks Information parameter

##

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

Less More

- Posts: 7
- Thank you received: 0
-
-

10 years 10 months ago [\#222839](#222839) by [ifeldman0](/forum/user/37170-ifeldman0 "View ifeldman0's Profile")  *[Purchase Order Email lacks Information parameter](/forum/3-bug-report/880857-purchase-order-email-lacks-information-parameter#222839 "-- url of the page with the problem -- : Email to customer on order creation -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5 -- PHP version -- : 5.5.23 -- Browser(s) name and version -- : Chrome (current) -- Error-message(debug-mod must be tuned on) -- : No error message  On the Purchase Order plugin settings, a box is present for information (just like on the Check method) that allows an administrator to list the directions for submitting a PO. However, default behavior of HikaShop does not include this in the order creation email to the customer. I was able to correct this by editing the Preload version of the Order Creation Notification email as follows:  Line 421 (OLD):  Line 421 (NEW):  Within that if statement, add in the following after the elseif method==check (inserted after } on line 433, adds new lines 434 and 435):  Finally, two new language lines are needed. Suggested English versions are:  Thanks! Ian")* was created by *[ifeldman0](/forum/user/37170-ifeldman0 "View ifeldman0's Profile")*

-- url of the page with the problem -- : Email to customer on order creation
-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.5
-- PHP version -- : 5.5.23
-- Browser(s) name and version -- : Chrome (current)
-- Error-message(debug-mod must be tuned on) -- : No error message

On the Purchase Order plugin settings, a box is present for information (just like on the Check method) that allows an administrator to list the directions for submitting a PO. However, default behavior of HikaShop does not include this in the order creation email to the customer. I was able to correct this by editing the Preload version of the Order Creation Notification email as follows:

Line 421 (OLD): Code:

if(in_array($data-&gt;order_payment_method, array('banktransfer', 'check'))) {

Line 421 (NEW): Code:

if(in_array($data-&gt;order_payment_method, array('banktransfer', 'check', 'purchaseorder'))) {

Within that if statement, add in the following after the elseif method==check (inserted after } on line 433, adds new lines 434 and 435): Code:

elseif($data-&gt;order_payment_method=='purchaseorder'){ echo '&lt;p&gt;' . JText::sprintf('PLEASE_SEND_PURCHASEORDER',$amount).'&lt;br/&gt;'.$information.'&lt;br/&gt;'.JText::sprintf('INCLUDE_ORDER_NUMBER_TO_PURCHASEORDER',$data-&gt;order_number) . '&lt;/p&gt;'; }

Finally, two new language lines are needed. Suggested English versions are:
Code:

;purchase order PLEASE_SEND_PURCHASEORDER="You can now send us a purchase order for the amount of %s using the following information." INCLUDE_ORDER_NUMBER_TO_PURCHASEORDER="Do not forget to include the order number ( %s ) with the purchase order so that we can match it to your order."

Thanks!
Ian

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC84ODA4NTctcHVyY2hhc2Utb3JkZXItZW1haWwtbGFja3MtaW5mb3JtYXRpb24tcGFyYW1ldGVyP3RtcGw9bWFya2Rvd24=) 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 10 months ago [\#222844](#222844) 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 Email lacks Information parameter](/forum/3-bug-report/880857-purchase-order-email-lacks-information-parameter#222844 "-- url of the page with the problem -- : Email to customer on order creation -- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.5 -- PHP version -- : 5.5.23 -- Browser(s) name and version -- : Chrome (current) -- Error-message(debug-mod must be tuned on) -- : No error message  On the Purchase Order plugin settings, a box is present for information (just like on the Check method) that allows an administrator to list the directions for submitting a PO. However, default behavior of HikaShop does not include this in the order creation email to the customer. I was able to correct this by editing the Preload version of the Order Creation Notification email as follows:  Line 421 (OLD):  Line 421 (NEW):  Within that if statement, add in the following after the elseif method==check (inserted after } on line 433, adds new lines 434 and 435):  Finally, two new language lines are needed. Suggested English versions are:  Thanks! Ian")*

Hi,

Thank you for your feedback. We'll add that on our end !

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

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

[](#top)
