Hello everybody, I am weeks trying to create a shopping cart system , which is why I bought the book . However , I need to function a little differently . 1 - The system will have several stores , each with its products and two orders. ( Already managed to create most relationships . )
2 - The orders will be displayed in the show page of each store . 3 - I need that when the User click checkout so the User data ( will be using devise ) + the cart data is saved in the table orders.
I have great difficulty in step number 3. I do not know how to send these cart data to the table orders. I thank anyone who can help me . Thank you. Follow the project code. The checkout button on this card show named “ Finalizar compra “