Don’t you just hate it when cscart converts all your product names to lower case when Capitalize letters do matter.
Don’t you just want to give cscart the finger and tell cscart to #### off?
Now you can reclaim your capitalized letters in your SEO links with a simple #.
Here’s how and it’s free. Limited time offer so get it while supplies last.
Requires only one simple modification.
Modify the function ‘fn_generate_name’ in the file ‘core/fn.catalog.php’
Comment out the strtolower() function like this:
#$str = strtolower($str); // only lower letters
```<br />
<br />
<br />
Now you can have pretty capitalized letters in your SEO url link like I do:<br />
<br />
[url]http://www.inkwow.com/Brother-ink-cartridges.html[/url]<br />
<br />
or<br />
<br />
[url]http://www.inkwow.com/Brother-LC41B-Compatible-Black-Ink-Cartridge.html[/url]
Oh, if you are one of the lucky few using v 2.0.9, you’ll have to change:
```php
$str = strtolower($str); // only lower letters
$str = preg_replace(“/($d){2,}/”, $d, $str); // replace double (and more) dashes with one dash
$str = preg_replace(“/[^a-z0-9-.]/”, ‘’, $str); // URL can contain latin letters, numbers, dashes and points only
```
to
```php
#$str = strtolower($str); // only lower letters
$str = preg_replace(“/($d){2,}/”, $d, $str); // replace double (and more) dashes with one dash
$str = preg_replace(“/[^a-zA-Z0-9-.]/”, ‘’, $str); // URL can contain latin letters, numbers, dashes and points only
```
Yeah. Take that cscart!
hyteckit,
Didn’t work for me. Instead it removed the first letter of each of my words:
[url]http://www.boyscoutstore.com/agle-cout-nsignia-oin-ickel.html[/url]
Any ideas?
Thanks,
Adam
Maybe check your code and make sure it matches:
```php
#$str = strtolower($str); // only lower letters
$str = preg_replace(“/($d){2,}/”, $d, $str); // replace double (and more) dashes with one dash
$str = preg_replace(“/[^a-zA-Z0-9-.]/”, ‘’, $str); // URL can contain latin letters, numbers, dashes and points only
```
I’m pretty sure your code doesn’t.
Your code probably shows:
```php
$str = strtolower($str); // only lower letters
$str = preg_replace(“/($d){2,}/”, $d, $str); // replace double (and more) dashes with one dash
$str = preg_replace(“/[^a-z0-9-.]/”, ‘’, $str); // URL can contain latin letters, numbers, dashes and points only
```
which only allows lowercase letters and number. Thus your capitalize letters are removed.
Is the only difference the #?
I put that on and looked at it and it removed the first letter of each word and did not capitalize.
Any ideas?
Adam
It’s just 3 lines of code and you can’t tell the difference?
Keeps capitalize letters:
```php
$str = preg_replace(“/[^a-zA-Z0-9-.]/”, ‘’, $str); // URL can contain latin letters, numbers, dashes and points only
```
Removes capitalize letters:
```php
$str = preg_replace(“/[^a-z0-9-.]/”, ‘’, $str); // URL can contain latin letters, numbers, dashes and points only
```
hyteckit,
This is really wierd. I have the lines you are talking about, but I have version 2.0.8.
Should I make the changes?
Thanks,
Adam
Nowadays it does not matter whether you have uppercase or lowercase letters in the url.
[quote name=‘indy0077’]Nowadays it does not matter whether you have uppercase or lowercase letters in the url.[/QUOTE]
People like this for human readability.
[url]Printer inkjet cartridges and laser toners for cheap | inkWOW.com is easier to read than
[url]Printer inkjet cartridges and laser toners for cheap | inkWOW.com
Bob
[quote name=‘jobosales’]People like this for human readability.
[/quote]
Agreed that it’s a PITA to type out as well.
[quote name=‘jobosales’]People like this for human readability.
[URL]Printer inkjet cartridges and laser toners for cheap | inkWOW.com is easier to read than
[URL]Printer inkjet cartridges and laser toners for cheap | inkWOW.com
Bob[/quote]
I think, if I have to make a url for people, then I use a anchor text for. How many people (I mean internet users) are looking on the url’s?
indy-
This thread is an offshoot of another titled “How to Capitalize URL - Easy Eye Hook” (bold my emphasis):
[url]http://forum.cs-cart.com/showthread.php?t=12610[/url]
From the other thread:
[QUOTE]This capitalized URL:
[url]http://mysite.com/Adidas-Mens-Climacool-Mesh-Polos.html[/url]
Is easier to read than this non-capitalized URL:
[url]http://mysite.com/adidas-mens-climacool-mesh-polos.html[/url]
This is particularly true in the SERP, where the capitalization of URLs becomes a hook to the eye of the reader.
[QUOTE]Initial capitalization produces a lift of between 10% and a whopping 50%. Why? The eye naturally gravitates toward capitalization.[/QUOTE]
Source: [url]http://www.blindfiveyearold.com/ppc-display-url-initial-capitalization[/url]
[/QUOTE]
I will leave it to others more knowledgeable than I am to argue the validity of the quoted article but this is still a cool hack.
Bob
Might not matter to SEO.
But it sure makes it easier to read in:
- stats
- send to friend
- social bookmarking
- text email marketing
Quick question, how did you remove the category name from the product links on your site ??
[quote name=‘hyteckit’]Don’t you just hate it when cscart converts all your product names to lower case when Capitalize letters do matter.
Don’t you just want to give cscart the finger and tell cscart to #### off?
Now you can reclaim your capitalized letters in your SEO links with a simple #.
Here’s how and it’s free. Limited time offer so get it while supplies last.
Requires only one simple modification.
Modify the function ‘fn_generate_name’ in the file ‘core/fn.catalog.php’
Comment out the strtolower() function like this:
```php
#$str = strtolower($str); // only lower letters
```
Now you can have pretty capitalized letters in your SEO url link like I do:
[url]Printer inkjet cartridges and laser toners for cheap | inkWOW.com
or
[url]Printer inkjet cartridges and laser toners for cheap | inkWOW.com
[quote name=‘speedy6963’]Quick question, how did you remove the category name from the product links on your site ??[/quote]
In the SEO addon.