
Originally Posted by
lankeeyankee
First, thanks again a million times for ALL of your hard work and fantastic additions to ZC!!
I have installed the latest SSU release 3.6.0 on my live test site, a clone of the live site on a different domain, 1.3.7.1 with a zillion mods. Everything so far looks great and there have been no issues at all.
I have a question about how to change the string when there are " and & in the product name. I have had to have it like that instead of just " and & because ZC strips them from the header title so the browser title won't show them, plus the Google Base XML file will throw errors when trying to upload to Google since " and & aren't valid XML. What happens with SSU is this:
10-quot-amp-11-quot
I have changed the product titles so that it is just with " and & and now SSU displays like this:
10-11
but then the title bar in the browser just displays 10 & 11 instead of 10" & 11".
Is there a way to make it include the " and &? A very small point, I know, but I thought I'd ask to see if it's a small adjustment somewhere. We have well over 1000 products with " and & in the title and it reads better with them in.
You can do it, and SSU is very flexible in that. I will assume that you are using english for now, so first you want to go to
includes/classes/ssu/plugins/languages/
clone the file default.php and give it a name en.php (doesnt really matter which name you want). We do this to make sure the change is not overwritten in future update.
Then you will have to go en.php, find this
// we replace any non alpha numeric characters by the name delimiter
PHP Code:
$name = self::removeNonAlphaNumeric($name, SSUConfig::registry('delimiters', 'name'));
So instead of using the stock function, you will have to put in your own code here to remove only the characters you have to remove while leaving the ones you want in the link
this function removeNonAlphaNumeric is located in includes/classes/ssu/cores/language.php for your reference.
Then in your includes/ssu/classes/local.config.php you have to set language like this
you tell ssu to use this new parser for english name instead)
PHP Code:
//.....
'languages' => array( 'en' => 'en',
//......
If you want the change to apply to all languages, then it can be done as well, you can do something like this
PHP Code:
//.....
'languages' => array( 'default' => 'en',
//......