Cannot Update Cart modal error in Virtuemart


  • Default avatar
    socouture    
     5 years ago
    0

    Hi,

    When someone uses a coupon, we get the reduction no problem.
    In our case its a gift certificate so the bill amount is 0€.

    I created a fake payment method for this, as per your recommendations, but since the latest update (of awocoupon, or of VM 3.4.0, not sure...) it no longer works.

    By this i mean that the shopper chooses the fake payment method and the following happens:

    if Ajax for OPC is enabled, we get the 'waiting for www.socouture.fr message for a good 30 seconds, then a modal popup saying Cannot update cart.

    If OPC Ajax is disabled, then the site returns a HTTP 500 error.


    Unsure whether it is virtuemart or awocoupon that has the bug/problem, i'm trying here first as you have always been so good at replying to issues.
    I can give you a backend access so you can try yourself, if if helps.

    I have access to the webserver but i dont have enough knowledge to know where to look to see what could be causing this.

    Any help you can provide would be greatly appreciated.
    David

  • Default avatar
    socouture    
     5 years ago
    0

    It works only if setup this way:

    1. i make the 'fake' payment method NOT have the maximum invoice total to be >0.01, and in doing so making it appear before the coupon code is entered

    2. i choose it as the payment method BEFORE i enter the coupon code.


    Otherwise, the problem persists.

    It also happens with OPC disabled, once i hit the 'select payment method' screen.


  • Your avatar
    seyi    
     5 years ago
    0

    Hello,

    I have been testing this over the last couple of days, and in my case I do not get a blank screen, but there is an issue where the payment method is never selected.  In debugging, I find that there is some leakage when checking the payment methods.  Let me explain, I setup these payment methods:
      Standard:
           min_amount: 0.01
           max_amount: [blank]

      Free Order:
           min_amount: [blank]
           max_amount: 0.01

    In testing, I find that the free order payment method takes on properties of the standard payment method if it is not set.  So in testing it sees this:

      Free Order:
           min_amount: 0.01
           max_amount: 0.01

    So the free order payment method is never available, and neither is the standard payment method, leaving the cart stuck, with no way to fully checkout.  To combat this, I explicitly set the free order min_amount to 0:

      Free Order:
           min_amount: 0
           max_amount: 0.01

    And it all seems to work smoothly after that.

  • Default avatar
    socouture    
     5 years ago
    0

    hi,

    setup as you suggest, it seems to work based on some quick testing. lets see if our users are OK with this now. i'll let you know but i think its good. maybe you could update your documentation on the 'fake payment method' to help others in future? Namaste !! thanks !!!!