Page 1 of 4

@tik Copy customer order confirmation for owner

Posted: Thu May 10, 2012 7:23 pm
by OC2PS
Opencart generates 2 emails when an order is placed - one for the customer and another for store owner.

This is quite fancy/powerful and useful if you are a online store developer creating stores for many clients, trying to show off.

However, if you are a small store owner setting up your store yourself, you may find that the email notification you get when an order is placed, is rather sparse.

The simple idea behind this vQmod is that when an order is placed, the store owner gets the exact same email as the customer.

This is helpful for small store owners as they can see the detailed order including who placed it without having to log into the store AP.

It is also useful for store owners and developers to see what the customers get when they place an order.

This mod also fixes an OpenCart bug whereby the HTML emails being sent to customers did not include order comments/instructions. With this mod, the order confirmation to customer as well as the order notification to store owner include the order comments.

Requirements
  1. You need Opencart preinstalled. Opencart is available at
  2. You must have vQmod preinstalled.
Installation
  1. Download the latest version of the extension compatible with your version of Opencart from http://www.opencart.com/index.php?route ... on_id=6371
  2. Unzip using a program such as WinZip, WinRar or Windows's inbuilt compressor
    (In Windows, right click on the downloaded zip file, and select Extract All)
  3. Use an FTP program such as FileZilla to upload all contents of the uploads folder to your shop's root.
And then?
And then nothing. You're all done. There are no configurations or admin options. Once you are done with the above steps, the extension should start working. You as store owner should get exactly the same email that your customer receives upon placing an order. Simple!

I'm not getting any order confirmation emails

Were you getting any order confirmation emails before installing this extension? This extension does NOT deal with sending of emails, only with the CONTENT.

Go to AP > System Settings > Mail, and ensure that New Order Alert Email is set as Yes. If you are still not receiving mails, you are facing a more generic issue regarding you SMTP etc. Search these forums for a solution.

What else does this mod do?

This mod is designed to do one thing only - to send the exact same order confirmation email to shop admin as it sends to the customer.

Will this mod add product photos to the email?

If you use Product Photos mod to add photos to order confirmations sent to customers, then admin emails will also include product photos.

Advertising
This mod adds my link to your site's footer (next to the Opencart link). It would be nice if you don't remove it. If you do remove it, please consider donating.

Extension page: http://www.opencart.com/index.php?route ... on_id=6371

Re: @tik Copy customer order confirmation for owner

Posted: Tue Jul 03, 2012 6:22 am
by ninogui
This is a great mod

only thing missing comparing to the default email to shop admin (oc 1531) is the order status as defaulted (pending, processing etc) although that´s missing on the default code as well

If you wanna take a look at that would be nice, if not well no harm done

best rgds

Re: @tik Copy customer order confirmation for owner

Posted: Tue Jul 03, 2012 11:07 am
by OC2PS
Thanks for the suggestion. At the moment, I am not planning to add that - the intent of this mod is to simply replicate the email not to modify it. A separate mod may enhance the content of the email, e.g. http://www.opencart.com/index.php?route ... on_id=7102

Re: @tik Copy customer order confirmation for owner

Posted: Thu Jul 12, 2012 6:22 pm
by chase213@live.com
Hi bro I need your help

When customer buy from my shop I only got notification on registration i did not get notification when they place order with liberty reserve or paypal

Please can you helpme out on this, I want my store to notify me whenever they made payment on my store

thanks

Re: @tik Copy customer order confirmation for owner

Posted: Thu Jul 12, 2012 6:50 pm
by OC2PS
AP > System > {Edit Store} > Mail
Mark "New Order Alert Mail:" as Yes

Re: @tik Copy customer order confirmation for owner

Posted: Tue Jul 24, 2012 12:13 am
by garydee77
hi there can you tell me this?

our shop on the products asks the user to input a gift card text option as well as colour and size option

I would like these displayed on the order email

do all optional options get added on also int he final email to us and the customer?

Thanks

Re: @tik Copy customer order confirmation for owner

Posted: Tue Jul 24, 2012 12:17 am
by OC2PS
Everything that goes into the customer email also goes into the email to store owner.

Re: @tik Copy customer order confirmation for owner

Posted: Mon Aug 13, 2012 5:12 am
by matrix4495
not able to download

Error: Could not find file tik-Copy-customer-order-confirmation-for-owner-1-0.zip!

Re: @tik Copy customer order confirmation for owner

Posted: Mon Aug 13, 2012 3:02 pm
by OC2PS
There was a problem with the Opencart Extensions repository. Daniel is working to restore it. Thanks for your patience.

