Results 1 to 7 of 7
  1. #1
    Join Date
    Oct 2006
    Posts
    17
    Plugin Contributions
    0

    Default Ampersand in Product Name

    Currently if I have a product with a name like "Carrot & Citrus Soap" I have to remember to use &amp; instead of the &. I think that Zencart should use the htmlspecialchars() PHP function to automatically encode and decode this, as well as < > and other such characters in product names. I saw some previous threads on this, but didn't see any real solution. Any thoughts?

  2. #2
    Join Date
    Oct 2006
    Posts
    17
    Plugin Contributions
    0

    Default Re: Ampersand in Product Name

    Also, simply changing it to &amp; is not a good solution, because when I edit the product again, it has been changed back to &.

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Ampersand in Product Name

    If I was searching for Lucy & Ricky ... I would search for:
    Lucy & Ricky
    Lucy and Ricky

    But it would never occure to me to search for Lucy &amp; Ricky ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #4
    Join Date
    Oct 2006
    Posts
    17
    Plugin Contributions
    0

    Default Re: Ampersand in Product Name

    I agree with you, but having an unencoded & breaks XML / HTML validation, and puts your customer's browser in "quirks mode", which means that you are no longer controlling how the page displays for them. What should happen, is that it should be stored as & in the database, but displayed as &amp; in the HTML page. Then searching would work, and displaying would work.

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Ampersand in Product Name

    I don't know the best solution for you ... have to talk to the designer folks ...

    But I often ponder the question ... do customers really care if your site validates vs finding the latest DVDs on Lucy & Ricky ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #6
    Join Date
    Oct 2006
    Posts
    17
    Plugin Contributions
    0

    Default Re: Ampersand in Product Name

    Of course they don't. But if your site does not validate, it's not guaranteed to work in their browser, or to look how you have worked so hard to make it look. So then maybe you should just put up an order form for them to fax -- after all, that's guaranteed to work, right?

  7. #7
    Join Date
    Aug 2006
    Location
    ulaanbaatar
    Posts
    94
    Plugin Contributions
    0

    Default Ampersand in Product Name

    I'm trying to display the (C) and (TM) (trade mark) configuring my products in Admin. How can I do it. How and where can I do this. I guess it would need some little php code.

    How to make that my site thumbnail or icon would be shown at navigation bar and tabs bar (in Firefox).

    Thank you much

 

 

Similar Threads

  1. Duplicate Item Name / Product name repeat Order Confirmation Email
    By jsarwar in forum Managing Customers and Orders
    Replies: 3
    Last Post: 21 Nov 2014, 02:57 PM
  2. Replies: 0
    Last Post: 10 Oct 2011, 12:39 AM
  3. Show store name before product name in title tag
    By askjv in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 26 Mar 2010, 06:39 PM
  4. non w3c validation caused by ampersand problem
    By HelpmePLZ in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 3 May 2009, 08:37 PM
  5. [Done v1.3.9] Linkpoint Module and the Ampersand
    By samad64 in forum Bug Reports
    Replies: 5
    Last Post: 11 Dec 2007, 07:59 PM

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