Display coupon (front end) % and Balance


  • Default avatar
    andrea2    
     10 years ago
    0

    Hello,
    I noticed two little problems in the list of coupon side front end (List Coupon Codes)

    1 - Gift Card
    the Gift Card containing the "value" of purchase and the "balance". When the balance decreases in AwoCoupon (if the customer uses them) on the page of the front end is equal to the initial price.

    2 - Coupon & AwoReferral
    I configured AwoReferral with a discount of 10% for friends who register. I created a rule type "friend" in AwoReferral connected to a AwoCoupon coupon with 10% discount. Then , I created a page on my site to allow customers to view their coupons (List Coupon Codes). In this page the value of the coupon is 10.00 and I fear that it confused with a value of 10 €. Could be included a column indicating % or €?

    Regards,
    Andrea

    AWO Coupon V. 2.2.0
  • Your avatar
    seyi    
     10 years ago
    0

    Hello,

    Both will be fixed on the next update. In the meantime you can update your code:
    www/components/com_awocoupon/views/coupons/tmpl/default.php

    Right after the
    <?php
        
    foreach($this->rows as $row) {
    ?>


    Add
    <?php
            
    if (!class_exists'VmConfig' )) require JPATH_ADMINISTRATOR.'/components/com_virtuemart/helpers/config.php';
            
    VmConfig::loadConfig();
            require_once 
    JPATH_ADMINISTRATOR.'/components/com_virtuemart/helpers/currencydisplay.php';
            
    $currency_class CurrencyDisplay::getInstance('',1);
            
            
    $coupon_price '';
            if(!empty(
    $row->coupon_value))
                
    $coupon_price $row->coupon_value_type=='amount' 
                                
    $currency_class->priceDisplay($row->coupon_value)
                                : 
    round($row->coupon_value).'%';
            
            
    $balance_price '';
            if(isset(
    $row->balance)) $balance_price $currency_class->priceDisplay($row->balance)
    ?>


    And then change the values called as such:
                <td><?php echo $coupon_price?></td>
                <td><?php echo isset($row->balance) ? $balance_price '---'?></td>
                <td><?php echo $row->startdate?></td>
                <td><?php echo $row->expiration?></td>

  • Default avatar
    andrea2    
     10 years ago
    0

    Hello,
    when will be available the next release? I'd rather install the final one, because I am not practical of php ... and surely I'm wrong (I tried but does not work) ..
    thanks
  • Your avatar
    seyi    
     10 years ago
    0

    Within a week.
  • Default avatar
    andrea2    
     10 years ago
    0

    Hello Seyi,
    I received the following error while attempting to download the 2.2.2:

    "You have downloaded this file from too many different locations. Please contact the site administrator if this message has been received in error."

    I use different PCs (home, work) to create the site www.vapori.rcaweb.it (still testing), but it's still me.

    Can you help me?

    thanks
  • Your avatar
    seyi    
     10 years ago
    0

    Hi,

    Your account is updated, you can download it now.