How to fix prestashop mailalert no voucher code display?

My prestashop Version 1.1.0.5.

I have a problem with mailalert module before, which is the Voucher code and voucher value do not display in the email ‘New Order’.

If you have same problem, you can fix it in a minute.

Open file ‘/modules/mailalerts/mailalerts.php’.

Find line #106

$itemsTable .= '<tr style="background-color:#EBECEE;">
			   <td colspan="4" style="padding:0.6em 0.4em; text-align:right;">'.$this->l('Voucher code:').' '.$objDiscount->name.'</td>
			   <td style="padding:0.6em 0.4em; text-align:right;">-'.Tools::displayPrice($value, $currency, false, false).'</td>
		      </tr>';

Replace it to

$itemsTable .= '<tr style="background-color:#EBECEE;">
		          <td colspan="4" style="padding:0.6em 0.4em; text-align:right;">'.$this->l('Voucher code:').' '.$discount['description'].'</td>
			   <td style="padding:0.6em 0.4em; text-align:right;">-'.Tools::displayPrice($discount['value_real'], $currency, false, false).'</td>
		      </tr>'; 

All Done!

Download Free prestashop modules here

affiliate_link
Share this Post:
Digg Google Bookmarks reddit Mixx StumbleUpon Technorati Yahoo! Buzz DesignFloat Delicious BlinkList Furl

No Responses to “How to fix prestashop mailalert no voucher code display?”

Leave a Reply:

Name (required):
Mail (will not be published) (required):
Website:
Comment (required):
XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>