Page 1 of 1

how to create custom URL

Posted: Mon Aug 30, 2010 3:05 pm
by elyas
how can i modify how the url is displayed.

currently on my store when i click on a category i get : http://www.testshop.com/categories/Shop-iPod/

i want to change the word ( categories) in the url to (city ). i want the url to look like http://www.testshop.com/city/Shop-iPod/

help would be greatly appreciated.

cheers

Re: how to create custom URL

Posted: Mon Aug 30, 2010 4:40 pm
by CharlieFoxtrot
The word "categories" appears to be defined at the top of /lib/general.php and you may be able to make the change there.

This may be a good starting point... but it may not work properly if you've ALREADY created categories using the default "categories".

THIS IS JUST A GUESS on my part (and maybe someone can confirm or clarify for me) but if you change "general.php" and redefine the word "categories", it might break existing categories... and it may only be applied to newly created categories.

As always, keep backups of your work and your database before making changes.

In any case, this is ONLY a starting point and NOT a guaranteed solution. Everything here is at your own risk.

Good luck! Let us know how it goes.

Charlie

Re: how to create custom URL

Posted: Tue Aug 31, 2010 6:41 am
by elyas
Hi charlie

thanks for you input and i did try to change the (define("CAT_LINK_PART", "categories"); ) in /lib/general.php file.

but i get this error. I deleted all categories and created a new one but still the same problem.

********************************
Not Found

The page you were looking for appears to have been moved, deleted or does not exist.

This is most likely due to:

* An outdated link on another site
* A typo in the address / URL
************************************************************************

i searched categories.php and products.php page to see if i can work out where the variable is declared. but had no luck.

any help or direction?

Re: how to create custom URL

Posted: Tue Aug 31, 2010 11:48 am
by CharlieFoxtrot
Soory, I'm at a loss. There must be other references to the word "categories" that must also be changed to match any edits that are made to general.php