Skip to content

Commit

Permalink
https://github.com/abantecart/abantecart-src/issues/276
Browse files Browse the repository at this point in the history
  • Loading branch information
abolabo committed Oct 28, 2015
1 parent d8aba3e commit 7f33455
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions public_html/admin/model/sale/order.php
Expand Up @@ -621,8 +621,11 @@ public function addOrderHistory($order_id, $data){
$message .= $language->get('text_date_added') . ' ' . dateISO2Display($order_query->row['date_added'], $language->get('date_format_short')) . "\n\n";
$message .= $language->get('text_order_status') . "\n\n";
$message .= $order_query->row['status'] . "\n\n";
$message .= $language->get('text_invoice') . "\n";
$message .= html_entity_decode($order_query->row['store_url'] . 'index.php?rt=account/invoice&order_id=' . $order_id, ENT_QUOTES, 'UTF-8') . "\n\n";
//send link to order only for registered custemers
if($order_query->row['customer_id']){
$message .= $language->get('text_invoice') . "\n";
$message .= html_entity_decode($order_query->row['store_url'] . 'index.php?rt=account/invoice&order_id=' . $order_id, ENT_QUOTES, 'UTF-8') . "\n\n";
}

if($data['comment']){
$message .= $language->get('text_comment') . "\n\n";
Expand Down

2 comments on commit 7f33455

@abantecart
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We discussed to add link for not registered customer.
Email and order ID will be serialized into token and this token will show order details and invoice.

@abolabo
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we discussed to do this in 1.2.6

Please sign in to comment.