Welcome Guest, Not a member yet? Register   Sign In
Going from Cart class to processing the order
#1

[eluser]EdgeTube[/eluser]
Hi all,

I am currently using the Cart class to add all my items to the shopping cart.

The problem is, I am having trouble placing all the product descriptions into an array when the user clicks "Check Out." (Basically after the order is completed, the administrator needs to know what was ordered.)

I know that
Code:
$contents = $this->cart->contents();
used with a foreach loop will return an array, but inserting a new row in my database through each loop seems rather inefficient.

Some examples or tips would be appreciated.

Thank you!
#2

[eluser]InsiteFX[/eluser]
Create a text field in your database table and assign the $contents array to it.

InsiteFX




Theme © iAndrew 2016 - Forum software by © MyBB