BV Commerce Forum
»
BV Commerce Support
»
General Support
»
Updating Email Templates to Display Gift Certificates
Rank: Member
Joined: 10/11/2006(UTC) Posts: 162
Thanks: 1 times
|
Hi - I'm working to implement Gift Certificates, and following Satya's code have been able to get the amount to display on the website. However, I'm now looking to update the New Order and Admin Order email templates to also show the same information (so that the order handlers can figure out what's going on with each order). Has anyone successfully set up their templates to actually display the Gift Certificate amounts, and an updated Grand Total?
When I try and use the [code][[GiftCertificates.CertificateAmount]] code it tells me "This Email Template Could Not Replace All Tags. E-mail Will Not Be Sent" which I'm assuming means that those tags are not available in any template outside of the Gift Certificate order template. I'm a bit frustrated to see how much time/work is involved in setting up functionality that really should be working out of the box...
Thanks for your help,
: Greg
|
|
|
|
Rank: Member
Joined: 8/1/2007(UTC) Posts: 310
|
Dave Royce has already taken care of the email replacement tags. If you dont hear from him here, shoot me an email Greg. |
Thanks, Satya support @ bayquel.net Work: +1 803 883 3226 |
|
|
|
Rank: Member
Joined: 8/14/2008(UTC) Posts: 6
|
Hello Greg,
Satya helped us out a couple months back (thanks again Satya) and we did implement code that shows a line detailing the discounts for an order. This line is a sum of all the gift certificates used on the order. It's easier to follow the totaling of the order with this line in place and a gift certificate was used. The grand total then is the original grand total minus this gift certificate sum.
It sounds like you might be looking for more than just this though. Are you trying to list out each gift certificate used along with the amount used on that order? That is something we have not done.
The [[GiftCertificate.CertificateAmount]] replacement tag you are asking about is only used to my knowledge in the Gift Certificate Template. Please note that in your post you had an "s" in that tag, "GiftCertificates.CertificateAmount". In my BV installation this tag is not plural. In the core source (version 5 SP3.2) this tag is in the file: Catalog/GiftCertificate.vb. Here is the function which handles it:
[code] EndFunction
This is part of the GiftCertificate class and is dealing with a single gift certificate. I believe for what you are asking for would need to look at each gift certificate used in an order and then print out a line about that gift certificate. I do not believe this functionality is built in, at least in version 5 SP3.2.
David Royce
InfiNet Development, Inc.
|
|
|
|
Rank: Member
Joined: 10/11/2006(UTC) Posts: 162
Thanks: 1 times
|
Hi David -
Thanks for following up! I am just looking for the sum total of any Gift Certs used, not necessarily them broken out by each one. I'll give this a shot and see how it works.
Thanks,
: Greg
|
|
|
|
Rank: Member
Joined: 8/14/2008(UTC) Posts: 6
|
Hey Greg,
The replacement tags for that sum of the gift certificate line happen in the core project: Orders/Order.vb file - ReplacementTags() function is what kicks off the process. If you run into problems you can email me at droyce @ inetomaha.com
David Royce InfiNet Development, Inc.
|
|
|
|
Rank: Member
Joined: 8/1/2007(UTC) Posts: 310
|
Great that you guys have figured it out. BV Community is just awesome. |
Thanks, Satya support @ bayquel.net Work: +1 803 883 3226 |
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.