Code:
if ( !defined('XCART_SESSION_START') ) { header("Location: ../../"); die("Access denied"); }
############################################################
# 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
set_time_limit(0);
Code:
$product['price'] = $tmp['taxed_price'];
############################################################
# X-CART-SEO Mod :: http://code.google.com/p/x-cart-seo/
############################################################
# The following has been commented out and replaced
#
# # Post string
# $post = substr(str_replace(array("\t","\r","\n"), array(" ","",""), $product['product']), 0, 80)."\t".
# $product['descr']."\t".
# $http_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 = substr(str_replace(array("\t","\r","\n"), array(" ","",""), $product['product']), 0, 80)."\t".
$product['descr']."\t".
$http_location.constant("DIR_CUSTOMER")."/".$prod_url."\t";
}else{
$post = substr(str_replace(array("\t","\r","\n"), array(" ","",""), $product['product']), 0, 80)."\t".
$product['descr']."\t".
$http_location.constant("DIR_CUSTOMER")."/product.php?productid=".$product['productid']."\t";
}
$post .= $tmbn."\t".
# End SEO
$product['productid']."\t".