[Prestashop] problem in checkout with error 500 for aworewards problem


  • Default avatar
    riga75    
     3 years ago
    0

    The Order-> total_discounts_tax_excl property is not valid at line 1027 in file classes / ObjectModel.php

    1022.             }
    1023.
    1024.             $message = $this->validateField($field, $this->$field);
    1025.             if ($message !== true) {
    1026.                 if ($die) {
    1027.                     throw new PrestaShopException($message);
    1028.                 }
    1029.
    1030.                 return $error_return ? $message : false;
    1031.             }
    1032.         }
    ObjectModelCore->validateFields - [line 292 - classes/ObjectModel.php]
    ObjectModelCore->getFields - [line 308 - classes/order/Order.php]
    OrderCore->getFields - [line 737 - classes/ObjectModel.php]
    ObjectModelCore->update - [line 40 - modules/awocoupon/helper/hooks/actionValidateOrder.php]
    AwoCouponHookActionValidateOrder::execute - [line 251 - modules/awocoupon/awocoupon.php] - [1 Arguments]
    AwoCoupon->hookActionValidateOrder - [line 988 - classes/Hook.php] - [1 Arguments]
    HookCore::coreCallHook - [line 412 - classes/Hook.php] - [3 Arguments]
    HookCore::callHookOn - [line 925 - classes/Hook.php] - [3 Arguments]
    HookCore::exec - [line 547 - classes/PaymentModule.php] - [2 Arguments]
    PaymentModuleCore->validateOrder - [line 58 - modules/ps_wirepayment/controllers/front/validation.php] - [9 Arguments]
    Ps_WirepaymentValidationModuleFrontController->postProcess - [line 295 - classes/controller/Controller.php]
    ControllerCore->run - [line 518 - classes/Dispatcher.php]
    DispatcherCore->dispatch - [line 28 - index.php]615tK8f.png

  • Your avatar
    seyi    
     3 years ago
    0

    Hello,

    How did this error occur?  I am not able to produce it.  Is it a specific coupon code you used?  Buying a gift cert?
  • Default avatar
    riga75    
     3 years ago
    0

    Make a purchase of this product https://presta.biotex.it/donna/336-canotta-summerlight-donna and pay by bank transfer
  • Your avatar
    seyi    
     3 years ago
    0

    Did you use a coupon?
  • Default avatar
    riga75    
     3 years ago
    0

    No no coupon, do a test yourself and see and look at the error I sent you in the image and see that the error is due to awocoupon
  • Your avatar
    seyi    
     3 years ago
    0

    So, you copied the awocoupon  tables from joomla into your prestashop install.  But you did not copy the orders.  So in prestashop your orders start from 1.  When you submit an order, awocoupon finds in its coupon history order_id 1, and this is when the error occurs.

    I have delete all your awocoupon_history data.
  • Default avatar
    riga75    
     3 years ago
    0

    Ok when I migrate the orders from virtuemart to prestashop will this create problems?
  • Your avatar
    seyi    
     3 years ago
    0

    No, at that point you should also copy your awocoupon_history table, and update its estore.