What about 2 coupons into a single order ?


  • Default avatar
    alain49    
     11 years ago
    0

    Hi,
    One of my clients use Awocoupon for its virtuemart 1.1.9/Joomla 1.5.26 website.
    It work fine but... She has several coupons : If you purchase 5 Conference CD items, you got 10 € rebate. If you purchase 3 books of a kind, you get 5 € rebate.

    Unfortunatly, customer can get only one coupon in each order. If he purchase 5 CD AND 3 books, after he check coupon for one or twice, he can't input another one. for an other rebate.

    Any idea ?

    I apologize for my poor english. I'm french... ;-).
  • Your avatar
    seyi    
     11 years ago
    0

    Hello,

    in awocoupon->configuration enable multiple coupons
    in awocoupon->installation check, make sure persistent coupon field is installed

    With those you should then be able to enter multiple coupons in one order.
  • Default avatar
    alain49    
     11 years ago
    0

    Hi Seyi,
    I apologize to not have spend enough time to find this possibility...
    Best regards.
    Alain
  • Default avatar
    beth40    
     11 years ago
    0

    I'm having a similar issue, but I do not see an 'installation check' or reference to a 'persistent coupon field'. We are using AwoCoupon 2.1.3, Joomla 2.5.8 and HikaShop 1.6.0 and I do have "Allow multiple coupons' enabled.

    I have an automatic discount shipping coupon being applied to the order in question. I need to be able to apply a second automatic discount as well as a user supplied coupon code. How can I accomplish this? Thank you!
  • Your avatar
    seyi    
     11 years ago
    0

    Hello,

    You cannot apply multiple automatic discounts. But you can put all the discounts in one coupon and run that. So create coupon number 3, set the function type to parent, select the first 2 coupons, and set the process type to 'all that apply'. Then add this coupon to your automatic discounts.
  • Default avatar
    beth40    
     11 years ago
    0

    Thank you, Seyi! That will solve my automatic discount issue.

    How can I address the coupon code field for user supplied coupon codes? Currently, because of the automatic discount, the coupon field is not displayed. How do I enable this "Persistent Coupon Field" plugin for the version I'm using?
  • Your avatar
    seyi    
     11 years ago
    0

    Virtuemart 2 coupon field is automatically persistent. If you do not see it then it is not enabled. Go to virtuemart->configuration and check the box for 'Enable coupon usage'.
  • Default avatar
    beth40    
     11 years ago
    0

    I'm using HikaShop, though. Is there a solution for HikaShop to make the coupon field persistent, even when an automatic discount is being applied?
  • Your avatar
    seyi    
     11 years ago
    0

    Yes, the default hikashop coupon system eliminates the coupon box after a coupon has been accepted, but if you have the awocoupon plugin enabled, it should automatically keep it open. Worst case scenario you can create an override of the coupon code.

    copy the file
    www/components/com_hikashop/views/checkout/tmpl/coupon.php

    to the below (if it does not exist already)
    www/templates/[YOUR_TEMPLATE]/html/com_hikashop/checkout/coupon.php

    Then in the template file, remove the if statement. So the code should go from
        <?php
        
    if(empty($this->coupon)){
            echo 
    JText::_('HIKASHOP_ENTER_COUPON');
            
    ?>
            <input id="hikashop_checkout_coupon_input" type="text" name="coupon" value="" />
        <?php
            
    echo $this->cart->displayButton(JText::_('ADD'),'refresh',$this->params,hikashop_completeLink('checkout'),'',' onclick="return hikashopCheckCoupon(\'hikashop_checkout_coupon_input\');"');
        }else{
            echo 
    JText::sprintf('HIKASHOP_COUPON_LABEL',@$this->coupon->discount_code);
            global 
    $Itemid;
            
    $url_itemid='';
            if(!empty(
    $Itemid)){
                
    $url_itemid='&Itemid='.$Itemid;
            }
            
    ?>
            <a href="<?php echo hikashop_completeLink('checkout&task=step&step='.($this->step+1).'&previous='.$this->step.'&removecoupon=1'.'&'.JUtility::getToken().'=1'.$url_itemid); ?>"  title="<?php echo JText::_('REMOVE_COUPON'); ?>" >
                <img src="<?php echo HIKASHOP_IMAGES 'delete2.png';?>" alt="<?php echo JText::_('REMOVE_COUPON'); ?>" />
            </a>
        <?php }?>


    to
        <?php
            
    echo JText::_('HIKASHOP_ENTER_COUPON');
            
    ?>
            <input id="hikashop_checkout_coupon_input" type="text" name="coupon" value="" />
        <?php
            
    echo $this->cart->displayButton(JText::_('ADD'),'refresh',$this->params,hikashop_completeLink('checkout'),'',' onclick="return hikashopCheckCoupon(\'hikashop_checkout_coupon_input\');"');
            echo 
    JText::sprintf('HIKASHOP_COUPON_LABEL',@$this->coupon->discount_code);
            global 
    $Itemid;
            
    $url_itemid='';
            if(!empty(
    $Itemid)){
                
    $url_itemid='&Itemid='.$Itemid;
            }
            
    ?>
            <a href="<?php echo hikashop_completeLink('checkout&task=step&step='.($this->step+1).'&previous='.$this->step.'&removecoupon=1'.'&'.JUtility::getToken().'=1'.$url_itemid); ?>"  title="<?php echo JText::_('REMOVE_COUPON'); ?>" >
                <img src="<?php echo HIKASHOP_IMAGES 'delete2.png';?>" alt="<?php echo JText::_('REMOVE_COUPON'); ?>" />
            </a>



  • Default avatar
    beth40    
     11 years ago
    0

    This comment has been moved here.
  • Default avatar
    beth40    
     11 years ago
    0

    I've created this file - www/templates/[YOUR_TEMPLATE]/html/com_hikashop/checkout/coupon.php - and applied the changes. That resolved the issue for me. Thanks!