Posted By

resting on 12/21/10


Tagged

drupal cart Shopping ubercart


Versions (?)

Invoking Ubercart shopping cart block


 / Published in: PHP
 

Drupal 5. Simply print $uc_cart_shopping_block where ever you want.

  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  

You need to login to post a comment.