$session =& JFactory::getSession();
$browser = $session->get('cart');
echo $browser;
Выдает такой результат:
O:9:YourCart":10:{s:9:"type_cart";s:4:"cart";s:8:"products";a:2:{i:1;a:17:
{s:8:"quantity";i:1;s:10:"product_id";i:60;s:11:"category_id";s:1:"1";s:5:"price";d:1390;s:3:"tax";s:4:"0.00";s:6:"tax_id";s:1:"1";s:11:"description";s:0:"";s:12:"product_name";s:10:"Название товара 1";s:11:"thumb_image";s:42:"a0238d51819d4.jpg";s:3:"ean";s:0:"";s:10:"attributes";s:6:"a:0:{}";s:16:"attributes_value";a:0:{}s:6:"weight";s:6:"0.0000";s:9:"vendor_id";s:1:"0";s:5:"files";s:6:"a:0:{}";s:14:"freeattributes";s:6:"a:0:{}";s:25:"dependent_attr_serrialize";s:6:"a:0:{}";}i:2;a:17:
{s:8:"quantity";i:1;s:10:"product_id";i:48;s:11:"category_id";s:1:"1";s:5:"price";d:3590;s:3:"tax";s:4:"0.00";s:6:"tax_id";s:1:"1";s:11:"description";s:599:"описание товара";s:12:"product_name";s:15:"Название товара 2";s:11:"thumb_image";s:42:"3a098dde94.jpg";s:3:"ean";s:14:"9909";s:10:"attributes";s:6:"a:0:{}";s:16:"attributes_value";a:0:{}s:6:"weight";s:6:"3.0000";s:9:"vendor_id";s:1:"0";s:5:"files";s:6:"a:0:{}";s:14:"freeattributes";s:6:"a:0:{}";s:25:"dependent_attr_serrialize";s:6:"a:0:{}";}
}s:13:"count_product";i:2;s:13:"price_product";d:4980;s:4:"summ";i:0;s:9:"rabatt_id";i:0;s:12:"rabatt_value";i:0;s:11:"rabatt_type";i:0;s:11:"rabatt_summ";d:0;s:20:"price_product_brutto";d:4980;}
т.е. в корзине два товара. Подскажите как получить поля "product_id"?
$browser = $session->get('cart', 'product_id');так не получается...
Помогите.