Start arrow Forum
 
Polska wersjaEnglish version
 
Fun with Joomla!  


lipmat
User

Fresh Boarder
Posts: 2
graphgraph
Karma: 0  
Virtuemart integrator - 2008/07/10 14:04 Hi,
I use sh404sef and the links in the xml sitemap ( links to virtuemart products) contain at the end "?flypage=0". How can I remove it?

Thanks.
lipmat
  | | | The administrator has disabled public write access.
Hanuman
User

Fresh Boarder
Posts: 3
graphgraph
Karma: 0  
Re:Virtuemart integrator - 2008/07/17 07:01 Hi

I'm in exactly the same situation. I have set up META tags for my product pages using sh404SEF, but they don't show up if the '?flypage=0' query string is appended to the URL.

I've tried loads of different configurations in sh404SEF, Virtuemart and ServiceMap, but the problem seems to be that sh404SEF can't get hold of the native Joomla URL for the ServiceMap-generated URL which includes the '?flypage=0', so I can't set up a custom redirect.

Please help! Many thanks

H.
  | | | The administrator has disabled public write access.
Hanuman
User

Fresh Boarder
Posts: 3
graphgraph
Karma: 0  
Re:Virtuemart integrator - 2008/07/17 08:02 Hi

I've found a quick solution to this.

Open the file: mambots/com_sefservicemap/com_virtuemart_bot.php

straight after likne 36, which begins

Code:

 $link = 'index.php?page=shop.product_detail



add this code:

Code:

  $old_link $link; if(stripos($old_link,'&flypage=')) $link str_replace('&flypage='  ''  $old_link);



save and test.

Good Luck.

H.
  | | | The administrator has disabled public write access.
lipmat
User

Fresh Boarder
Posts: 2
graphgraph
Karma: 0  
Re:Virtuemart integrator - 2008/07/19 13:41 Thanks for the great solution Hanuman!
Best regrads,
lipmat
  | | | The administrator has disabled public write access.
Hanuman
User

Fresh Boarder
Posts: 3
graphgraph
Karma: 0  
Re:Virtuemart integrator - 2008/07/19 17:01 Hi

This is an improved version of the code above which will not delete the flypage setting if flypage=shop.flypage, which is required by some other Virtuemart URLs:

Code:

  $old_link $link;     if(!stripos($old_link,'shop.flypage')){         if(stripos($old_link,'&flypage=')) $link str_replace('&flypage='  ''  $old_link);     }



I suggest you replace my original code with this.

H
  | | | The administrator has disabled public write access.
 

Lost Password?? No account yet? Register

Forum Info
Our users have posted a total of 362 articles.
We have 956 registered users.
The newest registered user is: a_ng78
In total there are 62 users online: 62 guests and 0 registered
Registered Users online: none