Purchase order field missing on order emails

  • Posts: 60
  • Thank you received: 0
9 years 2 weeks ago #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!

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 2 weeks ago #220154

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 & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 60
  • Thank you received: 0
9 years 2 weeks ago #220155

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: 9 years 2 weeks ago by hikalikethat.

Please Log in or Create an account to join the conversation.

  • Posts: 60
  • Thank you received: 0
9 years 2 weeks ago #220164

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:
<span style="color:#1c8faf !important;font-weight:bold;">{TXT:PAYMENT_METHOD} :</span> {VAR:PAYMENT}

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

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
9 years 2 weeks ago #220170

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>Emails and you won't loose your changes when you update HikaShop.

Please Log in or Create an account to join the conversation.

  • Posts: 60
  • Thank you received: 0
9 years 1 week ago #220380

So I looked at the settings in the System->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 or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
9 years 1 week ago #220386

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 or Create an account to join the conversation.

Time to create page: 0.064 seconds
Powered by Kunena Forum