/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php $items = uc_cart_get_contents(); $item_count = 0; foreach ($items as $item) $item_count += $item->qty; print $item_count; ?>
URL: http://www.drupal.ru/node/49324