Start arrow Forum
 
Polska wersjaEnglish version
 
Fun with Joomla!  


lipmat
Użytkownik

Fresh Boarder
Posty: 2
graphgraph
Oklaski: 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
  | | | Zaloguj się aby wysyłać post.
Hanuman
Użytkownik

Fresh Boarder
Posty: 3
graphgraph
Oklaski: 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.
  | | | Zaloguj się aby wysyłać post.
Hanuman
Użytkownik

Fresh Boarder
Posty: 3
graphgraph
Oklaski: 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.
  | | | Zaloguj się aby wysyłać post.
lipmat
Użytkownik

Fresh Boarder
Posty: 2
graphgraph
Oklaski: 0  
Re:Virtuemart integrator - 2008/07/19 13:41 Thanks for the great solution Hanuman!
Best regrads,
lipmat
  | | | Zaloguj się aby wysyłać post.
Hanuman
Użytkownik

Fresh Boarder
Posty: 3
graphgraph
Oklaski: 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
  | | | Zaloguj się aby wysyłać post.
 

Zapomniałeś hasła?? Nie masz konta? Załóż sobie

Informacje o forum
Nasi użytkownicy napisali: 362 wiadomości.
Mamy 956 zarejestrowanych użytkowników na stronie.
Ostatnio na stronie zarejestrował się: a_ng78
Aktualnie odwiedza nas 84 użytkowników online: 84 gości i 0 zarejestrowanych użytkowników
Zarejestrowani użytkownicy online: brak