No error message displayed

  • Default avatar
     6 years ago

    AwoCoupon Pro is working as it should, however when entering an invalid coupon code no error message is displayed. I am making use of Linelab's OPC, could this have to do with it?
    When making use of Virtuemart's standard coupon function, the standard standard error message does get displayed.

    Below is the template override of the default_coupon.php the OPC uses.

    Thank you for helping me out with this.

    <input type="text" name="coupon_code" id="coupon_code" size="20" maxlength="50" class="coupon" alt="<?php echo $this->coupon_text ?>" value="<?php echo $this->coupon_text?>" onblur="if(this.value=='') this.value='<?php echo $this->coupon_text?>';" onfocus="if(this.value=='<?php echo $this->coupon_text?>') this.value='';" />
    <span class="details-button">
    <input class="details-button" type="button" title="<?php echo JText::_('COM_VIRTUEMART_SAVE'); ?>" value="<?php echo JText::_('COM_VIRTUEMART_SAVE'); ?>" onclick="set_coupon();"/>
    <!--<form method="post" id="userForm" name="enterCouponCode" action="<?php echo JRoute::_('index.php'); ?>">
        <input type="hidden" name="option" value="com_virtuemart" />
        <input type="hidden" name="view" value="cart" />
        <input type="hidden" name="task" value="setcoupon" />
        <input type="hidden" name="controller" value="cart" />

    Linelab One Page Checkout
    Virtuemart 2.0.6
    AwoCoupon Pro 2.1.2
  • Your avatar
     6 years ago


    AwoCoupon uses the Joomla messaging system to display errors and messages to the customer. From the code you posted it looks like it is using some form of ajax to accept the coupon code? Is that correct? If there is no page refresh then the message will not be displayed. At that point the only thing to do would be to edit the function opc uses and send some type of alert to the screen. Have you disabled opc and tried it with Virtuemart default checkout system? Do you receive the messages then?
  • Default avatar
     6 years ago

    Hi Seyi,

    With the OPC disabled AwoCoupon displays the messages just fine. The issue is caused by Linelab's OPC and is going to be fixed in their next release.