Invoking Ubercart shopping cart block


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

Drupal 5.
Simply print <code>$uc\_cart\_shopping\_block</code> where ever you want.


Copy this code and paste it in your HTML
  1. <?php
  2. function _phptemplate_variables($hook, $vars) {
  3. if ($hook == 'page') {
  4. $block = module_invoke('uc_cart', 'block', 'view', 0);
  5. $vars['uc_cart_shopping_block'] = $block['content'];
  6. }
  7. ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.