Support Forums

Coupon/Discount user notification

This is a discussion on Coupon/Discount user notification within the Modules / Plugins / Modifications forums, part of the Developer Forums category; Hi, I'm using Snail Mail as notification orders module and i would like to know if there is a way ...


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

Reply
 
Thread Tools Display Modes
Old 05-13-2009, 09:41 AM   #1
Member
 
Join Date: Apr 2009
Location: France
Posts: 57
Rep Power: 11
kayfi is on a distinguished road
Question Coupon/Discount user notification

Hi,

I'm using Snail Mail as notification orders module and i would like to know if there is a way to notificate a user each time one his coupon/discount is used for a purchase...
I hope someone be able to help !

Regrads....
__________________
v 4.1.3 Developer
Default templates
kayfi is offline   Reply With Quote
Old 05-13-2009, 10:03 AM   #2
curmudgeon
 
Join Date: Mar 2006
Posts: 5,413
Rep Power: 138
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

Quote:
Originally Posted by kayfi
Hi,

I'm using Snail Mail as notification orders module and i would like to know if there is a way to notificate a user each time one his coupon/discount is used for a purchase...
I hope someone be able to help !

Regrads....
Im not sure I am following your question so let me try and rephrase to se if I understand corectly.

For starters the snail mail module is designed to give the user feedback when an ad is placed. By default when an ad is placed and there is a cost associated with it and a payment method is chosen that does not make an order immediately completed the user is never notified the ad was placed AND the listing dos not appear to them on the site, except under their account page.

With that in mind the snail mail module is designed to give the user feedback letting them know the ad was placed by sending them an e-mail as well as displaying a custom thanks.tpl template page so you can give them payment instruction.

Now, if a coupon/discount is used and there is no money due to pay for an ad, the ad should be immediately visible and the 68C system should automatically send them an email, which I recently noticed it does not and I have submitted a bug report for this. So, having the snail mail mod do it would result in e-mails at the same time which wasnt wanted by anyone.

If you want the snail mail module to send an e-mail regardless of whether or not moeny is owed, then open the following file...

/modules/snail_mail/hooks.php

around line 121 look for the following line...

if(isset($_REQUEST['gateway']) && $_REQUEST['gateway']=="check" && $_REQUEST['fomatTotal'] != "0.00")

and change it to....

if(isset($_REQUEST['gateway']) && $_REQUEST['gateway']=="check")

.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Old 05-13-2009, 02:59 PM   #3
Member
 
Join Date: Apr 2009
Location: France
Posts: 57
Rep Power: 11
kayfi is on a distinguished road
Default

Hi Larry,

First, i'd like to thank you for the time you have spent to answer my topic.
I'm gonna try to explain myself better.
For example, i create 10 coupons for one of my member, i will call him MemberX. Those coupons offer a reduction of 20% on every purchase on my site.
Each time a member uses this coupon, i'd like to notify MemberX, as i'm notified of a new purchase.
It's for giving back to MemberX a part of each purchase made with his coupons and to notify him, as an honnest partner...

Am i more clear on what do i need ?
I'm sorry but my english is not quiet perfect as yours.
Regards,
Yves.
__________________
v 4.1.3 Developer
Default templates
kayfi is offline   Reply With Quote
Old 05-13-2009, 03:15 PM   #4
curmudgeon
 
Join Date: Mar 2006
Posts: 5,413
Rep Power: 138
Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light Lhotch is a glorious beacon of light
Default

68C should be sending the user an e-mail every time an ad order is COMPLETE. This means that if they chose the payment type of "check or money order" the e-mail doesnt actually get sent until the check arrives and the site admin logs in and marked the order as completed.

This does not seem to currently be working though as I have mentioned above and I submitted a bug report about it.

Is this one e-mail enough or are you looking to send an additional e-mail?

If you are looking at sending an e-mail in adition to the default AND only when a coupon is used, thats going to take a bit of PHP knolegde and some time creating and testing custom code.
__________________
Larry

Knowledge learned is more valuable than knowledge given.
Lhotch is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
coupon / discount newone Technical Support 1 07-06-2007 05:43 PM


All times are GMT -4. The time now is 07:25 AM.


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