Prestashop My Account Coupons


  • Default avatar
    giles0    
     10 years ago
    0

    Firstly is it intended that when a customer buys a gift certificate and has that certificate emailed to someone else as a gift that an entry is still made under My Account > My Coupons? This seems a litle odd as a) the purchaser could then accidentally use the coupon that they have sent to someone as a gift b) the purchaser can track when voucher used.

    Secondly, is there any way to format the date displayed here:

    1) on My Account > My Vouchers display
    2) when using {vouchers} shortcode via edit Profile email section

    Thanks
  • Your avatar
    seyi    
     10 years ago
    0

    Hello,

    1) you could do it through the template, coupons.tpl, or create a new date string in /modules/awocoupon/classes/front/coupons.php to be passed to smarty
    2) it is not possible in this version without editing the code directly.
    in /modules/awocoupon/lib/giftcerthandler.php, search for this string:
    <?php
                    $text_gift 
    .=     $myawocoupon->l('Gift Certificate').': '.$row['code']."\r\n".
                                    
    $myawocoupon->l('Value').': '.$row['price']."\r\n".
                                    (!empty(
    $row['expiration']) ? $myawocoupon->l('Expiration').': '.trim($row['expiration'],'"')."\r\n":'').
    ?>