Cakephp get data from another model
I'm developing an e-commerce website. I have 2 tables - Customers & Shipping
Field in Customers - id, name, address, city, postal & country Field in
Shipping - id, address, city, postal & country
The process flow, after the customer click checkout button, they need to
fill up shipping form (shipping - add.ctp).
But in add.ctp, i also want to show address from table customer. So, I can
put check button - Use this address as shipping address.
Anyone can help how the controller & add.ctp looks like? Thank You.
No comments:
Post a Comment