Purchase Order option

  • Posts: 60
  • Thank you received: 0
10 years 2 months ago #172862

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 2 months ago #172893

Hi,

You can edit the emails in the HikaShop backend "System > 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 & 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.
Last edit: 10 years 2 months ago by Jerome.

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

  • Posts: 60
  • Thank you received: 0
10 years 2 months ago #173290

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
10 years 1 month ago #173352

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>Emails:

<?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(); ?>

The following user(s) said Thank You: hikalikethat

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

  • Posts: 60
  • Thank you received: 0
10 years 1 month ago #173423

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

Time to create page: 0.062 seconds
Powered by Kunena Forum