Looking for documentation? Take a look on our wiki
<?php /*** @Copyright Copyright (C) 2008 - 2010 IceTheme* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html******/if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );if($empty_cart) { ?> <div style="margin: 0 auto; text-align:center"> <?php if(!$vmMinicart) { ?> <p> <?php } echo $VM_LANG->_('PHPSHOP_EMPTY_CART') ?> </p> </div><?php } else { $ps_product = new ps_product; $db = &JFactory::getDBO(); // Loop through each row and build the table foreach( $minicart as $idx => $cart ) { foreach( $cart as $attr => $val ) { // Using this we make all the variables available in the template // translated example: $this->set( 'product_name', $product_name ); $this->set( $attr, $val ); } if(!$vmMinicart) { // Build Minicart $product_thumb_image = $ps_product->get_field($_SESSION['cart'][$idx]["product_id"], "product_thumb_image"); echo '<div class="ice-basket-row '.(($idx%2==0)?'even':'odd').'">'; echo "<a href=\"" . $cart['url'] . "\">"; echo ps_product::image_tag( $product_thumb_image, "alt=\"".$cart['product_name']."\" class=\"ice-image\""); echo "</a>"; ?> <div class="ice-backet-wrapper"> <div class="ice-prod-descr"> <?php echo $cart['quantity'] ?> x <a href="<?php echo $cart['url'] ?>"><?php echo $cart['product_name'] ?></a> </div> <div class="ice-price"> <?php echo $cart['price'] ?> </div> <div class="ice-attributes"> <?php echo $cart['attributes'];?> </div> </div> </div> <?php } }}if(!$vmMinicart) { ?><?php } ?><div class="ice-cartinfo clearfix" style="clear:both"> <div class="ice-totalproduct" > <?php echo $total_products ?> </div> <div class="ice-totalprice"> <?php echo $total_price ?> </div></div><?php if (!$empty_cart && !$vmMinicart) { ?> <div class="ice-showcart" align="center"> <?php echo $show_cart ?> </div><?php } echo $saved_cart;?>