Support Forums

Old 03-28-2009, 05:49 AM   #1
Member
 
Bronxgodzilla's Avatar
 
Join Date: Jun 2008
Posts: 56
Rep Power: 5
Bronxgodzilla is on a distinguished road
Default Passing smarty vars to emails

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
Bronxgodzilla is offline   Reply With Quote
Old 03-28-2009, 11:42 AM   #2
Moderator
 
 
Join Date: Mar 2006
Posts: 3,989
Rep Power: 97
Lhotch is just really niceLhotch is just really nice
Default

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
Lhotch is offline   Reply With Quote
Old 03-28-2009, 01:32 PM   #3
Member
 
Bronxgodzilla's Avatar
 
Join Date: Jun 2008
Posts: 56
Rep Power: 5
Bronxgodzilla is on a distinguished road
Default

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
Bronxgodzilla is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 12:39 PM.


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