Is there a reason why the Virtuemart component sometimes returns "frontpage" as the Joomla View?
JRequest::getVar('view')
I am also getting URLs that are inconsistent. SEF is turned off, but sometimes the URL parameters disappear all the way back to the base URL. For instance when I add a product to the cart (any product), I get this url:
http://localhost/tdcoffee/index.phpAlso, the Joomla "View" is returned as "frontpage" even though it isn't. But when I click on "Show Cart" in the Virtuemart module, I correctly get:
http://localhost/tdcoffee/index.php?page=shop.cart&option=com_virtuemart&Itemid=78In this case the Joomla "view" returns NULL as it does on all the VM catalog pages. Both of these situations also happen on certain pages (but not all) during the checkout process. This poses a big problem for me as I am using PHP to put certain content on the Joomla frontpage using the "view" in an IF statement.
For instance I have my banner image that only shows on the front page:
<?php $fp=JRequest::getVar('view'); ?>
<?php if ($fp=='frontpage') : ?>
<h1 class="logo"><?php echo $mainframe->getCfg('sitename');?></h1>
<?php endif; ?>
This is working fine except in those couple of pages when everything falls apart. Is this a known problem, or should I submit a bug report? Or is this just the way it's supposed to work...?
I might also like to be able to use $_get statements to test for certain VM modes like checkout...although if anyone knows of a better way that will work with SEF turned on (when that comes available), that would be great.
Once again, many thanks. I hope you guys are taking some time off for the holidays and will get back to me when you can. Cheers!