Maximum Value for a current coupon


  • Default avatar
    vollanddzaft    
     6 years ago  last edited 6 years ago
    0

    I think this option needs to be added. Will this option be in the next update?

    Thanks

  • Your avatar
    seyi    
     6 years ago
    0

    by maximum value, you mean the maximum amount the coupon can be discounted?  If so, it already exists.  Under the 'value' field is the 'maximum discount amount'.
  • Default avatar
    vollanddzaft    
     6 years ago  last edited 6 years ago
    0

    I mean this: if a client orders at specific sum, for example 250$. I have a coupon with Minimum Value set at 200$ then he has a specific discount equal to 5%. And I want to use another coupon with another discount if the sum is, for example, is bigger than 500$ - discount is 10%. So far if I use 2 coupons the discount will summarise and will be 15% and I don't need that - I need a specific coupon to work in defined minimum and maximum value. My question is about a Maximum Value for a specific coupon how can I manage that?
  • Your avatar
    seyi    
     6 years ago
    0

    Oh ok, I see, you can do this with one coupon, a combination coupon:

    Coupon a: 5% discount, min value 200
    Coupon b: 10% discount, min value 500
    ....
    Combo coupon: combination coupon where you add all the coupons created from highest value to lowest, and set process type to first found match.  Then use the combo coupon.
  • Default avatar
    vollanddzaft    
     6 years ago
    0

    Hi, here’s what we got:

    I Have 3 coupons for 1 specific category:

    1 - 10% discount at Minimum Value of 1000$

    2 - 20% discount at Minimum Value of 5000$

    3 - 30% discount at Minimum Value of 10000$

    Generally, if I put products into a cart with total 7000$ it will apply 2 coupons and will make a discount of 2 coupons 10+20=30% discount. I need avocoupon to apply 1 specific coupon without putting them together. Here’s what I did:

    I made a combo coupon added all three coupons and chose process type: first found match.

    I published all the coupons and that’s what happened in the cart (real numbers):

    I put a product form a needed category into the cart, it’s basic real value is 4118$

    A discount that the coupon gave is 782.42$ - it is not 10%, and if I turn off the combo coupon it works fine and the discount is 411,8$ - 10% from the sum.

    I turn on the combo coupon and add another item to the cart so the sum is 8236$, and the discount is 2899,07 and I need the avocoupon to switch to the second coupon and give a discount equal to 20% as it was set at the beginning. I chose different process types in the combo coupon and it still doesn’t work – how can we fix this? Thanks

  • Your avatar
    seyi    
     6 years ago
    0

    Do you have all the coupons in automatic discount?  If so remove them all except for the combo coupon.
  • Default avatar
    vollanddzaft    
     6 years ago  last edited 6 years ago
    0

    Yes it works, thanks, but in this case in the cart it shows the name of the combo coupon - is there any possibility to show the name of a specific coupon that is applied at the particular case? A client may not know what discound grid has this category or brand, and it would be much suitable for a client to know what discound is applied in his order, for example "10% discount - 1250$" if sum is bigger and combo coupon uses another coupon, it shows iis name like "20% discount - 2500$" - all the coupons have their names through {customer_display_text:20% discount} - is it possible?
  • Your avatar
    seyi    
     6 years ago
    0

    Unfortunately no, only shows the combo discount name.
  • Default avatar
    vollanddzaft    
     6 years ago
    0

    One more question. I have two coupons applied for two different items in a cart. The discount sum calculated for all items. How can I display a discount for each coupon before the total discount?

    For example

    ART               Price              Discount                  Total

    AC966J              500                                                 950

    AC966B              450

                 Coupon 1                             ?                                      123

                 coupon 2                             ?

  • Your avatar
    seyi    
     6 years ago
    0

    Is this joomla? Virtuemart?  You would have to override the cart template, which is here for joomla:

    www/components/com_virtuemart/views/cart/tmpl/default_pricelist.php

    to be overriden here if not already exists
    www/templates/[YOUR_TEMPLATE]/html/com_virtuemart/cart/default_pricelist.php

    Then modify the coupon section.

    Awocoupon info is found here:
    <?php
    $awocoupon 
    AC()->storediscount->get_coupon_session();
    ?>

  • Default avatar
    vollanddzaft    
     6 years ago
    0

    I have this code:

    <?php
     
    // Show applied discount coupon if enabled 
    ?>

    <?php
     
    if (VmConfig::get('coupons_enable') && !empty($this->cart->cartData['couponCode'])) : 
    ?>

    <tr class="cart-coupon-row">

    <td class="coupon-form-col" colspan="

    <?php
     
    echo $subheading_colspan 
    ?>
    " align="left">

    <span>

    <?php
     
    echo JText::_('COM_VIRTUEMART_COUPON_DISCOUNT'
    ?>
    :</span>

    <div class="coupon-details">

                                <span style="color:#fb3f4c">

    <?php
     
    echo JText::_('COM_VIRTUEMART_COUPON_DISCOUNT_SKIDKA'
    ?>
    </span>
    <?php
     
    echo $this->cart->cartData['couponCode'];
    ?>

    <?php
     
    echo $this->cart->cartData['couponDescr'] ? (' (' $this->cart->cartData['couponDescr'] . ')' ): ''
    ?>


    </div>

    </td>

    <?php
     
    if(VmConfig::get('show_tax')) : 
    ?>

    <td style="color:#fafafa" class="col-tax nowrap" align="right">

    <?php
     
    echo $this->currencyDisplay->createPriceDiv('couponTax'''$this->cart->cartPrices['couponTax'], false); 
    ?>

    </td>

    <?php
     
    endif; 
    ?>

    <td class="col-discount"></td>

    <td class="col-total nowrap" align="right">

    <?php
     
    echo $this->currencyDisplay->createPriceDiv('salesPriceCoupon'''$this->cart->pricesUnformatted['salesPriceCoupon'], false); 
    ?>

    </td>

    </tr>

    <?php
     
    endif; 
    ?>


    Where should i apply yours modify?