在Zencart中,我想从会话变量中添加商店购物车中的新字段

时间:2014-03-06 06:15:38

标签: php session zen-cart

var_dump($ _ SESSION ['cart'])可以获得如下对象:

object(shoppingCart)[4]
  public 'contents' => 
    array
      427 => 
        array
          'qty' => float 5
  public 'total' => float 544.9
  public 'weight' => float 0
  public 'cartID' => string '85911' (length=5)
  public 'content_type' => boolean false
  public 'free_shipping_item' => float 5
  public 'free_shipping_weight' => float 7027.5
  public 'free_shipping_price' => float 544.9

我想知道如何在shoppingCart SESSION中添加类似categories_id的新字段。(PS:我将商品添加到购物车中作为访客客户而非注册客户。)谢谢!

0 个答案:

没有答案