Jump to content

[SOLVED] Idea's for an ordering system.


vomitbomb

Recommended Posts

Hey there,

I'm putting together an ordering system and I'm just looking for idea's on how to organise this data.

 

Say I've got an item, the type of item, then I can have quantity. At the moment the user can only select 1 type of item, then add how many they want. So if they want 2 different types it's not gonna work. hmmm..

 

Anyone got any idea's on how I could solve this problem without creating too many values to keep track of?

Link to comment
https://forums.phpfreaks.com/topic/104706-solved-ideas-for-an-ordering-system/
Share on other sites

store the items in a session, your session would look like this:

 

Array (
     item1 => Array (
          id => 1293
          price => '19.99'
          quantity => 2
          name => 'Smelly Roses'
     )
     item2 => Array (
          id => 3524
          price => '24.95'
          quantity => 8
          name => 'Seed'
     )
)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.