Guest Posted June 19, 2010 Posted June 19, 2010 Ok, just a quick query really, just interseted if anyone knows. In the admin section whos_online page when an active user puts stuff into their cart it will show what the product quantity, product name and subtotal price is over the right hand side.. Now this is all good but whilst looking over the code im interested if i can get this to show the attributes the user has chosen as well.. So id get a preview of the attributes they have chosen even before the cart has been processed through checkout. Now on lookin over the code i think (probably wrong) that it should do this.. just cant work out how to get it to work.. if (is_object($cart)) { $products = $cart->get_products(); for ($i = 0, $n = sizeof($products); $i < $n; $i++) { $contents[] = array('text' => $products[$i]['quantity'] . ' x ' . $products[$i]['name'] . '<br /><br/><i>' . $products[$i][$option]['products_options_name'] . ': ' . $products[$i][$option]['products_options_values_name'] . '</i>'); } The above code is showing the shopping cart but not bringing up the attributes.. Any ideas how to get this in action and working.. Thaanks in advance for any replies. :thumbsup:
Recommended Posts
Archived
This topic is now archived and is closed to further replies.