presta1.6.1.2 and bankwire-module and awocoupon 1.3.3


  • Default avatar
    hatak    
     a year ago
    0

    There is a bug with this configuration as in topic.
    Everything is ok till the last point in a path of order - bankwire/validation receives the 500 error
    Order is placed but without sending emails and setting any status of order.
    Unfortunately because of licence I couldn't check that myself on "virgin" instalation :)
  • Your avatar
    seyi    
     a year ago
    0

    Hello,

    If you can send a private message with your dev url, can add it to the license, so you can make the necessary tests.
  • Default avatar
    hatak    
     a year ago
    0

    I don't know you've noticed that I replied in pw:
    "Issue is caused by the classes\PaymentModule.php because in ps1.6.1.2 they have changed something with integers."
    after swap that file from ps1.6.1.1 your module is working but it's not the solution :)
  • Your avatar
    seyi    
     a year ago
    0

    Hello,

    Sorry for not getting back to you, just miss understood your private message.

    Ok, I have looked at 1.6.1.3 and see the problem. There are a couple of modifications needed in the override to get it working again, and you can revert the PaymentModule back to the original.

    In www/override/classes/Cart.php, around line 101 is this:
    <?php
                $arrdiscount
    ['reduction_amount'] = $arrdiscount['obj']->reduction_amount 1;
                
    $arrdiscount['obj']->partial_use 0;
    ?>


    Right after that add this
    <?php
                $arrdiscount
    ['obj']->id = ((int)substr($id_discount,10)) * -1// need for prestashop 1.6.1.2
    ?>


    And in www/override/clases/order/Order.php around line 12 is this:
    <?php
            
    if(substr($id_cart_rule,0,10)=='awocoupon-') {
                
    $id_cart_rule = (int) substr($id_cart_rule,10);
    ?>


    Change those 2 lines of code to this:
    <?php
            
    if($id_cart_rule
    ?>


    That should do it. It should start working normally again.

  • Your avatar
    seyi    
     a year ago
    0

    hello,

    Im sorry I dont understand the question. Is the fix not working?
  • Default avatar
    hatak    
     a year ago
    0

    I had no time to check this....
  • Default avatar
    hatak    
     11 months ago
    0

    It works fine -thx :)