-- 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):
if(in_array($data->order_payment_method, array('banktransfer', 'check'))) {
Line 421 (NEW):
if(in_array($data->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):
elseif($data->order_payment_method=='purchaseorder'){
echo '<p>' . JText::sprintf('PLEASE_SEND_PURCHASEORDER',$amount).'<br/>'.$information.'<br/>'.JText::sprintf('INCLUDE_ORDER_NUMBER_TO_PURCHASEORDER',$data->order_number) . '</p>';
}
Finally, two new language lines are needed. Suggested English versions are:
;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