-->

How To Manage Virtuemart Admin From Joomla Frontend



By Default Virtuemart admin shop panel only can accessed on Joomla (yourjoomla/administrator/), so if we want to manage our shop, we must login to Joomla administrator first. But with right url and css we can do that on Joomla front end.

This is can work with both Joomla 1.0.15 and Joomla 1.5x.

  • First, go to menu manager, choose any menu that you want to show url to manage Virtuemart shop.
  • Then, create new link / url, and fill url form with this:
    index2.php?pshop_mode=admin&page=product.product_list&option=com_virtuemart
  • Set access level to super administrator, in order only super administrator can see this url.
  • Ok, now we have link to manage Virtuemart shop admin from frontend, you not have to login to Joomla administratorbut we must adding some css rel, open index2.php in your Joomla directory.
  • Adding these in index2.php header (usually can work after <head> line )
    <script language="JavaScript" src="<?php echo $mosConfig_live_site;?>/includes/js/joomla.javascript.js" type="text/javascript"></script>
    <link rel="stylesheet" href="<?php echo $mosConfig_live_site;?>/administrator/templates/joomla_admin/css/template_css.css" type="text/css" />
    <link rel="stylesheet" href="<?php echo $mosConfig_live_site;?>/administrator/templates/joomla_admin/css/theme.css" type="text/css" />
    <script language="JavaScript" src="<?php echo $mosConfig_live_site;?>/includes/js/JSCookMenu_mini.js" type="text/javascript"></script>
    <script language="JavaScript" src="<?php echo $mosConfig_live_site;?>/administrator/includes/js/ThemeOffice/theme.js" type="text/javascript"></script>
    <script language="JavaScript" src="<?php echo $mosConfig_live_site;?>/includes/js/joomla.javascript.js" type="text/javascript"></script>
    

And now you can accessed your Virtuemart shop admin from your Joomla frontend here are example preview:

Virtuemart Shop Admin On Joomla Frontend

Virtuemart Shop Admin On Joomla Frontend

ads:



Related posts:

  1. How To Insert HTML, Javascript, PHP Code Into Joomla 1.5 Administrator Page
  2. How To Remove Virtuemart Logo In Empty Cart Module
  3. Problem Solving: Images Not Showing In Virtuemart
  4. Joomla
  5. How To Fix Joomla 1.0 Error On PHP 5.3


Share To Facebook | Tweet This


 
  • ludo

    Hi,

    The link to acces virtuemart front-end works perfectly ;)

    But why do we have to add thoses javascript lines??
    And where?? Do you mean in the index2.php in the root directory of Joomla?? I can’t find any section!!!

    Thanks

  • http://ninoholic.com El Nino

    @ludo:
    Yes, to avoid weird display in virtuemart frontend admin, you must added those line into index2.php in root directory of your Joomla

  • hootin

    index2.php in Joomla 1.5 does not contain a head section. Any idea where to go from here? The link works but the formatting is strange.

  • http://www ziggi

    interesting too

  • ludo

    That’s what I don’t understand!
    Where to put this piece of code as there is no section in index2.php???

    Here is the content of index2.php :
    <?php
    $_REQUEST['tmpl'] = 'component';
    include('index.php');

    So what to do??

    Thanks a lot ;)

  • http://ninoholic.com El Nino

    @ludo: @hootin:
    Sorry for late reply, yes i think for Joomla 1.5 there’s no need to put that code in index2.php.

    Even maybe we can tryin to inserted with “include” function, but i think its not necessary. The display is little strange, but not too bad.

    I will updated here if i found another way to fixed some messed up with Virtuemart frontpage admin display

  • http://archigraphe.com jeffT

    Hi,
    If you want to get a cleaner display of Virtuemart administration in front end, beside checking your css, you also have to load mootools scripts, which are not loaded when using index2.php.
    A quick and easy hack is to modify application.php file in Joomla (includes/application.php)
    Look for function dispatch($component){
    After if ( $user->get(‘id’) ) { add the following code:
    $document->addScript( JURI::root(true).’/media/system/js/mootools.js’);
    This will fix the menus on the left pane
    Jeff

  • ivanhoe

    In Joomla 1.5.x the Virtuemart administration works perfectly in extended mode. The following link / url should be applied:

    …/administrator/index.php?option=com_virtuemart&tmpl=component&vmLayout=extended

    No need to modify the index2.php.

-->