Jump to content

Ogone and Advanced Stock Management


Recommended Posts

PrestaShop 1.5.3.1 and Ogone 2.4 module by Kiwik.

 

Shop has multiple warehouses and now orders are split in example 2 orders.

And now if we go to the order in the backend it says that there's paid to many.

 

I has 1 payment row of the total of the 2 orders, and 1 payment row of the other order.

Prestashop combines it and says customer paid ** instead of **.

 

And that's not the case.

Also at the invoice level it's not correct.

 

Is there a solution for this behaviour and the solution is not 1 warehouse.

Edited by pietjanssen (see edit history)
Link to comment
Share on other sites

Maybe I fixed it my self.
 
in /classes/PaymentModule.php i disabled in the function validateOrder the creation of a payment record.
 
// Register Payment only if the order status validate the order
            /*
   if ($order_status->logable)
   {
    // $order is the last order loop in the foreach
    // The method addOrderPayment of the class Order make a create a paymentOrder
    //     linked to the order reference and not to the order id
    if (isset($extra_vars['transaction_id']))
     $transaction_id = $extra_vars['transaction_id'];
    else
     $transaction_id = null;
    
    if (!$order->addOrderPayment($amount_paid, null, $transaction_id))
     throw new PrestaShopException('Can\'t save Order Payment');
   }*/

Link to comment
Share on other sites

×
×
  • Create New...