Welcome Guest, Not a member yet? Register   Sign In
How can i save the content of a Shopping Cart to the database for my client to see later
#1

[eluser]adekenny[/eluser]
Hi,

I just learnt how to use the Codeigniter Cart Class and i find it very useful as i'm trying to develop an e-commerce site for a client of mine.

The challenge i am having is how to save the cart content into the database so that the client can see who has placed order for items. I have read the session class tutorial on using the database for storing session data but i need more help.

Can someone please teach me how to do this.

Many thanks

Kehinde
#2

[eluser]jairoh_[/eluser]
i only use the cart sir, and when the transaction is done i saved it in the database and destroy it in the front end.
#3

[eluser]adekenny[/eluser]
I need to know how to make the shopping cart information go to the database as the customer is shopping or after the customer has finished shopping.

Show me the code hint please......
#4

[eluser]jairoh_[/eluser]
loop through the $this->cart->contents();

then insert it in the database

then destroy the cart Smile
#5

[eluser]adekenny[/eluser]
Thanks




Theme © iAndrew 2016 - Forum software by © MyBB