setPageTitle( $VM_LANG->_('PHPSHOP_CART_TITLE') ); $mainframe->appendPathWay( $VM_LANG->_('PHPSHOP_CART_TITLE') ); $continue_link = ''; if( !empty( $category_id)) { $continue_link = $sess->url( $_SERVER['PHP_SELF'].'?page=shop.browse&category_id='.$category_id ); } elseif( empty( $category_id) && !empty($product_id)) { $db->query( 'SELECT `category_id` FROM `#__{vm}_product_category_xref` WHERE `product_id`='.intval($product_id) ); $db->next_record(); $category_id = $db->f('category_id'); $continue_link = $sess->url( $_SERVER['PHP_SELF'].'?page=shop.browse&category_id='.$category_id ); } elseif( !empty( $manufacturer_id )) { $continue_link = $sess->url( $_SERVER['PHP_SELF'].'?page=shop.browse&manufacturer_id='.$manufacturer_id ); } $show_basket = true; $tpl = new $GLOBALS['VM_THEMECLASS'](); $tpl->set('show_basket', $show_basket ); $tpl->set('continue_link', $continue_link ); $tpl->set('category_id', $category_id ); $tpl->set('product_id', $product_id ); $tpl->set('manufacturer_id', $manufacturer_id ); $tpl->set('cart', $cart ); echo $tpl->fetch( "pages/$page.tpl.php" ); ?>