ewebdev.com
November 20, 2008, 05:19:19 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: 'prefix' not working  (Read 1271 times)
burek
Newbie
*
Posts: 1


« on: December 10, 2007, 12:09:22 AM »

Hi,

I've installed this plugin and noticed that all of the links are in the form of:
www.mysite.com//index.html
(note the double slash)
At first, I thought it was something easy to fix with adding custom urls, but when I went to the category page, the links to products were all in the same form.. so I've opened the php file for this plugin to check out what's going on, and to compare it to the extensions from artio.net, so I think I've found the place where the error occurs..

Line 25: $prefix = $this->params->get('prefix');

the $prefix remains blank after this line Sad I'm not sure why, but it just doesn't retrieve the parameter of this plugin at all..

I'm using:
- Joomla! 1.0.13 Stable [ Sunglow ] 21 July 2007 16:00 UTC
- ARTIO JoomSEF v2.2.2
- VIRTUEMART extension 1.6 (yours)

Please help,
burek.
Logged
ewebdev.com
« on: December 10, 2007, 12:09:22 AM »

 Logged
Fallen
Need help?
Administrator
Newbie
*****
Posts: 41

Lazyness drives us forward!


« Reply #1 on: December 10, 2007, 06:10:46 PM »

Hello,

It should be because of the version of the Artio JoomSEF, will update this week, at last got some time to dedicate to write some fixes, stay tuned...

Cheers!
Logged
jime
Newbie
*
Posts: 2


« Reply #2 on: December 13, 2007, 12:47:40 AM »

Hi Burek,

I had the same issue on a site I'm building for a client.
Tested on versions
Joomla 1.0.13
Virtuemart 1.0.13a
Sobi2 2.8.2 
JoomSef 2.2.4

Extract and open com_virtuemart.php from zip file

Before line 23
Code:
$title = array();

Add
Code:
$title = array();
        $title[] = 'shop'; // you can change the word shop to cart or whatever you like
$title[] = '/';

comment out lines 23-34
Code:
/*$title = array();
  *$this->params = SEFTools::getExtParams('com_virtuemart');
  *$prefix = $this->params->get('prefix');
  *if (!$page){
  * $title[] = $prefix;
  * $title[] = '/';
  * $title[] = "index";
  * } else {
  * $title[] = $prefix;
  * $title[] = '/';
  * }
          */

Save and upload file to components/com_sef/sef_ext/

Updated: Thanks Arsoy, I should have mentioned this as well.

Important: don't forget to purge the sef urls and clean the cache after applying the above fix.

If all OK you can remove the commented out lines and re-upload.

This solved the double // issue and named my cart 'shop' with main page URL of domain/shop/index.php

Another great plugin Fallen, thanks.

Hope that helps

Cheers

Jim

www.xactit.com
« Last Edit: December 14, 2007, 10:39:54 AM by jime » Logged
arsoy
Newbie
*
Posts: 3


« Reply #3 on: December 14, 2007, 06:13:50 AM »

yo jime,

i was gonna say "dude i tried your fix but it didn't work!!! Angry i still got the // going on...  Sad"
but then i realized... i forgot to purge the sef urls and clean the cache Embarrassed

great work man!!!

thanks
arsoy
Logged
Fallen
Need help?
Administrator
Newbie
*****
Posts: 41

Lazyness drives us forward!


« Reply #4 on: December 27, 2007, 06:20:41 PM »

Here is a new version with the prefix working, see the page:

download page for 2.2.4

Tested on:
 * Joomla 1.0.13
 * ARTIO JoomSEF 2.2.4
 * VirtueMart 1.0.13a

Enjoy!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.4 | SMF © 2006, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks
Valid XHTML 1.0! Valid CSS!