Forums / All Other Contributions/Addons / SEO 3rd party module does not work with music products : read the solution here

SEO 3rd party module does not work with music products : read the solution here

Locked

Views: 1,183

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
23 Feb 2008, 3:03 PM
#1
nikko666 avatar

nikko666

New Zenner

Join Date:
Sep 2007
Posts:
2
Plugin Contributions:
0

SEO 3rd party module does not work with music products : read the solution here

Hi, I've installed the SEO contribution that works fine but my website is selling only music product.
I had to customize Zen cart to fix some bugs thqt prevent using the SEO module with music product.
It would be great if these fix were included in the future release of Zencart.

Here is what to do :
1- go in includes/filenames.php and add

define('FILENAME_PRODUCT_MUSIC_INFO', 'product_music_info');

2 - open class/class.seo.php and search for ```
$seo_pages = array(
FILENAME_DEFAULT,
FILENAME_PRODUCT_INFO,
FILENAME_POPUP_IMAGE,
FILENAME_PRODUCT_REVIEWS,
FILENAME_PRODUCT_REVIEWS_INFO,
);

change with ```
			$seo_pages = array(
				FILENAME_DEFAULT, 
				FILENAME_PRODUCT_INFO, 
				FILENAME_PRODUCT_MUSIC_INFO, 
				FILENAME_POPUP_IMAGE,
				FILENAME_PRODUCT_REVIEWS,
				FILENAME_PRODUCT_REVIEWS_INFO,
			);

3- now search :

					case ($page == FILENAME_PRODUCT_INFO):
						$url = $this->make_url($page, $this->get_product_name($p2[1]), $p2[0], $p2[1], '.html', $separator);
						break;
					case ($page == FILENAME_PRODUCT_REVIEWS):
						$url = $this->make_url($page, $this->get_product_name($p2[1]), 'products_id_review', $p2[1], '.html', $separator);
						break;
					case ($page == FILENAME_PRODUCT_REVIEWS_INFO):
						$url = $this->make_url($page, $this->get_product_name($p2[1]), 'products_id_review_info', $p2[1], '.html', $separator);
						break;

and replace with ```
case ($page == FILENAME_PRODUCT_INFO):
$url = $this->make_url($page, $this->get_product_name($p2[1]), $p2[0], $p2[1], '.html', $separator);
break;
case ($page == FILENAME_PRODUCT_MUSIC_INFO):
$url = $this->make_url($page, $this->get_product_name($p2[1]), $p2[0], $p2[1], '.html', $separator);
break;
case ($page == FILENAME_PRODUCT_REVIEWS):
$url = $this->make_url($page, $this->get_product_name($p2[1]), 'products_id_review', $p2[1], '.html', $separator);
break;
case ($page == FILENAME_PRODUCT_REVIEWS_INFO):
$url = $this->make_url($page, $this->get_product_name($p2[1]), 'products_id_review_info', $p2[1], '.html', $separator);
break;


You have to configure the SEO module in the admin->configuration to support product_music_info in the page list and that's it.

Nikko
23 Feb 2008, 3:22 PM
#2
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: SEO 3rd party module does not work with music products : read the solution here

Please make sure you mention which module you are talking about as well, Im assuming ultimate seo module in this case.

I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me