Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[CONTRIBUTION] Ultimate SEO URLs v2.1 - by Chemo


Recommended Posts

Jack,

 

Thanks for your reply it was a IIS thing and none us will ever understand... I restarted IIS server after making changes to the httpd.ini file it seems everytime I make a change I have to restart IIS to have it re-read the file which its like its a cache which is wierd but oh well thats the way its works on mine IIS 6.0....

 

Thanks again really appreciate the support and contributions to keep this the cart around.....

Link to comment
Share on other sites

Jack,

 

Thanks for your reply it was a IIS thing and none us will ever understand... I restarted IIS server after making changes to the httpd.ini file it seems everytime I make a change I have to restart IIS to have it re-read the file which its like its a cache which is wierd but oh well thats the way its works on mine IIS 6.0....

 

Thanks again really appreciate the support and contributions to keep this the cart around.....

You're welcome. I'm glad you found and posted the fix since I would probably not have thought to ask about the type of server.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Hello Jack,

 

Is it possible to a create an option to add manufacturers_id to product URLs? Like: http://www.junabelle.de/speick-men-after-shave-lotion-p-65.html?manufacturers_id=19

When customers browse to a product by the manufacturers dropdown/list or by „other products“ from the manufacturer info box, I'd liked to show the link in the breadcrumb to the manufacturers overview like in the standard version of an osCommerce shop . I'm not concerned about duplicate content, because I'm using the canonical tag to present product urls without parameters to search engines. Furthermore -unlike cPath, which can be added- there is only one manufacturer per product.

 

Best regards,

Birgit

Link to comment
Share on other sites

Is it possible to a create an option to add manufacturers_id to product URLs? Like: http://www.junabelle.de/speick-men-after-shave-lotion-p-65.html?manufacturers_id=19

When customers browse to a product by the manufacturers dropdown/list or by „other products“ from the manufacturer info box, I'd liked to show the link in the breadcrumb to the manufacturers overview like in the standard version of an osCommerce shop . I'm not concerned about duplicate content, because I'm using the canonical tag to present product urls without parameters to search engines. Furthermore -unlike cPath, which can be added- there is only one manufacturer per product.

You could try the "Add cPath to product URLs?" setting. It won't be exactly what you want but may be close though it won't be a separate link in the breadcrumb, which it sounds like what you want.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Jack,

 

Thanks for your reply. "Add cPath to product URLs?" is still set. It's working fine. It is following the standard pathes of osCommerce - but in SEO-URLS. Going the path (also shown in the breadcrumb) Top » Catalog » DVD Movies » Drama » DVD-BELOVED in the demo store gets the URL http://demo.oscommerce.com/product_info.php?cPath=3_15&products_id=20

With USU and 'add cPath setting = true' this would become something like http://demo.oscommerce.com/beloved-p-20.html?cPath=3_15

 

What I'm looking for, is a "Add Manufacturer_id to product URLs?" setting. (Similar to the cPath setting.) And just keeping the given manufacturer pathes of osCommerce - but in SEO-URLS.

So coming from manufacturers the "manufacturers path" and breadcrumb looks as follows: Top » Catalog » Warner » DVD-BELOVED. The URL is:

http://demo.oscommerce.com/product_info.php?manufacturers_id=3&products_id=20

With USU and manufacturers_id setting = true this would be written like http://demo.oscommerce.com/beloved-p-20.html?manufacturers_id=3.

Hope I made it a bit clearer now.

 

Best Regards,

Birgit

Edited by russischblauekatze
Link to comment
Share on other sites

What I'm looking for, is a "Add Manufacturer_id to product URLs?" setting. (Similar to the cPath setting.) And just keeping the given manufacturer pathes of osCommerce - but in SEO-URLS.

So coming from manufacturers the "manufacturers path" and breadcrumb looks as follows: Top » Catalog » Warner » DVD-BELOVED. The URL is:

http://demo.oscommerce.com/product_info.php?manufacturers_id=3&products_id=20

With USU and manufacturers_id setting = true this would be written like http://demo.oscommerce.com/beloved-p-20.html?manufacturers_id=3.

Hope I made it a bit clearer now.

I understood what you meant. There isn't an option for that in the contribution. The code would have to be changed to do what you want.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

What I'm looking for, is a "Add Manufacturer_id to product URLs?" setting. (Similar to the cPath setting.) And just keeping the given manufacturer pathes of osCommerce - but in SEO-URLS.

So coming from manufacturers the "manufacturers path" and breadcrumb looks as follows: Top » Catalog » Warner » DVD-BELOVED. The URL is:

http://demo.oscommerce.com/product_info.php?manufacturers_id=3&products_id=20

With USU and manufacturers_id setting = true this would be written like http://demo.oscommerce.com/beloved-p-20.html?manufacturers_id=3.

