|
|
#1 |
|
Member
Join Date: Jun 2008
Posts: 56
Rep Power: 5 ![]() |
Hi All
Does anyone know what the smarty var would be for the ID of a coupon created in Admin, so I can pass its [TextName] into an email being generated by a sale? Cool idea, no? First I would create 100 coupons, but this would be a special advertising deal to my buying customers -- they only find out about it by buying an ad. Sure I can always write them personally. But wouldnt it be cool to just pass the var into the autogenerated Order confirmation email? Got thoughts? Got code? BarryG
__________________
Using Version 4.0.9 Developer Edition & loving it |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Mar 2006
Posts: 3,989
Rep Power: 97 ![]() ![]() |
The variables need to be assigned from php to smarty and then they can be used in a template. The php vars for coupons dont exist by default in the checkout process (unless one is used) so to grab one and send it off in an e-mail you need php to query the DB and get the coupon details and load them into php vars, then assign them to template vars.
__________________
Larry. (Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free) Set your site apart from the competition with one of my modules...... Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module 68 Classifieds Important Links Customer Area | Issue Tracker | Knowledge Base | User Manuals |
|
|
|
|
|
#3 |
|
Member
Join Date: Jun 2008
Posts: 56
Rep Power: 5 ![]() |
Hi Larry. This makes a lot of sense and is good stuff to meditate upon. It was during the install and review of one of your own great mods (Snail Mail) which brings the emailing system to graduate school level, that I saw what you were doing and hit upon the idea. Hah! finally a mod which works only on my version and not later ones Thank you for your cogent answer. hmmmm
BarryG
__________________
Using Version 4.0.9 Developer Edition & loving it |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Welcome emails have loooong From | petey | v4 Questions & Support | 4 | 01-24-2009 09:13 PM |
| Problem passing variables | HotAir | v3.1 Modules & Modifications | 2 | 04-01-2008 11:46 AM |
| No Emails | MADKing | Off Topic | 2 | 08-12-2007 02:53 PM |
| Passing Listing ID to notification emails | abkeller | v3.1 Questions & Support | 6 | 08-07-2007 10:20 PM |