Custom error messages are inactive


  • Default avatar
    philippe16    
     4 years ago  last edited 4 years ago
    0

    I've installed the last version of Awocoupon on VM 3.6.10 with VP One Page Checkout.

    Custom error messages remain silent even if I take actions that should trigger them.

    For example, I have created a coupon valid for an amount of 100€ minimum. If I try to use the coupon when the amount is less than 100€, the coupon doesn't trigger, ok, but neither does the warning message.

    You can test it here: http://bb.a51.fr
    But stay in french because the screens are not yet ready in english.
    The valid coupon is : BIENVENUE (uppercase)

    BTW, I tried to disable the VP One Page Checkout plugin, and the problem remains.

    Thanks for your help
    Thanks
    Philippe

    Hello any ideas please?
    It's quiet urgent.
    Thanks
  • Your avatar
    seyi    
     4 years ago
    0

    Hello,

    How are you setting custom errors?

    You should go to awocoupon > configuration > error message tab, click the debug button and save.  That way every single error message is changed and you can see which message is being picked up.
  • Default avatar
    philippe16    
     4 years ago  last edited 4 years ago
    0

    Thanks for your reply. But no message are picked up, this is the problem.
    It just displays the standard and green VM message from the VMText COM_VIRTUEMART_CART_COUPON_VALID
    And the coupon, is not triggered... And it is OK as the conditions are not met. But the user is lost!

    I tried to save after using the debug button, but it's the same behaviour.
  • Your avatar
    seyi    
     4 years ago
    0

    And this happens with vp one page checkout disabled?  Are you sure the coupon is coming from AwoCoupon and not vm system?
  • Default avatar
    philippe16    
     4 years ago
    0

    Yes, it happens also when VP Onepage is disabled.
    And there are no coupon in Virtuemart :(
  • Default avatar
    philippe16    
     4 years ago
    0

    As an exemple here is a screenshot https://nimb.ws/e2rB8b
  • Your avatar
    seyi    
     4 years ago
    0

    Wonder if you have another plugin that is interrupting it.  Do you  have abandoned cart installed?  Or in extensions > plugins > vmcoupon, do you have any other plugins enabled apart from the AwoCoupon plugin?
  • Default avatar
    philippe16    
     4 years ago
    0

    No for both questions.
    I've installed vmuikit (a VM template override), but disabled the checkout part from this plugin.
    When I disable the entire vmuikit plugin I still have the problem

    Here is the list of plugin installed :
    - WMUikit
    - VP One Page Checkout
    - AWOCoupon Pro (installed over a free version)
    - Payment plugin Monetico
    - Advanced Shipping by Rules for VirtueMart
  • Your avatar
    seyi    
     4 years ago
    0

    Well really not sure what is going on, but happy to look at it if you can send a private message with temp access.
  • Your avatar
    seyi    
     4 years ago
    0

    Ok, thanks for the access, found the issue.  Will need to make one small modification in a file.

    in the file www/administrator/components/com_awocoupon/helper/estore/virtuemart/class-awocoupon-helper-estore-virtuemart-discount.php, around line 76 is this:

    <?php
                
    elseif ( $_checkout_extension == 'vpone' ) {
    ?>

    Please change it to this
    <?php
                
    elseif ( $_checkout_extension == 'vponepage' ) {
    ?>

    That should fix it.
  • Default avatar
    philippe16    
     4 years ago
    0

    Yes. It does fix the bug!
    Really a big thanks for your fast and efficient help :)

    Hope there wouldn't be any problem when upgrade?

    Kindest regards,
    Philippe
  • Your avatar
    seyi    
     4 years ago
    0

    No, it will not be a problem on the next update.