Gift Certificate code in email

Hi, have an issue where there is no gift code in the email sent to the customer.

I have found the problem in bug tracker but am not sure how to implement this.



Any help would be greatly welcomed



Vers 1.35 sp3

[quote name=‘trevorl31’]Hi, have an issue where there is no gift code in the email sent to the customer.

I have found the problem in bug tracker but am not sure how to implement this.



Any help would be greatly welcomed



Vers 1.35 sp3[/QUOTE]

In order to fix this bug you should modify the “gift_certificates.php” file located in the “addons/gift_certificates/include/admin” directory of your CS-Cart.

Please remove this part of the code:


if (isset($gift_cert_data['gift_cert_code'])) {
unset($gift_cert_data['gift_cert_code']);
}


and replace this line of the code:


if (!defined('GIFT_CERTIFICATE_EMAIL_SENT') && !empty($notify_user) && $gift_cert_data['email'] && $gift_cert_data['send_via'] == 'E') {


with this one:


if (!defined('GIFT_CERTIFICATE_EMAIL_SENT') && !empty($notify_user) && $notify_user == 'Y' && $gift_cert_data['email'] && $gift_cert_data['send_via'] == 'E') {


save the file.

Thank for your help.

Brill

You are welcome!

Hey thanks for the fix. Unfortunately this didn’t fix the Free Products option in the Gift Certificate, the products don’t show in the Gift Certificate email. Any idea how to fix this as well?



Thanks

[quote name=‘gugga7’]Hey thanks for the fix. Unfortunately this didn’t fix the Free Products option in the Gift Certificate, the products don’t show in the Gift Certificate email. Any idea how to fix this as well?



Thanks[/QUOTE]

Is this a bug or not? Is it fixed in 1.3.5 SP4?



Thank you.

[quote name=‘joe’]Is this a bug or not? Is it fixed in 1.3.5 SP4?



Thank you.[/QUOTE]



I have just checked this in default CS-Cart version 1.3.5 SP4 and Free Products have been displayed in the Gift Certificate e-mail.