Jump to content
Sign in to follow this  
Shane Harrrison

googlebase

Recommended Posts

Hi All.

 

I'm trying to enable the googlebase contribution for url_rewrite & nemmit_sef html tags

 

I've been enable to add the main url name with the title name and html tag at the end, but I'm really struggling with the inputting

-
with in the title name.

 

The google base contribution I'm using is googlebase 1 2 1, I think.

 

Below is how the googlebase contribution is now delivering the link, but what is required is

 

Now:

http://www.ourwebsite.co.uk/product/a very small product.html

 

would need for the correct link:

http://www.ourwebsite.co.uk/product/a-very...ll-product.html

 

So far section of the coding I have changed are:

 

Line: 113*

if(SEO_ENABLED=='false'){
  $productURL = 'product_info.php'; 
  $productParam = "products_id=";   
}else{
$htmltagrj = '.html';
$urlProducthtml = HTTP_SERVER.'/product/';
  $productURL = HTTP_SERVER.'/product/';

 

line 147:

 

SELECT concat( '" . $productURL . "' ,products.products_id) AS product_url,
products_model AS prodModel, 
products_weight AS weight,
products_description.products_head_title_tag AS ean,
products_description.products_head_keywords_tag AS ckeywords, 
manufacturers.manufacturers_name AS mfgName,
manufacturers.manufacturers_id,
products.products_id AS id,
products_description.products_name AS name,
products_description.products_description AS description,
products.products_quantity AS quantity,
products.products_status AS prodStatus,
FORMAT( IFNULL(specials.specials_new_products_price, products.products_price) * " . $taxCalc . ",2) AS price,
CONCAT( '" . $imageURL . "' ,products.products_image) AS image_url,
products_to_categories.categories_id AS prodCatID,
categories.parent_id AS catParentID,
categories_description.categories_name AS catName
FROM (categories,
categories_description,
products,
products_description,
products_to_categories)

 

line 248:

$output = "link\ttitle\tdescription\texpiration_date\tprice\timage_link\tgenre\tid\tC:keywords\tean\tweight";

 

 

line 329:

$output .=  $urlProducthtml . $row->name . ".html" . "\t"  .  
	preg_replace($_strip_search, $_strip_replace, strip_tags( strtr($row->name, $_cleaner_array) ) ) . "\t" .
	preg_replace($_strip_search, $_strip_replace, strip_tags( strtr($row->description, $_cleaner_array) ) ) . "\t" .
	$feed_exp_date . "\t" .
	$row->price . "\t" .
	$row->image_url . "\t" .
	$catIndex[$row->prodCatID] . "\t" .
	$row->id . "\t" .
	preg_replace($_strip_search, $_strip_replace, strip_tags( strtr($row->mfgName, $_cleaner_array) ) ) . "\t" .
	$row->ean . "\t"  .
	$row->weight . $WeightUnit;

 

If you need to see the entire code please drop me a PM. Any help would be much appreciated.

 

Regards. Shane.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×