News:

Looking for documentation? Take a look on our wiki

Main Menu

[FIXED] VM1.1.2 frontend order layout

Started by mauri, August 07, 2008, 18:38:26 PM

Previous topic - Next topic

mauri

J!1.5.5
VM1.1.2
If you login in frontend (admin), go to Admin -> Orders and open an order.
Layout is broken, no admin menu.(frontend order.order_print)
VirtueMart,(Joomla-phpShop, mambo-phpShop) since 2004-03-11

BernardE

I'm also having problems with the frontend admin, especially in the config area.

mplayer

anyone figure out a resolution for this? its kinda sad that the developers rarely help out with things like this.

brickford5

Has anyone answered this or figured out a way to work around it? I've spent a few hours on it and it seems others have asked the question but no answers have been given. Any help would be great!

mauri

#4
WOW, I think I find the reason.You can test it.
If some developer can confirm, if we can do this?
Find function in /administrator/components/com_virtuemart/classes/ps_main.php
function vmIsAdminMode() {
global $page;
return ( (defined( '_VM_IS_BACKEND' )
|| @$_REQUEST['pshop_mode'] == 'admin'
|| strstr($page,'_list')
|| strstr($page,'_form'))
&& ( strncmp('account.',$page, 8) !== 0
&& strncmp('checkout.',$page, 9) !== 0
&& strncmp('shop.',$page, 5) !== 0
)
);
}


Edit it: add these two rows :   
|| strstr($page,'_print')
|| strstr($page,'_cfg')
function vmIsAdminMode() {
global $page;
return ( (defined( '_VM_IS_BACKEND' )
|| @$_REQUEST['pshop_mode'] == 'admin'
|| strstr($page,'_list')
|| strstr($page,'_print')
|| strstr($page,'_cfg')
|| strstr($page,'_form'))
&& ( strncmp('account.',$page, 8) !== 0
&& strncmp('checkout.',$page, 9) !== 0
&& strncmp('shop.',$page, 5) !== 0
)
);
}
VirtueMart,(Joomla-phpShop, mambo-phpShop) since 2004-03-11

guaru

Hi

this fix the css problem

But sometimes the page loads in the index.php and gets all the template around

Do you know how to fix it?

Doesn't have a way to use extedded layout in the frontend admin?


ichimonban

#6
Awesome, thanks for the great fix

Ichimonban
UrbanDezign.com