I need to add a line to each order email to each customer, notifying him that the charge that will appear on his credit card will be
Such and Such
because the dba I use for my credit card processing account is a generic company name.
1) Where may I edit the order confirmation email?
2) Is there a way to test receive this email, short of running my own authorization-only order through my site and having that email sent to myself?
While the OC version has not been posted, there sure is. In your catalog/controller/mail/order.php file, you can edit your emails when adding, editing and when receiving alerted orders as well as in your catalog/language/<your_language>/mail/order_x.php files and your catalog/view/theme/<your_theme>/template/mail/order_x.twig files.1) Where may I edit the order confirmation email?
More information required on that one.2) Is there a way to test receive this email, short of running my own authorization-only order through my site and having that email sent to myself?
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
order_add.php
order_alert.php
order_edit.php
?
Once I make the change, is there a way to test to see what the email looks like at the receiving end? (Other than - entering a dummy order into the system I mean and making myself the customer.)
Unless using an extension to test the order emails separately, you need to create an order to test the email.newhauschka wrote: ↑Sun Apr 26, 2020 4:28 amI couldn't find those files in my OpenCart 3.0.3.2
Once I make the change, is there a way to test to see what the email looks like at the receiving end? (Other than - entering a dummy order into the system I mean and making myself the customer.)
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
catalog/language/en-gb/mail/order_add
I added ' The charge on your credit card will appear as XXXXX.' as follows:
Code: Select all
$_['text_greeting'] = 'Thank you for your interest in %s products. Your order has been received and will be processed once payment has been confirmed. The charge on your credit card will appear as XXXXX.';
I added as follows:
Code: Select all
$_['text_customer'] = '<p>Your order has been successfully processed!</p><p>You can view your order history by going to the <a href="%s">my account</a> page and by clicking on <a href="%s">history</a>.</p><p>If your purchase has an associated download, you can go to the account <a href="%s">downloads</a> page to view them.</p><p>Please direct any questions you have to the <a href="%s">store owner</a>.</p><p>The charge on your credit card will appear as XXXXX. Thanks for shopping with us online!</p>';
$_['text_guest'] = '<p>Your order has been successfully processed!</p><p>Please direct any questions you have to the <a href="%s">store owner</a>.</p><p>[b][u]The charge on your credit card will appear as XXXXX. Thanks for shopping with us online!</p>';
Is the code addition working as expected when testing an order, however?I haven't done a test order to email to myself to see how it will look on the receiving end.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Extensions/Payments/Authorize AIM
to Authorization and not to Capture any orders.
Then I went through the system and placed the order. It went through and I saw the authorization on my own credit card online.
The messages went through fine!
Within the website the customer would see this:

and the first confirmation email ("Auto-Receipt") received would be this:

and then the second email received, would be this:

and yes! all three include the intended phrase of 'The charge on your credit card will appear as XXXXX.'
---
However this brought to my intention two additional issues. The second email shows the order status as Canceled.
1)
So I went in to first
Systems>Settings>Options>Order Status
and that did show Pending
but within my Authorize.net AIM
Extensions>Payments>Authorize.net
that showed as Canceled for the default setting. I changed that to Pending also.
I hope this resolves that issue. (I think it is rather sloppy that the default order status is Canceled - anywhere! in the setup.)
2)
The logo in the second email is HUGE. I am wondering how I make that smaller? I guess the image itself that I uploaded is too big? I would have thought that the system would make it smaller.
I am thinking I need to do this? What do you think?
Catalog > View> theme> default> template> mail> order_add.twig
Remove:
Code: Select all
<a href="{{ store_url }}" title="{{ store_name }}"><img src="{{ logo }}" alt="{{ store_name }}" style="margin-bottom: 20px; border: none;" /></a>
Code: Select all
<a href="{{ store_url }}" title="{{ store_name }}"><img src="{{ logo }}" alt="{{ store_name }}" style="margin-bottom: 20px; border: none; max-width: 250px;" /></a>
Will this do it?
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Code: Select all
<a href="{{ store_url }}" title="{{ store_name }}"><img src="{{ logo }}" alt="{{ store_name }}" style="margin-bottom: 20px; border: none; max-width: 250px;" /></a>
Ensure to clear the OC cache by following these steps: viewtopic.php?f=134&t=215776#p718325newhauschka wrote: ↑Fri May 01, 2020 1:14 amNo, that didn't work. Changing tohad no effect and logo appeared just as huge in the confirmation email.Code: Select all
<a href="{{ store_url }}" title="{{ store_name }}"><img src="{{ logo }}" alt="{{ store_name }}" style="margin-bottom: 20px; border: none; max-width: 250px;" /></a>
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
1 - Yes, clearing the template and SASS cache that is always needed.
2 - In addition to removing this Catalog > View> theme> default> template> mail> order_add.twig
Code: Select all
<a href="{{ store_url }}" title="{{ store_name }}"><img src="{{ logo }}" alt="{{ store_name }}" style="margin-bottom: 20px; border: none;" /></a>
Code: Select all
<a href="{{ store_url }}" title="{{ store_name }}"><img src="{{ logo }}" alt="{{ store_name }}" style="margin-bottom: 20px; border: none; max-width: 250px;" /></a>
remove from line 8
Code: Select all
div style="width: 680px;">
Code: Select all
</div>
So I did this as well:
catalog/view/theme/default/template/mail/order_alert.twig file
Find:
Code: Select all
{% if option %}
Code: Select all
{% if product.option %}
Users browsing this forum: Semrush [Bot] and 19 guests