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

/ Published in: PHP
Save to your folder(s)

Copy this code and paste it in your HTML
  1. <?php
  2. $items = uc_cart_get_contents();
  3. $item_count = 0;
  4. foreach ($items as $item) $item_count += $item->qty;
  5. print $item_count;
  6. ?>

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

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.