Re: @tik Copy customer order confirmation for owner

Posted: Thu Aug 23, 2012 7:56 pm
by i2Paq
Does this work with 1.5.4.x?

Re: @tik Copy customer order confirmation for owner

Posted: Thu Aug 23, 2012 8:00 pm
by OC2PS
i2Paq wrote:Does this work with 1.5.4.x?
Yup

Re: @tik Copy customer order confirmation for owner

Posted: Thu Aug 23, 2012 8:04 pm
by i2Paq
So this sens the same e-mail to me, the owner, as my customer gets?

Hmm, did not check the "product" page ;)

Would it be easy to change the subject of the e-mail to the owner?

Re: @tik Copy customer order confirmation for owner

Posted: Thu Aug 23, 2012 8:26 pm
by OC2PS
i2Paq wrote:Would it be easy to change the subject of the e-mail to the owner?
It wouldn't be too hard. Right now, I just shortcircuit the process of generating email content for the store-owner. You'll probably just have to add one line of code to change the subject.

Re: @tik Copy customer order confirmation for owner

Posted: Thu Aug 23, 2012 8:35 pm
by i2Paq
OC2PS wrote:
i2Paq wrote:Would it be easy to change the subject of the e-mail to the owner?
It wouldn't be too hard. Right now, I just shortcircuit the process of generating email content for the store-owner. You'll probably just have to add one line of code to change the subject.
Any hints ;)

This because I'm not a coder.

I see:

Code: Select all

	<file name="catalog/language/english/common/footer.php">
		<operation>
			<search position="replace" offset="1" error="log"><![CDATA[$_['text_newsletter']   = 'Newsletter';]]></search>
			<add><![CDATA[$_['text_newsletter']   = 'Newsletter';
$_['text_powered']      = 'Powered By <a href="http://www.opencart.com">OpenCart</a> and <a href="http://www.csillamvilag.com">OC2PS</a><br /> %s &copy; %s';]]></add>
		</operation>
	</file>
So I probably have to do the same on a certain file with Subject etc.?

Any help highly appreciated :)

Re: @tik Copy customer order confirmation for owner

Posted: Thu Aug 23, 2012 9:19 pm
by OC2PS
Right! I forgot that OpenCart actually has a single subject, not just my extension.

There are a few additional changes that need to be made to change the subject. What would you like the subject for shop owner to be?

Re: @tik Copy customer order confirmation for owner

Posted: Thu Aug 23, 2012 9:24 pm
by i2Paq
OC2PS wrote:Right! I forgot that OpenCart actually has a single subject, not just my extension.

There are a few additional changes that need to be made to change the subject. What would you like the subject for shop owner to be?
Just: "You received a new order at <insert Store name>"

If possible in Multi language.

Re: @tik Copy customer order confirmation for owner

Posted: Thu Aug 23, 2012 9:51 pm
by OC2PS
Try the attached file

Re: @tik Copy customer order confirmation for owner

Posted: Thu Aug 23, 2012 11:41 pm
by i2Paq
Your the man!

Code: Select all

---------- Date: 2012-08-23 17:37:51 ~ IP : 217.120.214.245 ----------
REQUEST URI : /index.php?route=checkout/success
MOD DETAILS:
   modFile   : /var/www/vhosts/australiangoldwinkel.nl/httpdocs/vqmod/xml/vq-replicate-customer-order-confirmation-email-for-owner.xml
   id        : @tik Copy customer order confirmation for owner
   version   : 1
   vqmver    : 2.1.6
   author    : OC2PS
SEARCH NOT FOUND (ABORTING MOD): $_['text_newsletter']   = 'Newsletter';

----------------------------------------------------------------------
This means that the search for Newsletter does not work, can I just remove this?

Re: @tik Copy customer order confirmation for owner

Posted: Thu Aug 23, 2012 11:53 pm
by OC2PS
The search for newsletter is just to place my link in your English shop's footer. You can remove it, though obviously I'd prefer if you didn't.

The new subject is multilingual. You'll need to add a new variable to your language files (except English - because I've already done that in the extension) catalog/language/name_of_language/mail/order.php

Code: Select all

$_['text_new_owner_subject']          = 'You received a new order at %s';
(obviously replace You received a new order at with an appropriate translation.

Re: @tik Copy customer order confirmation for owner

Posted: Thu Aug 23, 2012 11:55 pm
by i2Paq
If you fix the error with the Newsletter I leave it in ;)

The translation for You received a new order at in Dutch is: U heeft een nieuwe bestelling ontvangen bij

Just copied and adjust that part in the xml.