Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1
    Join Date
    Mar 2008
    Posts
    57
    Plugin Contributions
    0

    Default HTML is product description OF product listing.. other questions!

    So a while ago I pretty much gave up on the zen cart format because I found I couldn't make things look as I wanted. I'm trying again for the hell of it.

    What I'd like is for my line breaks and font colors from my product description to show up in the Product Listing. I know generally people just list a short sentence with an ellipsis sign, but I don't really want to have product info pages as it is. I just the listing with the "buy now" button. (That's another story)
    http://justaaudial.net/store/index.p...=index&cPath=1

    Here is the page I now use with the "buy now" buttons being linked to my zen cart. I pretty much want to match this page format wise http://justaaudial.net/releases.html

    Also, I'd like to limit the Lisiting Description to a specific width, but everything I try in CSS does me no good. Any ideas?

    Lastly, my product info page... I can't get seem to get the image to show up with a border... I tried #productMainImage.img{border:1px, color:#000000;}
    .productMainImage{border:1px, color:#000000;}

    etc, etc, but nothing works. I got it working on the product listing page a few months ago but still never figured it out

    I'm running Zen Cart 1.3.8a I suppose.

    If anyone can send me some ideas that'd be great, I'd love to fully intergrate zen-cart into my site.

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: HTML is product description OF product listing.. other questions!

    #productMainImage.img{border:1px, color:#000000;}

    This would be an element which has an id tag of #productMainImage and a class tag of .img .

    What you want is

    #productMainImage img {border:1px; color:#000000;}

    which is an image inside #productMainImage.
    Also, you need a semicolon, not a comma, after 1px.

    CSS is very particular about tiny details.

    You can get HTML to work in the product listing with a simple edit to
    /includes/modules/your_template/product_listing.php. Search the forum for "zen_clean_html" for threads with the details.

  3. #3
    Join Date
    Mar 2008
    Posts
    57
    Plugin Contributions
    0

    Default Re: HTML is product description OF product listing.. other questions!

    Tried both things and couldn't get either to work, the php edit just gave me blank pages

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: HTML is product description OF product listing.. other questions!

    Stylesheet:

    You need to pay close attention to your css edits....

    Find this, which is a class - -But you have omitted the leading period
    Code:
    listingDescription {width:293px; }
    And to get closer to what you seek change it to the following:
    Code:
    .listingDescription {
            width:293px; 
            margin: 1em 0em 0em 20em;
            }
    For Your border find this tag and replace with the following:
    Code:
    #productMainImage img {
            border: 1px solid #000000;
            }
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: HTML is product description OF product listing.. other questions!

    border:1px, color:#000000;
    border:1px; color:#000000;
    border: 1px solid #000000;

    Oops... sometimes a small error can distract attention from a bigger one :)

  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: HTML is product description OF product listing.. other questions!

    Quote Originally Posted by gjh42
    Oops... sometimes a small error can distract attention from a bigger one :)
    That is why we are a community!! And you have assisted myself on other posts where I seemed to have blinders on!
    Zen-Venom Get Bitten

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

    Default Re: HTML is product description OF product listing.. other questions!

    Quote Originally Posted by xfourninetwox View Post
    ...the php edit just gave me blank pages
    If you use a Plain Text Editor (Crimson Editor, Notepad++) then you should not end up with dud PHP.
    20 years a Zencart User

  8. #8
    Join Date
    Mar 2008
    Posts
    57
    Plugin Contributions
    0

    Default Re: HTML is product description OF product listing.. other questions!

    Quote Originally Posted by kobra View Post
    Stylesheet:

    You need to pay close attention to your css edits....

    Find this, which is a class - -But you have omitted the leading period
    Code:
    listingDescription {width:293px; }
    And to get closer to what you seek change it to the following:
    Code:
    .listingDescription {
            width:293px; 
            margin: 1em 0em 0em 20em;
            }
    For Your border find this tag and replace with the following:
    Code:
    #productMainImage img {
            border: 1px solid #000000;
            }


    Thank you this was a big help, now I just need a solution to the HTML in the product description. I'm not sure what using Notepad would do to prevent dud php?

  9. #9
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: HTML is product description OF product listing.. other questions!

    Thank you this was a big help, now I just need a solution to the HTML in the product description. I'm not sure what using Notepad would do to prevent dud php?
    I am not sure if the above is meant as a single response??
    If it is please note that the product description function can only contain html coding - - NOT php code
    Zen-Venom Get Bitten

  10. #10
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: HTML is product description OF product listing.. other questions!

    HTML in the product description

    Answered in post #2 above.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. HTML not working in product listing description
    By nealt900 in forum Templates, Stylesheets, Page Layout
    Replies: 16
    Last Post: 17 Nov 2012, 08:19 PM
  2. v139h Have Category description and product listing next to each other
    By bravo14 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 28 Mar 2012, 03:55 PM
  3. Replies: 2
    Last Post: 12 Aug 2008, 03:38 PM
  4. Product description in product more info in html format but not in product listing?
    By this side up in forum Customization from the Admin
    Replies: 1
    Last Post: 18 Dec 2006, 06:25 PM
  5. html links in product description (on listing page)
    By Lovere in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 15 Jun 2006, 05:32 PM

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