WordPress.org

Support

Support » Plugins and Hacks » WooCommerce » cart item data not saving

cart item data not saving

  • how come setting cart_item_data array doesn’t save to the cart_contents loop…

    $cart=new WC_Cart();
    $cart->add_to_cart( $productID, 15, '', '', array('extraVar' => 'extra-value')  )
    foreach($cart->cart_contents as $key => $value){
         print_r($value);
    }

    no extraVar data is showing up at the cart loop

    http://wordpress.org/plugins/woocommerce/

  • The topic ‘cart item data not saving’ is closed to new replies.
Skip to toolbar