Return to Snippet

Revision: 35035
at November 1, 2010 12:18 by nuwak


Initial Code
<?php
$items = uc_cart_get_contents();
$item_count = 0;
foreach ($items as $item) $item_count += $item->qty;
print $item_count;
?>

Initial URL
http://www.drupal.ru/node/49324

Initial Description

                                

Initial Title
узнаем количество товаров в корзине

Initial Tags
drupal

Initial Language
PHP