Support Forums

Send a receipt to the customer after order

This is a discussion on Send a receipt to the customer after order within the Modules / Plugins / Modifications forums, part of the Developer Forums category; Currently this program sends out no order receipt to the customer, however the admin receives notification of every new order ...


Go Back   68 Classifieds Forums > Developer Forums > Modules / Plugins / Modifications

Reply
 
Thread Tools Display Modes
Old 05-23-2008, 08:19 PM   #1
Senior Member
 
Join Date: Jun 2007
Posts: 110
Rep Power: 13
crystal is on a distinguished road
Lightbulb Send a receipt to the customer after order

Currently this program sends out no order receipt to the customer, however the admin receives notification of every new order placed in a "new order" email.

Is there an easy way to copy (cc) the "new order" email that is sent to the admin to the customer?

I have a feeling it is one line of code but I don't know which file to put it in.

This would serve as a receipt once the email template is edited. I think it is important for the customer to know their order was placed successfully and have a link back to the site to manage their listings.

Thanks for your help
__________________
Crystal
v4.0.8 Dev
crystal is offline   Reply With Quote
Old 05-27-2008, 04:10 PM   #2
Senior Member
 
Join Date: Jun 2007
Posts: 110
Rep Power: 13
crystal is on a distinguished road
Default

Is anyone interested in sending their customer a receipt or notification after they place an ad? The script seems to have the email system in check, I am surprised such an important one is missing. Every classified site I've ever placed an ad on sends a confirmation email - free or paid.

How do I send a receipt to the customer? I'm willing to give up the convenient link in my admin "new order" email just to send something to the customer. How do I cc the "new order" email?

Thanks
__________________
Crystal
v4.0.8 Dev
crystal is offline   Reply With Quote
Old 05-27-2008, 04:29 PM   #3
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,315
Rep Power: 125
Eric Barnes is a jewel in the rough
Default

Crystal,

I just had a look and it doesn't that simple. However I think you can change this in the includes/classes/kernel/Orders.php file.

First find this (Around line 499):
Code:
$user=Users::getUserNameById($rs['oOwnerID']);
Just below it add:
Code:
$rs['useremail']=$user['email'];
Next find this (Around line 725):
Code:
$to=ADMIN_EMAIL;
$content='neworder.tpl';
$vars=$this->getOrderById($orderid);
$Mailer->sendMail($to, $content, $vars);
Replace it with:
Code:
//This should send to the user
$vars=$this->getOrderById($orderid);
$to=$vars['useremail'];
$content='neworder.tpl';
$Mailer->sendMail($to, $content, $vars);
//This should send the same email to admin
$to=ADMIN_EMAIL;
$content='neworder.tpl';
 $Mailer->sendMail($to, $content, $vars);
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 05-28-2008, 01:13 AM   #4
Senior Member
 
Join Date: Jun 2007
Posts: 110
Rep Power: 13
crystal is on a distinguished road
Default

Hi Eric,
Thanks for posting this code! Tried it with no luck. I made the changes and it isn't sending an email to the user. The admin still gets emails. I have placed several orders and haven't seen any email on the user end.

One thing I did notice is now the user email address is missing out of the email that is sent to admin (under customer info).
__________________
Crystal
v4.0.8 Dev
crystal is offline   Reply With Quote
Old 07-30-2008, 03:44 PM   #5
Member
 
Join Date: May 2008
Location: Madison, WI
Posts: 77
Rep Power: 8
jonahcoyote is on a distinguished road
Exclamation

I'm pretty surprised that this is not a feature of the system. I agree with Crystal that when you place an order online you always get an email receipt. This is your proof of a transaction taking place. If you were to place an order on Amazon, and then not get an email receipt, you'd be wondering did my order go through? This is the same thing in 68C or anywhere you pay for something online.

I tried this modification in 4.0.4 dev, but like Crystal, no luck.

Any other ideas on how to get this to work? I would highly recommend placing this as a feature of the system in a future version.

Thanks,
Jonah
__________________
- Jonah


4.0.8 Developer
http://www.jonahcoyote.com
jonahcoyote is offline   Reply With Quote
Old 07-30-2008, 04:03 PM   #6
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,315
Rep Power: 125
Eric Barnes is a jewel in the rough
Default

I just added this to our tracker so I remember it for the next release.
http://www.68classifieds.com/forums/...hp?issueid=165
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 07-30-2008, 04:31 PM   #7
Member
 
Join Date: May 2008
Location: Madison, WI
Posts: 77
Rep Power: 8
jonahcoyote is on a distinguished road
Default

Sweet, thanks Eric!
__________________
- Jonah


4.0.8 Developer
http://www.jonahcoyote.com
jonahcoyote is offline   Reply With Quote
Old 08-01-2008, 02:45 PM   #8
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,315
Rep Power: 125
Eric Barnes is a jewel in the rough
Default

I just coded this in today. Would either of you want to be a guinea pig and test it? If so just shoot me a pm.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
MODIFICATION: Upgraded thanks.tpl page cwp Modules / Plugins / Modifications 32 07-13-2009 02:37 PM
Customer order emails crystal Technical Support 2 05-21-2008 01:17 AM
Category Order in drop down "Place an Ad" Greg H v3.1 Questions & Support 13 12-08-2007 10:12 PM
Contents of customer e-mail getsmart v3.1 Questions & Support 3 07-18-2007 09:23 PM
printable order (customer side) frommarcq Technical Support 0 05-13-2007 11:06 AM


All times are GMT -4. The time now is 06:43 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0