0

I found this code at Multishipping.php, but i dont know what the function, is save() function is saving the order?

Multishipping.php :

$order->place();
$order->save();

And how could i save an order to database 2 times?

2
  • What do you mean by saving the order twice, do you mean to duplicate it twice under the same tables or into a different table? What are you trying to accomplish? Commented Oct 9, 2017 at 8:48
  • I tried to modified on multishipping and it's already so complicate to explain it, and the last thing i need to do is duplicate the order under the same tables. I tried to change the order id each time i want to duplicate the order, but it's all just made error on the sql. Is there a way for it? Commented Oct 9, 2017 at 8:52

1 Answer 1

1

Shortly,

  • $order->place(); => processing payment.

  • $order->save(); => saving order data.

1
  • can i save the same order 2 times? Commented Oct 9, 2017 at 6:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.