Just a minor change in the modification for modules/Froogle/froogle.php for X-Cart 4.1.6:
-----------
Find Code:
-----------
Code:
if ( !defined('XCART_SESSION_START') ) { header("Location: ../../"); die("Access denied"); }
------------
After, Add
------------
Code:
############################################################
# X-CART-SEO Mod :: http://code.google.com/p/x-cart-seo/
############################################################
if (!empty($active_modules["XC_SEO"])) {
include $xcart_dir."/modules/XC_SEO/loader.seo.php";
}
# END SEO
This next part is the part with the small change:
-----------
Find Code:
-----------
Code:
# Post string
$post = func_froogle_convert($product['product'], 80)."\t".
func_froogle_convert($product['descr'], 65536)."\t".
$froogle_location.constant("DIR_CUSTOMER")."/product.php?productid=".$product['productid']."\t".
$tmbn."\t"
------------
Replace With
------------
Code:
############################################################
# X-CART-SEO Mod :: http://code.google.com/p/x-cart-seo/
############################################################
# The following has been commented out and replaced
#
# # Post string
# $post = func_froogle_convert($product['product'], 80)."\t".
# func_froogle_convert($product['descr'], 65536)."\t".
# $froogle_location.constant("DIR_CUSTOMER")."/product.php?productid=".$product['productid']."\t".
# $tmbn."\t".
#
# SEO replacement code begin
#
# Post string
if (!empty($active_modules["XC_SEO"])){
# Build SEO URL
$prod_url = $seo->_product_callback(array(false,'','productid='.$product['productid'],'',''), true, $product['product']);
$post = func_froogle_convert($product['product'], 80)."\t".
func_froogle_convert($product['descr'], 65536)."\t".
$froogle_location.constant("DIR_CUSTOMER")."/".$prod_url."\t";
}else{
$post = func_froogle_convert($product['product'], 80)."\t".
func_froogle_convert($product['descr'], 65536)."\t".
$froogle_location.constant("DIR_CUSTOMER")."/product.php?productid=".$product['productid']."\t";
}
$post .= $tmbn."\t".
# End SEO
This is working on my store. The changes to includes/func/func.core.php seem to be unnecessary in 4.1.6. The includes/get_language.php file is different in 4.1.6 than it was in 4.1.3. I don't have the language selector enabled on my site, so I can't confirm the effect of not modifying that file.
Hope this helps someone.
Cheers,
Jason