Results 1 to 10 of 11

Hybrid View

  1. #1
    Join Date
    Mar 2006
    Location
    Rosebud, Victoria, Australia
    Posts
    310
    Plugin Contributions
    2

    Default Re: htmlentities: Where do they get translated?

    G'day,

    It seems to me that Zen Cart expects us to enter HTML entities into all of the fields because Zen Cart typically does nothing to such fields on output. So if you enter L&M you get HTML validation errors. If you enter L&M you don't.

    But doing this introduces a user interface problem. When the customer tries to search for L&M and it's been entered as L&M it won't be found.

    So my thinking is that it would be better if we entered everything in the way a user would into search, i.e. L&M, but Zen Cart handles conversion of the appropriate characters to HTML entities on output, i.e. L&M.

    Best regards, Lloyd Borrett.
    Zen Cart 1.5.5e, PHP 5.3.29 MySQL 5.5.42

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    Plugin Contributions
    96

    Default Re: htmlentities: Where do they get translated?

    Quote Originally Posted by lloyd_borrett View Post
    G'day,

    It seems to me that Zen Cart expects us to enter HTML entities into all of the fields because Zen Cart typically does nothing to such fields on output. So if you enter L&M you get HTML validation errors. If you enter L&M you don't.

    But doing this introduces a user interface problem. When the customer tries to search for L&M and it's been entered as L&M it won't be found.

    So my thinking is that it would be better if we entered everything in the way a user would into search, i.e. L&M, but Zen Cart handles conversion of the appropriate characters to HTML entities on output, i.e. L&M.

    Best regards, Lloyd Borrett.
    This, IMO, is a side-effect of not having a defined "standard" (i.e. entities in the descriptions/names or not). Perhaps the "issue" at this point with the search function is that it should search for both L&M and L&M.

  3. #3
    Join Date
    Mar 2006
    Location
    Rosebud, Victoria, Australia
    Posts
    310
    Plugin Contributions
    2

    Default Re: htmlentities: Where do they get translated?

    G'day,

    Of course you're correct lat9. If there is a defined standard then everyone knows what to do, and how output should be handled. Problem will be how to help users migrate their content to the standard.

    Site search on large Zen Cart sites can already be very slow. (There's one I use regularly where a search typically takes more than a minute.) So I wouldn't want search to handle it both ways if it will slow the search even more.

    In my old ZC 1.3.6 installation, if you entered HTML entities, once saved they were there. But if you edited the field, they were lost. Zen Cart would display & not & when retrieving the field, and it stored & when the field was saved. This was extremely frustrating and meant that there was no point in trying to put in HTML entities. We were forced to put up with HTML validation issues, which is not a good look, and causes flow on issues.

    My vote would be for the 'standard' to be raw HTML. Then Zen Cart needs to convert all output to HTML entities. But maybe I'm not fully understanding other impacts of doing it this way.

    Best regards, Lloyd Borrett.
    Zen Cart 1.5.5e, PHP 5.3.29 MySQL 5.5.42

 

 

Similar Threads

  1. v153 Where are they?
    By maperr55 in forum General Questions
    Replies: 3
    Last Post: 24 Nov 2014, 04:10 AM
  2. v150 Currency Default Symbols in Invoices where do they get pulled from ?
    By zan_dude in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 1
    Last Post: 18 Oct 2012, 11:18 AM
  3. fast host says they need the raw template? where do I get it ???
    By arran in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 10 Dec 2009, 04:38 AM
  4. Where did they get these?
    By lizord in forum Customization from the Admin
    Replies: 2
    Last Post: 22 Mar 2009, 04:07 PM
  5. Where Did They Go????
    By Jaygee74 in forum General Questions
    Replies: 8
    Last Post: 22 Nov 2007, 05:24 AM

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