Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2006
    Posts
    63
    Plugin Contributions
    0

    Default Product Category URL

    Is it possible to (re)define the product category URL to be something more meaningful? I can probably do it using Cpanel redirects but that can sometimes cause problems of the "too many redirects" variety, so I was hoping it might be possible within Zencart. E.g, if I have top level www.mystore.com/shop and I want to easily direct my customers to a product category for face masks. If I'm online I can look it up, but if I'm speaking to someone in person I'm unlikely to remember the convoluted default URL off the top of my head and having something like www.mystore.com/shop/facemasks would be very useful.
    Is this currently possible? If not, can it be added at category level?

  2. #2

    Default Re: Product Category URL

    Currently, I believe with the out of the cart Zencart this is not possible and you will need to install a plugin to handle the URLs. I personally recommend CEON URI mappings:

    https://www.zen-cart.com/downloads.php?do=file&id=2250 (Currently only supports 1.5.6 but looks like people have it working on 1.5.7)

    This will allow you to specify the URLs exactly as you need. You can specify your own or let them auto-generate when you add new products.

    Please note although I have been using Zencart for years now I am not a professional so please take a look into the module and decide if this is for you as it does get quite involved. Even though CEONs add ons have always been super easy for me. Also there are other URL generators so you are welcome to take a look to make an informed decision.

  3. #3
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,154
    Plugin Contributions
    11

    Default Re: Product Category URL

    At the risk of causing a storm of controversy, my recommendation is to send them to your site and have them enter facemasks in the search. If you use Instant Search, they will get there quickly.

    Presenting it to the customer as "We have so many masks. Just head over to OurStore.com and use the search feature. Entering face will get you there quickly" Something like that.

    I've just heard fewer horror stories from this scenario than from trying to "pretty the pig." Template changes, upgrades, mod installations, etc can result in disaster.

    I've yet to be convinced of an advantage, other than perhaps the store owner's feeling better.

  4. #4
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,591
    Plugin Contributions
    30

    Default Re: Product Category URL

    I've yet to be convinced of an advantage, other than perhaps the store owner's feeling better.
    To paraphrase this, having friendly urls makes the shopowner feel better, as the page address is human-readable instead of being some computer-babble like yoursite/index.php?main_page=product_info&cPath=1&products_id=115

    It makes NO different to search results and adds a complex mod to your site with the potential for much head-scratching at some point when it doesn't work.
    I kept Ceon URI Mapping on it's feet for quite some time when php issues arose and there was no support (there is now). I scratched all my hair off.

    I still use it as the links look better when pasted in emails and I think that maybe customers feel its an expected thing on an ecommerce site. However, what I imagine about what customers feel is very shaky ground to add a complex mod.

    So, as with all mods, don't install it unless someone apart from you agrees it's completely essential!
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

  5. #5
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Product Category URL

    Yes you *can* do it in cPanel.

    But if you just want a simple friendly redirect for a single category, a redirect in .htaccess is easy.

    What's complicated is that your store is in a subdirectory, so you will need to adapt the following due to your situation.

    Code:
    RewriteEngine On
    Redirect 301 /facemasks https://mysite.com/shop/index.php?main_page=index&cPath=3_10
    Change the 3_10 to whatever your actual category is.

    Remember, Zen Cart does NOT have/need/provide a .htaccess file in your Zen Cart directory (you said your directory is /shop).
    So, if you need one for this redirect purpose, you can create it for yourself. It's just a text file, and only needs to contain the above lines.
    You might already have one in the directory above your /shop/ directory, in which case you could just edit that one and add these lines to it.
    Your hosting company can help you with redirect rules as they pertain to your hosting account.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. v139h CEON addon Single Product Category URL Forwarding Issue
    By baahir in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 20 Jan 2012, 07:12 PM
  2. Change Product category URL name
    By superprg in forum General Questions
    Replies: 3
    Last Post: 3 Jan 2011, 12:13 PM
  3. 2 page URL in category issue with Simple SEO URL Manager
    By msladybug02 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 19 Nov 2010, 10:33 PM
  4. Category or Product Link to External URL
    By jeskremer in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 14 Jan 2010, 08:11 PM
  5. I want to creat an easy URL for category or product. How to?
    By shocker in forum Customization from the Admin
    Replies: 5
    Last Post: 16 Jan 2008, 03:41 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR