Gift certificate email format


  • Default avatar
    peter49    
     11 years ago
    0

    Hi, I have created an email profile for sellable gift vouchers.

    The tag {vouchers} generates this output:

    Gift Certificate: y5CmQnr4sEz
    Value: € 42,50
    Expiration: 2014-01-07 23:59:59

    My questions:
    Why doesn't the tag listen to the site language (should be Dutch, nl-NL.com_awocoupon.ini is present + I have created overrides for COM_AWOCOUPON_GC_GIFTCERT etc. but to no avail)?
    Can I get a Euro sign € with the voucher price?
    Can the time stamp be deleted from the expiration date?

    Thanks for helping out!
    peter
  • Your avatar
    seyi    
     11 years ago
    0

    Hello Peter,

    You can alter the {vouchers} tag in the code:
    in www/administrator/components/com_awocoupon/helpers/estore/estoregiftcerthandler.php, around line 161 is this
    <?php
        $text_gift 
    .=     JText::_('COM_AWOCOUPON_GC_GIFTCERT').': '.$row['code']."\r\n".
                        
    JText::_('COM_AWOCOUPON_CP_VALUE').': '.$row['price']."\r\n".
                        (!empty(
    $row['expiration']) ? JText::_('COM_AWOCOUPON_CP_EXPIRATION').': '.trim($row['expiration'],'"')."\r\n":'').
                        
    "\r\n";
    ?>


    You can remove the expiration
    <?php
        $text_gift 
    .=     JText::_('COM_AWOCOUPON_GC_GIFTCERT').': '.$row['code']."\r\n".
                        
    JText::_('COM_AWOCOUPON_CP_VALUE').': '.$row['price']."\r\n".
                        
    "\r\n";
    ?>