Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
1. EDIT: catalog/model/checkout/order.php
2. FIND:
Code: Select all
$message .= $language->get('mail_new_order_invoice') . "\n";
Code: Select all
if (!isset($this->session->data['guest'])) {
$message .= $language->get('mail_new_order_invoice') . "\n";
}
Or, is there a solution already out there that I totally missed somehow?
Thanks in advance for any help (especially you Obi-Wan Q-Nobi).
What did you change?Seven wrote:I finally found it. I just changed the verbiage a little in admin/language/english/mail/order.php.
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
Before:
Code: Select all
$_['text_invoice'] = 'To view your order click on the link below:';
Code: Select all
$_['text_invoice'] = 'If you registered with us when you made your purchase, you may view your order by clicking on the link below:';
There might be a way of keeping the link if the order ID may be assigned to the customer's session array so that when the guest either registers an account or login into his account at the completion of checkout to re-gather the current order ID and to show the invoice based on this ID before the actual order ID gets unset when successful.fourgood wrote:is there a more elegant way than just change the wording but still provide a not working link?
The only problem is when the customer would close the browser and clear all cookies and cache and would like to see the invoice from email, this obviously won't work since all sessionized data will be cleared as well.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
or the possibilitie to create an account afterwards and then see the orders that were made before with the same e-mail address?
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Here is a vqmod I used that I believe takes care of this problem.
Code: Select all
<modification>
<id>Prevent guests from receiving links to invoices upon order updates in admin interface</id>
<version>1.0.0</version>
<vqmver>1.0.2</vqmver>
<author>Faust Gertz</author>
<file name="admin/model/sale/order.php">
<operation>
<search position="before"><![CDATA[$message .= $language->get('text_invoice') . "\n";]]></search>
<add><![CDATA[if ($order_query->row['customer_id']) {]]></add>
</operation>
<operation>
<search position="after"><![CDATA[$message .= html_entity_decode($order_query->row['store_url'] . 'index.php?route=account/invoice&order_id=' . $order_id, ENT_QUOTES, 'UTF-8') . "\n\n";]]></search>
<add><![CDATA[}]]></add>
</operation>
</file>
</modification>
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Users browsing this forum: No registered users and 132 guests