Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Sep 2007
    Posts
    2
    Plugin Contributions
    0

    Default 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
    Code:
    define('FILENAME_PRODUCT_MUSIC_INFO', 'product_music_info');
    2 - open class/class.seo.php and search for
    Code:
    			$seo_pages = array(
    				FILENAME_DEFAULT, 
    				FILENAME_PRODUCT_INFO, 
    				FILENAME_POPUP_IMAGE,
    				FILENAME_PRODUCT_REVIEWS,
    				FILENAME_PRODUCT_REVIEWS_INFO,
    			);
    change with
    Code:
    			$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 :
    Code:
    					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
    Code:
    					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

  2. #2
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default 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

 

 

Similar Threads

  1. Read the Reviews does not work
    By milli in forum General Questions
    Replies: 1
    Last Post: 3 May 2011, 06:24 PM
  2. Ultimate SEO URLs Does Not Work with Categories with Only One Product
    By hossbronco in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 17 Oct 2008, 04:03 AM
  3. 3rd-party Paypal Wpp Does Not Work
    By Satu in forum PayPal Express Checkout support
    Replies: 7
    Last Post: 10 Feb 2007, 07:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg