在OPENCART中管理客户购物车系统


Managing a cart system of customer in an OPENCART

我正在使用OPENCART (php),但问题是。

在表oc_customer中存在列cart

当用户向购物车中添加商品时,值更新为a:1:{s:4:"49::";i:3;}

这是一个数组:

Array( '49::' => 3 )

检查serialize/useralize函数:

print_r(unserialize('a:1:{s:4:"49::";i:3;}'));