Buy X Get Y + coupon stop purchase process with v2.2.2.


  • Default avatar
    andrea2    
     11 years ago
    0

    Hello,
    I have a strange problem with AWO Coupon PRO V2.2.2 (just installed starting from 2.2.0).

    Using the coupon "Buy X Get Y" with automatic Cart + another coupon (voucher or gift card) the purchase process stops and opens a panel that would seem the cart is not formatted.

    Using coupons separately functioning properly.

    Using Joomla 2.5.13, Virtuemart 2.0.22b, AWO Coupon PRO V2.2.2.

    Help!

    Thanks
  • Default avatar
    andrea2    
     11 years ago
    0

    Hi,
    there is the same problem by inserting 2 coupon directly in the cart.

    I set in the configuration panel max discount coupons = 2

    thanks
  • Your avatar
    seyi    
     11 years ago
    0

    Hi,

    I cant reproduce it. Maybe its the type of coupon you are using?

    I think this change might be what is affecting you, maybe you can try to comment it out. go to
    www/administrator/components/com_awocoupon/helpers/estore/virtuemart/couponhandler.php, around line 111 is this:
    <?php
                    
    return JText::_('COM_VIRTUEMART_COUPON_CODE_INVALID');
    ?>


    Comment it out, like this
    <?php
                    
    //return JText::_('COM_VIRTUEMART_COUPON_CODE_INVALID');
    ?>
  • Default avatar
    andrea2    
     11 years ago
    0

    hello,
    you can try in www.vapori.rcaweb.it is the site that I am building (user test2 psw test2)

    Try to buy a product and enter 2 coupon (Sconto20 and Sconto10) and then test the checkout ..

    To me it crashes ..

    P.S. is connected to paypal test
  • Your avatar
    seyi    
     11 years ago
    0

    Its fine when not logged in, just get the edit_coupon screen when logged in. Can you pm me temporary admin access to view your configurations?
  • Default avatar
    andrea2    
     11 years ago
    0

    yes, I'll send
  • Your avatar
    seyi    
     11 years ago
    0

    Did you fix it? It seems to be working fine now.
  • Default avatar
    andrea2    
     11 years ago
    0

    Seyi No, I have not changed anything but to me it does not work ..

    I'll tell you what I did, it should give the same error:
    1) login user test2 psw test2
    2) Product e-cigarettes/Single kit / Kt Stilo(€ 73.73)
    3) add to cart
    4) add the shipping methods
    5) add the Sconto20 coupon and save
    6) add the Sconto10 coupon and save
    7) at the bottom, select the conditions of sale and click "compra ora"

    At this point I get a white page that looks like the shopping cart.

    I tried with IE and Chrome, cleaning before the cash but ... nothing.

    The strange thing is that adding just a coupon works well. I'm sorry to waste your time but do not know what to do ...

    Thanks Seyi
  • Your avatar
    seyi    
     11 years ago
    0

    Ok, I assume you did not try the first code edit I gave you? If you did then the below will not work. If not, try it out.

    Same code but different edit, not sure if it will work but try it:

    www/administrator/components/com_awocoupon/helpers/estore/virtuemart/couponhandler.php, around line 111 is this:

    <?php
                    
    return JText::_('COM_VIRTUEMART_COUPON_CODE_INVALID');
    ?>

    change it, like this

    <?php
            
    if(strpos($_code,',')===false) return JText::_('COM_VIRTUEMART_COUPON_CODE_INVALID');
    ?>
  • Default avatar
    andrea2    
     11 years ago
    0

    Sorry Seyi!
    When did you send me you could not reproduce the error and thought you wanted to check on my site.
    I had to change: it works!
    Thank you so much, you're great!