Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    May 2009
    Posts
    9
    Plugin Contributions
    0

    Default Help with Random Code appearing in Product List

    Hi guys, I am almost done with my site, and started uploading my product images, but somehow this random code appeared under my Product Names, and I am not sure where to locate it, or how to get rid of it.

    Can anyone help me please?

    I am using 1.3.8a, and my website URL is www.oozleideas.com

    [SCR]http://i605.photobucket.com/albums/tt132/oozleideas/Capture.jpg[/SCR]
    Last edited by Kim; 29 May 2009 at 05:33 AM.

  2. #2
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Help with Random Code appearing in Product List

    Doesn't look like radom code but incorrect coding manually put in.

    <div class="listingDescription">&lt;!-- /* Font Definitions */

    Using the ASCII symbol for < will display as < and thus, code that follows will be displayed as well.

    Correct way to use HTML quotes...
    <!-- content not to be shown -->

  3. #3
    Join Date
    May 2009
    Posts
    9
    Plugin Contributions
    0

    Default Re: Help with Random Code appearing in Product List

    Thanks for the explanation Rob.

    Mind if I ask too, which file should I be looking to amend in order to correct this issue?

  4. #4
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Help with Random Code appearing in Product List

    No idea what file to look in but suggest you use Admin > Tools > Developers Tool Kit
    and search 'Font Definitions' (last input box on the left: Look-up in all files)

    If not already familiar with using the Developers Tool Kit then now is a good time. It is definitely a handy tool and one to become familiar with.

  5. #5
    Join Date
    May 2009
    Posts
    9
    Plugin Contributions
    0

    Default Re: Help with Random Code appearing in Product List

    Ah ok! Will do so right away.

    Thanks for the reminder.

  6. #6
    Join Date
    May 2009
    Posts
    9
    Plugin Contributions
    0

    Default Re: Help with Random Code appearing in Product List

    Followed Rob's advice, but still not able to find the correct file which contains this error.

    All I can narrow down is that it is linked to the Product Listing's Product Name field.

    When I turned off Display Product Name under Admin > Product Listing, the line of coding disappears along with the product title.

    Is there someone else able to help me on this issue?

    Thanks in advance!

  7. #7
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: Help with Random Code appearing in Product List

    I'm going to guess that you pasted your product names and/or description from Microsoft Word. Not a good idea. Word adds a lot of styling stuff that can mess with your code. Try re-entering your descriptions from the product entry page, or copy and paste from a different HTML editor.

  8. #8
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: Help with Random Code appearing in Product List

    What program are you using to create your product descriptions?

    I'll bet you're doing this...

    You're writing your product descriptions in MS Word, then saving these as HTML.

    Then, you're toggling to the source (or perhaps not), and using COPY and PASTE to put these descriptions into HTMLArea (or FCK Editor as the case may be) on your product editing pane.

    Trouble with using MS products - even MS Word - to create descriptions - is that it formats the stuff in that excruciatingly annoying microsoft way.

    If you want to create your product descriptions in a HTML WYSIWYG editor, do it with a reputable piece of software - and that excludes anything put out by MS for this purpose.

    When you have the raw html, you need to TOGGLE to html mode in HTMLArea (the <> icon) and paste the raw code there.
    20 years a Zencart User

  9. #9
    Join Date
    May 2009
    Posts
    9
    Plugin Contributions
    0

    Default Re: Help with Random Code appearing in Product List

    Stevesh and schoolboy,

    You guys hit the nail on the spot. Indeed I am using MS Word to create my descriptions before Copy Pasting into HTMLArea.

    I didn't know that MS products will cause such problems, and I'll be sure to re-try again using other HTML editors (I'm guessing FCK Editor is recommended?)

    Will be updating with whether I manage to solve the issue.

    Thanks alot guys!

  10. #10
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: Help with Random Code appearing in Product List

    Using an external WYSIWYG editor is a GOOD way of getting the underlying HTML of things (like product descriptions, defined pages content, ezpages) sorted out...

    ... but bear in mind how you FORMAT this HTML, and, when you've created it, what you need to AVOID when you use CTRL+C / CTRL+V.

    I do many of my descriptive text stuff in Dreamweaver, having set up a range of style ID's and Classes within DW. For example, I have a style ID called "productMainParagraph", another called "productSubParagraph".

    (I make sure that the style names do not conflict with any used in standard ZC, then, I append the declarations for these styles into my stylesheet.css)

    So, as I work in DW, I apply the styles to the content, so (for example), a product description's HTML could look like this:

    HTML Code:
    <div id="productMainParagraph">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.<div>
    <br /><br />
    <div id="productSubParagraph">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.<div>
    Then in stylesheet.css I have:

    PHP Code:
    #productMainParagraph {
    color:#000000;
    font-family:verdana,arial,helvetica,sans-serif;
    font-size:105%;
     }

    #productSubParagraph {
    color:#F3F3F3;
    font-family:verdana,arial,helvetica,sans-serif;
    font-size:85%;
     } 
    Then, when it comes to copying the HTML source code, I make sure to copy stuff (off DW) that exists only between the <body> and </body> tags... or more usually, only the <div> components I am working with.

    You must NOT paste any <head> </head> stuff... the page will already inherit the ZC header stuff.

    In this way, I make sure that my styles are not embedded in the description's html, but are rather sourced from the stylesheet.
    20 years a Zencart User

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v154 Quick help with MySQL Query - Selecting OLD Product at Random
    By Jeff_Mash in forum Setting Up Specials and SaleMaker
    Replies: 21
    Last Post: 24 Nov 2015, 12:05 AM
  2. v151 Automatic Random Code Generation for a product?
    By Rick5150 in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 5
    Last Post: 10 Jun 2013, 09:40 PM
  3. Product List no longer appearing
    By byoriginaldesign in forum General Questions
    Replies: 1
    Last Post: 25 Oct 2010, 10:58 AM
  4. Help with Product availability by Zip Code or Postal Code
    By enigma777 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 4 Jun 2008, 10:07 PM
  5. Random product list
    By alicia in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 5 Jun 2006, 09:09 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