[Resolved] Gift Certificate "Value Used" remains 0 after use; correct amount not deducted from order


  • Default avatar
    3by400Inc    
     11 years ago
    0

    Thanks! Also, now that I'm using a parent template, the value of the gift certificate is blank in the gift certificate email (profile). In my custom profile I'm using the {vouchers} tag which is displaying:

    Gift Certificate: uewoirjesfjsdlk
    Value:

    How can I remove "Value:"? I tried making the changes in Configuration for the {vouchers} field but that didn't have an effect.
  • Your avatar
    seyi    
     11 years ago
    0

    Hello,

    You can edit the code directly:
    in www/administrator/components/com_awocoupon/helpers/estore/estoregiftcerthandler.php, search for the below and edit it:
    <?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";
    ?>