I just thought to add that for sites with Header Tags SEO installed, the breadcrumb trail changes to the name of the manufacturer. So, in a standard shop, selecting Microsoft would provide Top » Catalog » Microsoft. That may be a little closer to what you want. If it is, you don't have to have Header Tags SEO installed (though you should). You just need to copy the changes to includes/application_top.php it makes and edit them to not use the Header Tags names.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

You just need to copy the changes to includes/application_top.php it makes and edit them to not use the Header Tags names.

Tried it but it did not change anything. When you edit the replacement and change "categories_htc_title_tag" back to "categories_name" and "manufacturers_htc_title_tag" back to "manufacturers_name" the file looks quite like the original one.

I give it up for the moment. I still have to write some Christmas Greetings...!

So, Happy Holidays to you and all who are reading this thread.

Birgit

Link to comment
Share on other sites

We have been using USU v2.1d Original for several years without a bit of trouble. In it a fit of exuberance, I decided to try the cleaned up Ultimate Seo Urls 2.1d STABLE FINAL r172.

 

 

With 2.1 original, we would see a url such as:

 

http://www.cactustactical.com/osc/ace-stocks-c-453.html'>http://www.cactustactical.com/osc/ace-stocks-c-453.html

 

which was the translated url for:

 

http://www.cactustactical.com/osc/index.php?cPath=453.'>http://www.cactustactical.com/osc/index.php?cPath=453.

 

 

Now with 2.1d Stable Final r172, we get:

 

http://www.cactustactical.com/osc/php4?cPath=453

 

The index. has been lost from the url and php has been changed to php4. This happens for every manufacturers, categories and products page. What we get is the 404 redirect since the url is incomplete.

 

What is interesting is that if the old seo-class.php script is put back, the contribution works fine with the other Final r172 changes. So, the issue is coming out of the seo-class.php script.

 

Looked for a similiar issue, but have not seen anything of this sort since Final r172 was made live.

 

 

Anyone have any ideas?

Link to comment
Share on other sites

Hi Jack,

 

Excellent contribution! Thanks for all your support. It's been a great help for a newbie like me. I had the redirect to index.php problem that happens in some templates and followed instructions in a previous post:

 

__________________________________________________________

 

Posted 10 October 2010 - 12:04 PM

 

If clicking a product or Mfr takes you back to the index.php page, read this!

I'd love to take credit for this fix, but I am not THAT good of a PHP developer (yet). However, if you look here http://addons.oscomm.../info/2823/v,22, Sunrise99 found a fix for your problem on February 6. I was having the same problem. The Ultimate SEO contribution (wonderful, by the way) automatically sets the new pages to .HTML pages. Your /includes/header.php file contains the following line ...

 

 

if(strpos($path_parts['basename'], "php") == false)

{

print("<script type='text/javascript'>window.location='index.php';</script>");

}

 

that basically says "If 'php' is not included in the basename URL, redirect to index.php! THAT'S WHAT'S CAUSING YOUR PROBLEM.

 

