I create a commerce order for a spesific user prograticaly by admin user, after completing checkout process by admin, I want to change owner of order to someone else to show created order in order history of spesific user I changed the uid of order but does not work for me.

  • In D7 or D8 commerce? – Ajay Reddy Nov 2 '16 at 12:23
  • tnx, in D7 commerce – H.aref Nov 2 '16 at 18:10

-> If you want to do programatically, then Load Order as $order = commerce_order_load(1); $order->uid = 4; commerce_order_save($order);

-> By admin UI Edit order and in User Information, specofy username of user you want to assign and save. enter image description here

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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