Home » Forum
NoNumber!

Joomla! extensions & websites
development / support / consultancy

I try to respond within 24 hours (excluding weekends). If I haven't responded by then, feel free to post a reminder or bug me via email.
Welcome, Guest
Please Login or Register.    Lost Password?

VM Redirecting Problem
(1 viewing) (1) Guest
Go to bottomPage: 123
TOPIC: VM Redirecting Problem
#9577
VM Redirecting Problem 2 Months, 2 Weeks ago  
Hi Peter,

I'm using the AMM to show on VirtueMart Category List pages (menu assignment) and 'disappear' when someone clicks on a product on the list, which goes to the product details page (excluse URL 'flypage=flypage.tpl').

This works very well!

The tricky thing is when someone post a product review/rating on the product details page. Upon submission, VM route the page back to the product details page... however AMM reappears because now the URL is just plain 'index.php' without the trailing stuff i.e. 'flypage=flypage.tpl'.

Now how do I hide AMM on any site/index.php page?

Please help!
mamasboy
Posts: 17
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#9578
Re: VM Redirecting Problem 2 Months, 2 Weeks ago  
Then you'll have to use the PHP field to evaluate the actual flypage.
Try something like:
$flypage = JRequest::getCmd( 'flypage' );
return ( $flypage != 'flypage.tpl'' );

Or
$flypage = JRequest::getCmd( 'flypage' );
return ( $flypage == 'the flypage you do want to show it on.tpl'' );
Peter van Westen
Admin
Posts: 4533
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#9587
Re: VM Redirecting Problem 2 Months, 2 Weeks ago  
$flypage = JRequest::getCmd( 'flypage' );
return ( $flypage != 'flypage.tpl'' );


works very well to hide the flypage...

however the problem is... once the rating/review is submitted via the flypage... VM redirects to just plain-jane index.php without the trailing flypage... hence the 'reappearing' of AMM...

this is a tough one
mamasboy
Posts: 17
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#9588
Re: VM Redirecting Problem 2 Months, 2 Weeks ago  
btw does all this work when I switch to sh404
mamasboy
Posts: 17
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#9593
Re: VM Redirecting Problem 2 Months, 2 Weeks ago  
When your url is just index.php, it mean VM is sending the data via post instead of url.
The php method checks for the flypage value whether it is sent by post or get (url).
So maybe you should check on another value instead of flypage. I am not sure what values VM sents via post on the tating/review. You could see that if you look in the form html of the page.
Peter van Westen
Admin
Posts: 4533
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#9597
Re: VM Redirecting Problem 2 Months, 2 Weeks ago  
actually I just want to assign to the menu link page (which is the VM category page). Once the visitor clicks on any product to go deeper, I want the AMM to go hiding (in fact on all pages, except the assigned menu link). Is there a rock solid way to do that?
mamasboy
Posts: 17
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 123
Joomla Open Source Training