Bug Automatic Discount


  • Default avatar
    fabio42    
     6 years ago
    0

    Hello, there is a bug with AwoCoupon when users try to process big orders like in my example of 6.000 products on cart.

    I can say this because without automatic discount i can do the order without any problem..

    Same problem if i try to apply the discount manually always with AwoCoupon into "Coupon Sconto (6)"

    Here also a video https://www.greenlabitalia.com/order.mp4 

    Is it possible to fix?

    Thank you and best regards

  • Your avatar
    seyi    
     6 years ago
    0

    Can you give me the details of how you created the coupon discount?  I want to try and produce this locally.
  • Default avatar
    fabio42    
     6 years ago  last edited 6 years ago
    0

    Hello i'll ping you by email thanks
    Hello, sorry for disturb but as you can see the E-Commerce has an high traffic.. Any news about the fix?

    Thank you for understanding


  • Your avatar
    seyi    
     6 years ago  last edited 6 years ago
    0

    I am able to produce the problem but have not yet figured out what is causing it.  Will update when I have something.

    Also, this only happens with vp one page checkout enabled, it may be helpful to ask the developer about this issue.
  • Default avatar
    fabio42    
     6 years ago
    0

    Mh not sure because i've already made a test with default joomla checkout and still not working..
  • Your avatar
    seyi    
     6 years ago
    0

    You are correct, not sure what I did previously.
  • Default avatar
    fabio42    
     6 years ago
    0

    Right as you can see in the video.. www.greenlabitalia.com/bug2.mp4

    I'll wait your feedback

    Thanks

  • Your avatar
    seyi    
     6 years ago  last edited 6 years ago
    0

    Ok, think I found the source of the problem.  You will need to make a modification to an AwoCoupon file, try this:

    in the file www/administrator/components/com_awocoupon/helpers/estore/estorecouponhandler.php, around line 3162 is this:
    <?php
                
    'cart_items_breakdown'=>$this->cart->items_breakdown,
    ?>


    Change it to this:
    <?php
                
    'cart_items_breakdown'=>count($this->cart->items_breakdown) < 500 $this->cart->items_breakdown : array(),
    ?>

  • Default avatar
    fabio42    
     6 years ago
    0

    Hello, i'm not able to test website. Is like in loop: http://test.greenlabitalia.com/test/

    but if i disable the coupon it works again

    If you want you can test in my subdomain here: http://test.greenlabitalia.com/test/ 

    You can also check my video.. http://test.greenlabitalia.com/test/loop.mp4


    Thank you and best regards

  • Your avatar
    seyi    
     6 years ago
    0

    Is it possible to send me tmp ftp access to the test site to debug directly?
  • Default avatar
    fabio42    
     6 years ago
    0

    Sure i sent you a private message. Thanks

    Regards

  • Your avatar
    seyi    
     6 years ago
    +1

    There was a bad loop in AwoCoupon that is not noticeable unless you add a large number of products.  I have sent you a private message on the fix.