1

Is there a way to create an Exp:resso Store order programmatically? Whats the minimum requirements for it to show in the dashboard and be a valid order.

Thanks K

1

Store is fairly abstracted when it comes to order data. Take a look in the database at the tables starting with exp_store_order... - these all come into play for a single order.

Also, if you want to record payments of any kind with an order, you'll need an entry in exp_store_transactions.

| improve this answer | |
  • What about the Order Hash? Could I put any random 32 character alphanumeric value? – Kevin Chatel May 26 '15 at 15:07
  • Yup. ee()->load->helper('string'); $hash = random_string('unique');. – Derek Hogue May 26 '15 at 16:48
  • No problem - and please mark this answer as accepted if you feel it answers your question. – Derek Hogue May 27 '15 at 13:30

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.