Duplicate virtual coloumns, depending on a number in a coloumn.

So I have a section, where the user can select how many of one item there is.
When they enter the value of how many, I want to show 3 coloumns, which needs to be filled out pr item.

Atm. I'm manually copying coloumns in my database, so that if the value is 1, it shows 3 colomuns, but if it says Y, I have it showing 3 * Y. But this puts a limit on how many they can enter.

Are there any way, to have this done automatically with virtual coloumns?

Example:

User A inputs that there is 1 item.

User is therefor shown:

  • Item 1 name
  • Item 1 Expiration date
  • Item 1 Image

User B inputs that there is 3 item.

User is therefor shown:

  • Item 1 name
  • Item 1 Expiration date
  • Item 1 Image
  • Item 2 name
  • Item 2 Expiration date
  • Item 2 Image
  • Item 3 name
  • Item 3 Expiration date
  • Item 3 Image

- Patrick

0 0 62
0 REPLIES 0
Top Labels in this Space