techlab / jquery-smartcart

The smart interactive jQuery Shopping Cart plugin with PayPal payment support
http://techlaboratory.net/smartcart
Other
95 stars 40 forks source link

Cart items deleting after page refresh. #6

Open sanalrenk opened 7 years ago

sanalrenk commented 7 years ago

Hello, Cart items deleting after page refresh. How can I store cart items to DB or cookie?

sanalrenk commented 7 years ago

Hello,

I can adding JSON results to php variable, and I can record in to db. But main problem is when I page refresh, cart items will be removing.

$product_list_array = json_decode($product_list,true); foreach ($product_list_array as $value1){ echo $id = $value1['urun_id']; echo $iurun_adi = $value1['urun_adi']; echo $urun_resmi = ""; echo $urun_aciklama = $value1['urun_aciklama']; echo $urun_adeti = $value1['urun_adeti']; echo $urun_fiyati = $value1['urun_fiyati']; echo $product_size = $value1['product_size']; echo $unique_key = $value1['unique_key']; }