- Posts: 60
- Thank you received: 0
Purchase Order option
- hikalikethat
-
Topic Author
- Offline
Less
More
12 years 1 week ago #172862
by hikalikethat
Replied by hikalikethat on topic 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 or Create an account to join the conversation.
12 years 1 week ago - 12 years 1 week ago #172893
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Purchase Order option
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,
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.
Last edit: 12 years 1 week ago by Jerome.
Please Log in or Create an account to join the conversation.
- hikalikethat
-
Topic Author
- Offline
Less
More
- Posts: 60
- Thank you received: 0
12 years 5 days ago #173290
by hikalikethat
Replied by hikalikethat on topic 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.
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.
12 years 5 days ago #173352
by nicolas
Replied by nicolas on topic 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>Emails:
You would have to add such code in your emails via the menu System>Emails:
Code:
<?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.
- hikalikethat
-
Topic Author
- Offline
Less
More
- Posts: 60
- Thank you received: 0
12 years 4 days ago #173423
by hikalikethat
Replied by hikalikethat on topic 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!
THANK YOU!
Please Log in or Create an account to join the conversation.
Time to create page: 0.157 seconds