extensions.Siliana.com

Home arrow sh404SEF arrow Documentation arrow Virtuemart and sh404SEF information
Please make a small donation
(big donation ok too)
Virtuemart and sh404SEF information
  • Virtuemart 1.0.10 bug when using Joomfish

(see topic #26943 on VirtueMart forum)


File : /components/com_virtuemart/virtuemart_parser.php

line 40: insert code, so that result is as follow :

$option = mosGetParam( $_REQUEST, 'option' );

// shumisha fix for Joomfish, as per post on forum topic = 26943.0
global $mosConfig_lang;
$jFishLang = $mosConfig_lang;
// end of fix

if( !defined( '_VM_PARSER_LOADED' )) {

line 60 : insert code, so that result is as follow :

// the configuration file for the Shop
require_once( $mosConfig_absolute_path. "/administrator/components/com_virtuemart/virtuemart.cfg.php" );
// fix for Joomfish, as per post on forum topic = 26943.0
$mosConfig_lang = $jFishLang;
// end of fix
// The abstract language class
require_once( CLASSPATH."language.class.php" );

  • Utilisation Virtuemart en SSL

To have the best chances of correct operation of Virtuemart in SSL mode, it is required that you input your sSSL server base URL:

where ? sh404SEF configuration, Advanced tab, Advanced configuration section, parameter: SSL mode URL

How? : do not add a trailing /, this is opposite to Virtuemart

On some servers, it is almost impossible to make SSL work. you need very complex .htaccess files, with different redirects in SSL and non-SSL mode. In such a case, you can try activate the parameter just below the  previous one : Force non sef if HTTPS?

 

  • Joomla hack to allow SSL operation with Virtuemart (and others as well)

Find and open file : /includes/joomla.php

Locate the text : function sessionCookieName().

Replace the next lines to make it as follows:

function sessionCookieName() {
global $mainframe;

//return md5( 'site' . $mainframe->getCfg( 'live_site' ) );
// shumisha : found at http://www.netshinesoftware.com/security/ using-an-ssl-certificate-with-your-joomla-website.html
return md5( 'site' . str_replace('http://', '', str_replace('https://', '', $mainframe->getCfg( 'live_site' ))) );
}

 

 

 
Advertisement