Posted By

nuwak on 11/01/10


Tagged

drupal ubercart


Versions (?)

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


 / Published in: PHP
 

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

  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. ?>

Report this snippet  

You need to login to post a comment.