Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Dec 30th, 2012  |  syntax: None  |  size: 0.74 KB  |  views: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Array ( [0] => Array ( [quantity] => 1 [product_id] => 5363 [category_id] => 209 [price] => 1 [tax] => 18.00 [tax_id] => 1 [description] => [product_name] => test2 [thumb_image] => [ean] => [attributes] => a:0:{} [attributes_value] => Array ( ) [weight] => 0.0000 [vendor_id] => 0 [files] => a:0:{} [freeattributes] => a:0:{} [dependent_attr_serrialize] => a:0:{} [href] => /kategorii/product/view/209/5363.html [free_attributes_value] => Array ( ) ) )
  2.        
  3. Warning: current() [function.current]: Passed variable is not an array or object in ...
  4.        
  5. $cart = JModel::getInstance('cart', 'jshop');
  6.         $cart->load();  
  7.         $products=$cart->products;
  8.         //$productos[0]['product_id'];
  9.         print_r($products);
  10.        
  11. $products[0]['product_id']
clone this paste RAW Paste Data