osCmax v2.5 User Manual
Results 1 to 3 of 3

Ultimate SEO URLs

This is a discussion on Ultimate SEO URLs within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; Default package didn't work properly for me so I spent long day to find out how it works. This mod ...

      
  1. #1
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Post Ultimate SEO URLs

    Default package didn't work properly for me so I spent long day to find out how it works. This mod only adds manufacturer to product url, so if you had default:
    yourshop.com/productname-p-1.html
    you can have:
    yourshop.com/manufacturer-productname-p-1.html

    Based on this mod you can easily replace manufacturer to category name.

    Feel free to change this code.

    Enjoy!

    More...
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  2. #2
    New Member
    Join Date
    Feb 2009
    Posts
    6
    Rep Power
    0


    Default Re: Ultimate SEO URLs

    Hi Mike,
    I have oscmax installed. Does your post relate to oscmax? there is no seo.class.php in the includes directory.

    thanks.

  3. #3
    New Member
    Join Date
    Feb 2009
    Posts
    6
    Rep Power
    0


    Default Re: Ultimate SEO URLs

    I made the following modifications to seo_cache.php to get the manufacturer's name in the seo url.

    line 50. replace the sql query with this:
    $product_query = tep_db_query("select p.products_id, pd.products_name, m.manufacturers_name from manufacturers m, products p left join products_description pd on p.products_id=pd.products_id and pd.language_id='".(int)$languages_id."' where p.products_status='1' and m.manufacturers_id = p.manufacturers_id");

    Line 55, 56. Replace the array population with this:
    $prod_array[$product['products_id']] = array('name' => strip($product['products_name']),
    'id' => $product['products_id'], 'manuf' => strip($product['manufacturers_name']));

    Line 65. Add the following line after this $id = $record['id'];
    $manuf = $record['manuf'];

    Line 78. Replace with the following
    $prod_cache .= 'define('PRODUCT_NAME_' . $id . '', ''.$manuf.'-'. $name . ''); ' . "n";


    Hope this helps someone.
    -Tman

Similar Threads

  1. Ultimate SEO URLs
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 01-08-2008, 04:11 PM
  2. Ultimate SEO URLs
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 07-31-2007, 11:57 AM
  3. Ultimate SEO URLs
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 07-31-2007, 06:31 AM
  4. Ultimate SEO URLs
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 07-13-2007, 03:57 AM
  5. Ultimate SEO URLs
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 07-08-2007, 01:42 AM

Bookmarks

Posting Permissions

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