Gift Certificate Issue

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
Brewhaus
Vice Admiral (VADM)
Vice Admiral (VADM)
Posts: 878
Joined: Sat Jan 19, 2008 4:30 pm

Gift Certificate Issue

Post by Brewhaus » Wed Dec 02, 2009 7:21 pm

Similar to another post, we are finding that the Gift Certificate e-mail being sent to our customers does not have the certificate number included. Instead the customer gets:

The Gift Certificate $giftcertificate.Name is activated. You can view or print the details of your gift certificate using the information below.
$giftcertificate.Name: View Online

We are running 7.0.2 Build 11659, and only authorize payments at the time the order is placed. Once the order is paid we send the Gift Certificate Validated e-mail, but it is apparently not pulling the certificate information. Can anyone help on this? Tis the time of year for gift certificates.

Rick
Rick Morris
Brewhaus (America) Inc.
Hot Sauce Depot

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Gift Certificate Issue

Post by mazhar » Thu Dec 03, 2009 5:37 am

Make sure that your Gift Certificate Email template trigger is set to Gift Certificate Validated event. When order payments will be captured gift certificate will be validated and it will trigger Gift Certificate Validated event which will in turn send the Email notification with desired Gift Certificate information.

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Gift Certificate Issue

Post by jmestep » Thu Dec 03, 2009 6:28 am

You can add $giftcertificate.SerialNumber to the email.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

Brewhaus
Vice Admiral (VADM)
Vice Admiral (VADM)
Posts: 878
Joined: Sat Jan 19, 2008 4:30 pm

Re: Gift Certificate Issue

Post by Brewhaus » Thu Dec 03, 2009 10:08 am

I will add the serial number to the e-mail, however, what will fix the e-mail to actually show the gift certificate name instead of $giftcertificate.Name? The customer is literally seeing the code, not the name of the gift certificate.

Update: I ran a test and found that the ORIGINAL e-mail for the validation does send the gift certificate name and (now) serial number. However, sending a subsequent e-mail (when someone misplaces the first) does not include the information. Instead, it shows only the code.
Rick Morris
Brewhaus (America) Inc.
Hot Sauce Depot

Brewhaus
Vice Admiral (VADM)
Vice Admiral (VADM)
Posts: 878
Joined: Sat Jan 19, 2008 4:30 pm

Re: Gift Certificate Issue

Post by Brewhaus » Sat Dec 05, 2009 8:15 am

I have managed to add a printable certificate to the Gift Certificate Validated e-mail, which shows the value and serial number for the certificate. However, the value shows with 4 decimal places, not two (eg. $10.0000). How do we get this to round down to two decimal places?
Rick Morris
Brewhaus (America) Inc.
Hot Sauce Depot

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Gift Certificate Issue

Post by AbleMods » Sun Dec 06, 2009 6:52 am

Brewhaus wrote:However, the value shows with 4 decimal places, not two (eg. $10.0000). How do we get this to round down to two decimal places?
Append this to the reference of the dollar amount in your email template...

Code: Select all

.ToString("ulc")
So if you're pulling in an order line item amount, it would look like this in an email template:

Code: Select all

$orderItem.Price.ToString("ulc")
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

Brewhaus
Vice Admiral (VADM)
Vice Admiral (VADM)
Posts: 878
Joined: Sat Jan 19, 2008 4:30 pm

Re: Gift Certificate Issue

Post by Brewhaus » Sun Dec 06, 2009 8:05 am

Thanks, Joe. That was pretty simple. :-)
Rick Morris
Brewhaus (America) Inc.
Hot Sauce Depot

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Gift Certificate Issue

Post by AbleMods » Sun Dec 06, 2009 10:13 am

Simple, yes. Obvious, not always. Often I know something can be done simply because I remember seeing Able do it somewhere else. The challenge is remembering where I saw it :P
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

Brewhaus
Vice Admiral (VADM)
Vice Admiral (VADM)
Posts: 878
Joined: Sat Jan 19, 2008 4:30 pm

Re: Gift Certificate Issue

Post by Brewhaus » Sun Dec 06, 2009 10:43 am

So, you're admitting that you are challenged? :lol:
Rick Morris
Brewhaus (America) Inc.
Hot Sauce Depot

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Gift Certificate Issue

Post by AbleMods » Sun Dec 06, 2009 11:37 am

Brewhaus wrote:So, you're admitting that you are challenged? :lol:
second only to my cooking without creating A) smoke or B) a road trip :)
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

Post Reply