You are here:  » Trailing slashes in product names


Trailing slashes in product names

Submitted by Bakalinge on Mon, 2014-04-14 13:14 in

Hi David,

I noticed that my product names are stripped (probably for the url version) and some special caracters are removed (slashes...).

Is it possible to keep this special caracters in product names (no need to change urls, just need to display this caracters in product titles) ?

Thanks

Submitted by support on Mon, 2014-04-14 13:28

Hello Bak,

I know you've been using the script for a long time - it sounds like the titles are using the URL (normalised) version of the product name which I changed in more recent distributions. Easily fixed - if you edit your products.php and look for the following code around line 64:

  $header["title"] = htmlentities($q,ENT_QUOTES,$config_charset);

...and REPLACE with:

  $header["title"] = htmlentities($product["products"][0]["name"],ENT_QUOTES,$config_charset);

If you then serach for the line beginning:

$banner["h2"]

...CUT and then PASTE that line in just below where $header["title"] is set as per the above modification, and then REPLACE

$q

With:

$product["products"][0]["name"]

If you're not sure of course, email me your current version and I'll fix them up for you...

Cheers,
David.
--
PriceTapestry.com