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