I simply added "//" before print("... and it works GREAT! My code in header.php now looks like this...

 

 

if(strpos($path_parts['basename'], "php") == false)

{

//print("<script type='text/javascript'>window.location='index.php';</script>");

}

 

Sunrise99, you saved me a HELLUVA lot of troubleshooting! Thanks a million!

 

Jim Evans

unpaid help for Aunt Denise's Children's Used Clothing and More

 

_________________________________________________________

 

After following this post, I lost my banner ads on my home page (which follows the above line I commented out). I see where the problem may be, but have no idea how to fix it. Any suggestions. Here's the relevant section of my header.php.

 

__________________________________________________________

 

<?php

$path_parts=getCurrPathName();

 

if(strpos($path_parts['basename'], "php") == false)

 

{

//print("<script type='text/javascript'>window.location='index.php';</script>");

}

 

if(($path_parts['basename'] != "index.php") && ($path_parts['basename'] != "") && ($path_parts['basename'] != "index.php?language=en") && ($path_parts['basename'] != "index.php?language=de") && ($path_parts['basename'] != "index.php?language=es") && ($path_parts['basename'] != "index.php?currency=EUR") && ($path_parts['basename'] != "index.php?currency=USD") && ($path_parts['basename'] != "index.php?currency=USD&language=en") && ($path_parts['basename'] != "index.php?currency=USD&language=de") && ($path_parts['basename'] != "index.php?currency=USD&language=es") && ($path_parts['basename'] != "index.php?currency=EUR&language=en") && ($path_parts['basename'] != "index.php?currency=EUR&language=de") && ($path_parts['basename'] != "index.php?currency=EUR&language=es"))

 

{

 

?>

 

<?php

 

}else{

 

?>

 

<tr><td class="banner"><a href="index.php?cPath=1"><img border=0 src="images/banners/banner_02.jpg"></a><a href="specials.php"><img border=0 src="images/banners/banner_04.jpg"></a></td></tr>

 

<?php

}

?>

<tr><td class="row_3">

 

 

_______________________________________________

 

Any help or advice would be greatly appreciated.

Best,

Iffy

Edited by iffy
Link to comment
Share on other sites

After following this post, I lost my banner ads on my home page (which follows the above line I commented out). I see where the problem may be, but have no idea how to fix it. Any suggestions. Here's the relevant section of my header.php.

The code in your shop that is causing the problem is not necessairly the same as in other shops. So, while you are in the right area of code, other changes may be needed to get it to work with your template. Unfortunatley, that isn't a problem with this contribution but with the code in your shop so it isn't something that is supported here. You can try posting in the general forum and see if someone wants to spend the time fixing it for you. Otherwise you will need to figure it out yourself or pay someone to do it for you.

Edited by Jack_mcs

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Ultimate SEO - by Chemo

 

Hi!

 

After the installation has received the following:

lace-bodystocking-p-3931.html?osCsid=jmee00eqeled5l2gelvjssiqu6

http://intimleksaker.com/sexleksaker/lace-bodystocking-p-3931.html'>http://intimleksaker.com/sexleksaker/lace-bodystocking-p-3931.html?osCsid=jmee00eqeled5l2gelvjssiqu6'>http://intimleksaker.com/sexleksaker/lace-bodystocking-p-3931.html'>http://intimleksaker.com/sexleksaker/lace-bodystocking-p-3931.html?osCsid=jmee00eqeled5l2gelvjssiqu6

 

I would like to see a URL like this:

lace-bodystocking-p-3931.html

http://intimleksaker.com/sexleksaker/lace-bodystocking-p-3931.html'>http://intimleksaker.com/sexleksaker/lace-bodystocking-p-3931.html

 

Or

http://intimleksaker.com/sexleksaker/lace-bodystocking

 

Here are the settings module:

seo.PNG

 

Thank you very much for help!

Edited by svefactor
Link to comment
Share on other sites

The is possible by setting up your configure file correctly. See here. The second isn't possible with this contribution.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Has anyone tried this contribution with oSC 2.3.1 yet?

 

As I dont have php 5 available on my server, and the latest SEO urls contributions that have been released for 2.3.1 are PHP5+

Link to comment
Share on other sites

Hi Jack,

 

Happy New Year!!!

Marvellous contribution, had it up and running on test server in less than 10 minutes.

 

Everything is fine except "Special character conversion". It does not seem to work. It omits special characters.

I have this string to convert Lithuanian special characters 'ą'=>'a','č'=>'c','ę'=>'e','ė'=>'e','į'=>'i','š'=>'s','ų'=>'u','ū'=>'u','ž'=>'z'

 

I checked configuration table in DB, all chars are shown correctly. Database encoding is utf8-general-ci.

 

Can you help me with this?

 

Example: "25 mm sidabro spalvos ruošinys segei, Gutermann, 1 vnt." => converts => "/sidabro-spalvos-ruoinys-segei-gutermann-p-3788.html"

 

Kovar

Link to comment
Share on other sites

Hi Jack,

 

Happy New Year!!!

Marvellous contribution, had it up and running on test server in less than 10 minutes.

 

Everything is fine except "Special character conversion". It does not seem to work. It omits special characters.

I have this string to convert Lithuanian special characters 'ą'=>'a','č'=>'c','ę'=>'e','ė'=>'e','į'=>'i','š'=>'s','ų'=>'u','ū'=>'u','ž'=>'z'

 

I checked configuration table in DB, all chars are shown correctly. Database encoding is utf8-general-ci.

 

Can you help me with this?

 

Example: "25 mm sidabro spalvos ruošinys segei, Gutermann, 1 vnt." => converts => "/sidabro-spalvos-ruoinys-segei-gutermann-p-3788.html"

 

Kovar

 

That is correct, only the basic Latin alphabet is allowed in a URI.

Edited by FWR Media
Link to comment
Share on other sites

Any ideas how to change it to the English version. Many Thanks

Replace the includes/classes/seo.class.php file

Goto admin->Configuration->SEO URLs and set the uninstall setting to true

Goto youu shop and click on the home (catalog) link to refresh the page

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

That is correct, only the basic Latin alphabet is allowed in a URI.

 

But I thought main idea of special character conversion is to convert special characters to basic Latin? Am I right?

In my example special character 'š' is not converted to 's', it is just simply removed.

Link to comment
Share on other sites

But I thought main idea of special character conversion is to convert special characters to basic Latin? Am I right?

In my example special character 'š' is not converted to 's', it is just simply removed.

 

In which case perhaps your database encoding is conflicting with your osCommerce encoding?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...