⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Add products to order



Felipe Perry

Felipe Perry
  • profile picture
  • Member

Posted 09 September 2013 - 04:53 AM

I'm making an application that connects customers, products, orders and detail orders. Every order can include several products. Is there any way to insert a field to keep adding products dynamically. Thank you very much.


davidoster

davidoster
  • profile picture
  • Member

Posted 09 September 2013 - 09:54 AM

Hello and welcome to the forums [member=Felipe Perry].

Can you please give us some more information like how you would like this implemented?

 

There are a couple of ways to do this. One could be by using a lightbox to add new products and bound a button to a column field on the grid.

Another way could be by having multiple grids on the same page showing detail order per order.

 

Both of these are documented in the forum. If you can't find them give us a shout.


Felipe Perry

Felipe Perry
  • profile picture
  • Member

Posted 09 September 2013 - 13:26 PM

I'll check, thank you very much.


Felipe Perry

Felipe Perry
  • profile picture
  • Member

Posted 09 September 2013 - 14:56 PM

What I need to do is add x products to an order, somehow not so complicated. Each product has several fields added, name, which is related to the Products table, list price, and other fields that vary on each sale. It can make with lightbox?
Thank you very much.


davidoster

davidoster
  • profile picture
  • Member

Posted 09 September 2013 - 21:37 PM

New version 1.4.1 has the option to open on a popup window. You can have the same functionality if you want to.

Just check the latest examples.


Felipe Perry

Felipe Perry
  • profile picture
  • Member

Posted 09 September 2013 - 23:11 PM

Thanks. And add fields dynamically?


davidoster

davidoster
  • profile picture
  • Member

Posted 10 September 2013 - 09:34 AM

Fields that don't exist in the database you mean? During the add or edit operation?

You could do that using the fields or add_fields/edit_fields but then you need to change the insert or update procedure via callback_insert/update.


faisalnaseer

faisalnaseer
  • profile picture
  • Member

Posted 24 November 2015 - 19:41 PM

hi Felipe Perry how did you solve our problem. just ran into similar one