Page 1 of 1
How to add custom data in the Email templates.
Posted: Mon Dec 01, 2008 7:57 am
by 93kalyan
I want to add a new text field "Referred by" in OnePageCheckout page and new field REFERRED_BY in Orders(not exactly, depending on the feasibility available) table. After placing the order, at the time of sending the email, I would like to send this referral ID with the “New Order” placed notification email. Is there any provision to achieve this? Please help me in getting this.
Thank you
Kalyan.Polasi
Re: How to add custom data in the Email templates.
Posted: Mon Dec 01, 2008 8:23 am
by mazhar
Regarding the custom field for orders, you can use the
ac_CustomFields table for this extra information. Read the following post about the
ac_CustomFields
viewtopic.php?f=42&t=8684
In order to use your own parameters you need to send the Email manually. Read the following post about how to send Email manually including your custom information.
viewtopic.php?f=42&t=8571
You can place this manual Email code in the CheckedOut method of the ConLib/OnePageCheckout control.
Re: How to add custom data in the Email templates.
Posted: Mon Dec 01, 2008 11:14 am
by 93kalyan
I was not clear with creating custom filed

. can you please xplain me in detail. .
Let me come up with my exact requirement:
If the customer logged in with the domain(I captured that informatin) name
SAMPLE, then at the time of Checkout page there should come one filed "
Referred by"(required field), and once he completed his payment processing then the "
New Order" email content should have the information of "
Referred by" value also. For this I m assuming we need to maintain that value in the database..!! Can you please guide me in finishing this requirement as I am new to asp.net coding.
Thanks in advance.
Kalyan.Polasi
Re: How to add custom data in the Email templates.
Posted: Mon Dec 01, 2008 1:04 pm
by mazhar
For this I m assuming we need to maintain that value in the database..!!
You can use the CustomField object to hold this extra information as I described in the above post. Here is a sample which uses CustomFields to store extra information for each product. You can provide a similar code for order
viewtopic.php?f=42&t=8651