Asaf Levy Posted April 15, 2016 Share Posted April 15, 2016 Hello, I'm writing a POS module and would like to create an Order object by using only a list of products and a customer. The problem when creating this is that I do not have an associated cart and I don't know how the product_list variable should be populated, what is the structure needed for this? Thanks in advance Link to comment Share on other sites More sharing options...
Asaf Levy Posted April 16, 2016 Author Share Posted April 16, 2016 i've looked at it but it relies on having an associated cart, which I don't, do I have to generate one? If so, how do I do it? all I have is the product ids that I want to add and the customer id associated with them Link to comment Share on other sites More sharing options...
Asaf Levy Posted April 16, 2016 Author Share Posted April 16, 2016 there is no cart id, i'm trying to generate a whole new order from scratch, perhaps I should also generate a cart? Link to comment Share on other sites More sharing options...
Asaf Levy Posted April 16, 2016 Author Share Posted April 16, 2016 I have written a module that on the backend makes a list of product ids that I wish to be added to a new order, that currently doensn't exist, and i'm how the data should be formatted to the member product_list and what other members have to be populated before I call the add() method? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now