Page 3 of 6 FirstFirst 12345 ... LastLast
Results 21 to 30 of 51
  1. #21
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Customizing Product Description Text Formatting on Category Page

    Changing

    .productDescNoList, .productDesc1, .productDesc2 { display: none; }

    to

    .productDescNoList, .productDesc1, .productDesc2 { display: block; }

    negates the purpose of this declaration, and does make

    #productListing .productDescNoList {
    display: none;
    }

    required. Actually, since in your case .productDescNoList in the listing page is the only item that wants to be turned off, the code can be simplified by just eliminating

    .productDescNoList, .productDesc1, .productDesc2 { display: block; }

    as it serves no purpose.


    And yes, table design is very much deprecated these days. They are still appropriate for displaying tabular data, but for page layout, divs and CSS are more flexible and powerful and assist in making comprehensible code that can be displayed equally well in many different circumstances.
    Last edited by gjh42; 25 Sep 2007 at 08:59 AM.

  2. #22
    Join Date
    Aug 2007
    Location
    Turku, Finland
    Posts
    51
    Plugin Contributions
    0

    Default Re: Customizing Product Description Text Formatting on Category Page

    That's what I'd been hearing more and more.
    My trade is originally photography and image manipulation/retouching.
    However, as the market changes so must I and I've found increasing demand for web site design and building.
    So, it seems that I must tackle the CSS and divs minefield if I'm to survive!
    Cheers.
    Andy

  3. #23
    Join Date
    Sep 2007
    Posts
    56
    Plugin Contributions
    0

    Default Re: Customizing Product Description Text Formatting on Category Page

    Re: Customizing Product Description

    Is this new in development mod,
    if I understand it, able to, add a long product description,
    10 or 15 lines, on Add to Cart page, below add to cart box,
    and product(s) in cart display.
    ---------
    Does it have the ability to, work with TinyMCE, (edit) html .
    ---------
    I have seen this in some sites using tables,
    I would prefer css, with this product description
    ---------
    Also thank you again for Category Dressing Mod,
    it worked with no issues.

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

    Default Re: Customizing Product Description Text Formatting on Category Page

    The multiple description code by itself only deals with getting different descriptions in product listing and product info pages, and different pieces of description in different places in the info page. Any styling for the listing page is a separate issue. If I understand your desire, you may want to check out a commented-out section of code in (I think) product_listing.php which gives the full-width description below the rest, like the all listing.

    I don't use HTML editors, so can't say anything about this question. Experiment on something unimportant and see.

    You can do as much CSS styling of the descriptions as you want, and you can use tables where appropriate.

    THis mod deals with individual product descriptions, not a group item placed outside the normal listing.

  5. #25
    Join Date
    Oct 2007
    Posts
    134
    Plugin Contributions
    0

    Default Re: Customizing Product Description Text Formatting on Category Page

    hi Glenn

    ive read through this post and am a bit lost. hope u can help me. i just wanna b abe to use html inthe product description field. thats all.

    canu help me? i hope so.

    cheers

    simon

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

    Default Re: Customizing Product Description Text Formatting on Category Page

    In /includes/modules/product_listing.php, find this section
    PHP Code:
            case 'PRODUCT_LIST_NAME':
            
    $lc_align '';
            if (isset(
    $_GET['manufacturers_id'])) {
              
    $lc_text '<h3 class="itemTitle"><a href="' zen_href_link(zen_get_info_page($listing->fields['products_id']), 'products_id=' $listing->fields['products_id']) . '">' $listing->fields['products_name'] . '</a></h3><div class="listingDescription">' zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($listing->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '</div>' ;
            } else {
              
    $lc_text '<h3 class="itemTitle"><a href="' zen_href_link(zen_get_info_page($listing->fields['products_id']), ($_GET['cPath'] > 'cPath=' $_GET['cPath'] . '&' '') . 'products_id=' $listing->fields['products_id']) . '">' $listing->fields['products_name'] . '</a></h3><div class="listingDescription">' zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($listing->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '</div>';
            }
            break; 
    and comment out the
    zen_clean_html
    like this
    /*zen_clean_html*/
    in two places to get
    PHP Code:
            case 'PRODUCT_LIST_NAME':
            
    $lc_align '';
            if (isset(
    $_GET['manufacturers_id'])) {
              
    $lc_text '<h3 class="itemTitle"><a href="' zen_href_link(zen_get_info_page($listing->fields['products_id']), 'products_id=' $listing->fields['products_id']) . '">' $listing->fields['products_name'] . '</a></h3><div class="listingDescription">' zen_trunc_string(/*zen_clean_html*/(stripslashes(zen_get_products_description($listing->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '</div>' ;
            } else {
              
    $lc_text '<h3 class="itemTitle"><a href="' zen_href_link(zen_get_info_page($listing->fields['products_id']), ($_GET['cPath'] > 'cPath=' $_GET['cPath'] . '&' '') . 'products_id=' $listing->fields['products_id']) . '">' $listing->fields['products_name'] . '</a></h3><div class="listingDescription">' zen_trunc_string(/*zen_clean_html*/(stripslashes(zen_get_products_description($listing->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '</div>';
            }
            break; 
    Save as /includes/modules/your_template/product_listing.php.

  7. #27
    Join Date
    Oct 2007
    Posts
    2
    Plugin Contributions
    0

    Default Re: Customizing Product Description Text Formatting on Category Page

    Hi,

    Your explanation sounds perfect for the CSS approach.

    I am working on search engine optimization for a merchant that already has Zen cart installed. I am worried about hiding text, though using a perfectly clean CSS solution. Google in its answer to this question targets as well CSS technics.

    As my client has already lost many visitors after adopting zen cart, I don't feel so confident with display none.

    I am a Miva and perl developer not so skill in PHP. Buth I would think to modify the PHP template to get the same result: taking or not taking piece A or piece B or Piece A+B from the product description, to feed the listing and the product info page distinctly.

    Would this be possible?

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

    Default Re: Customizing Product Description Text Formatting on Category Page

    Yes, it would be possible without additional database fields.

    The cutting product descriptions manually (for listings) thread describes a way to select a breakpoint in the description text. This could be duplicated as many times as needed with *more1*, *more2*, etc, and the text before and after the desired segment stripped off using the PHP strstr(), strpos() and/or str_replace() functions at each display location.

    You say "Google in its answer to this question targets as well CSS technics." Where did you hear this? And what techniques are targeted?

  9. #29
    Join Date
    Apr 2010
    Posts
    52
    Plugin Contributions
    0

    Default customs Products Description




    how do i add products info like that just like the it is n image

    demo:http://www.alamodeonline.com/productinfo_OT704.html

  10. #30
    Join Date
    Apr 2010
    Posts
    52
    Plugin Contributions
    0

    Default Re: customs Products Description

    anyone knows how to do that at all

 

 
Page 3 of 6 FirstFirst 12345 ... LastLast

Similar Threads

  1. Description with formatting on Category Listing page
    By vandiermen in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 27 Oct 2010, 11:03 AM
  2. Formatting text in category description
    By chuckr in forum Customization from the Admin
    Replies: 1
    Last Post: 2 Aug 2010, 07:35 PM
  3. Formatting text in product description
    By TonyB6 in forum Customization from the Admin
    Replies: 5
    Last Post: 3 May 2010, 03:01 AM
  4. Formatting category description issue
    By godt in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 5 Feb 2009, 04:40 AM
  5. Customizing Product Category Page
    By Ahroo in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 14 Jun 2007, 05:38 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