Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter petyots

    (@petyots)

    @thomasplevy

    debug_backtrace() Does not show anything more. Can you give me the native query with wich i can confirm the order enroll the student and record a transaction ? I am looking in LLMS_Post_Model but i can’t find it. This is the only way i can finish the task. Thank you in advance !

    P.S I really appreciate your help and time !
    P.S.2 : Why does it need to load Metabox if the class needs only the basic Post_Model ?
    P.S 3 : The exact method which causes the error is :

    $order = new \LLMS_Order(1);
    $order->set('status','llms-confirmed');

    OR

    $transaction = new \LLMS_Transaction('new',1)
    $transation->set('status','llms-txn-succeeded');
    • This reply was modified 9 years ago by petyots.
    • This reply was modified 9 years ago by petyots.
    Thread Starter petyots

    (@petyots)

    Hello @thomasplevy, this is the snippet i can provide, because this is the part which causes the problem. The other parts of the code are not related to the lifterlms. I will try to explain better. I have one controller in the admin panel which confirms the order manually. The record is single and it’s not in array, i mean it make only single query not many as i showed with my code. And everything runs perfectly. But when i try to confirm multiple orders from the frontend it is able to confirm only the first order but without recording the transaction because it dies; So if the order is single not many in array is working even from the frontend, but if the orders are multiple it dies. So is there any hook at which i can attach so i can wait for the LifterLMS to load ?. Or can you help me with the native query so i can confirm the order and record a transaction without using LLMS_Order object? Thanks !

Viewing 2 replies - 1 through 2 (of 2 total)