- Posts: 7
- Thank you received: 0
Purchase Order Email lacks Information parameter
10 years 10 months ago #222839
by ifeldman0
Purchase Order Email lacks Information parameter was created by ifeldman0
-- 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
-- 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->order_payment_method, array('banktransfer', 'check'))) {
Line 421 (NEW):
Code:
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):
Code:
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:
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 or Create an account to join the conversation.
10 years 10 months ago #222844
by nicolas
Replied by nicolas on topic Purchase Order Email lacks Information parameter
Hi,
Thank you for your feedback. We'll add that on our end !
Thank you for your feedback. We'll add that on our end !
Please Log in or Create an account to join the conversation.
Time to create page: 0.226 seconds