Results 1 to 9 of 9
  1. #1
    Join Date
    Aug 2006
    Posts
    197
    Plugin Contributions
    1

    Default Display Custom Product Description

    I am aware that you can turn the display product description to 0 in Admin:Configuration to remove the product description under product titles whhen browsing by categories.

    Example:
    http://shop.thebricktongroup.com/ind...=index&cPath=3

    I would like to put something there however. I don't want to use my long description because some items have dropdown menus at the begining for model/color selection at the beginning of product description pages. Is there anyway to insert a separate description i.e. a "short" description for each product that only shows when browsing by category? Any advice is much appreciated!

    Thanks.

  2. #2
    Join Date
    Nov 2006
    Posts
    6
    Plugin Contributions
    0

    Default Re: Display Custom Product Description

    Hi, I'm new on Zencart, would you please let me know how did you add a link on your product list so it displays product description in another page?

  3. #3
    Join Date
    Aug 2006
    Posts
    197
    Plugin Contributions
    1

    Default Re: Display Custom Product Description

    Anyone? ::Bump::

  4. #4
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: Display Custom Product Description

    More details?
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  5. #5
    Join Date
    Aug 2006
    Posts
    197
    Plugin Contributions
    1

    Default Re: Display Custom Product Description

    Basically when someone is looking at all of the products in a category
    or subcategory, we want a small custom description to appear next to
    each product (a different description than may be found once the
    person clicks on a specific product...)

    I know I can turn descriptions completely off, but I was hoping to display something other than the first so many characters of the product info.

    any ideas are greatly appreciated

  6. #6
    Join Date
    Feb 2009
    Posts
    4
    Plugin Contributions
    0

    Default Re: Display Custom Product Description

    hi can u guide me how to uninstall product listing column_layout_grid_v_1_3_8 module.

    www.sizzlingshop.com
    hetalsagar

  7. #7
    Join Date
    Oct 2010
    Posts
    46
    Plugin Contributions
    0

    Default Re: Display Custom Product Description

    Has anyone found a way to do this since 09? I want to do the same. On my site I wanted thje user to be able to see size and colour variants on the product listing but didnt want them to be as a drop down attribute fields. Therefore i enabled HTML within the product description and put swatches of the colour and the sizes in the top of the description.

    The thing is that now i'm getting more and more products i can't fit many per page as theres loads of text. In an ideal world i would just show the swatches at the top and the size text. I know i can limit the amount of text which shows on the product listing, but there will be a different amount for each product, and it ruins the grid layout i've got installed if i amend the listing length.

    If i could have two different descriptions it would solve my problem!

    Example page is http://www.jambaroo.co.uk/babies/accessories

    Thanks!

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

    Default Re: Display Custom Product Description

    Have you looked at this ?

    http://www.zen-cart.com/index.php?ma...roducts_id=271

    I have used it, but not with 1.3.9.

  9. #9
    Join Date
    Dec 2010
    Posts
    20
    Plugin Contributions
    0

    Default Re: Display Custom Product Description

    In case anyone wants to do this, I've come up with some simple custom code to allow the display of a short descriptions.

    Basically, enter your description as normal with a <br /> where you want to short description to end.

    So for example, enter your full description as:

    "Tasty Strawberry Jam<br />This is the best Strawberry jam you will have ever tasted."

    The code below will look for the <br /> tag and only display "Tasty Strawberry Jam" as the description on the product listing page. If you don't put in a <br /> tag then the description will display as normal.

    You need to edit your overridden product_listing.php file (found in includes\modules\YOURTEMPLATE) , and find the line:

    Code:
    $lc_text = '<h3 class="itemTitle"><a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > 0 and $_GET['filter_id'] > 0) ?  zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > 0 ? zen_get_generated_category_path_rev($_GET['cPath']) : zen_get_generated_category_path_rev($listing->fields['master_categories_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>';

    And replace it with this code:

    Code:
            $shortDesc = zen_get_products_description($listing->fields['products_id'], $_SESSION['languages_id']);
            // Now find the first occurance of <br /> - We actually look for <br in case we have forgotten the space
            $brPos = stripos($shortDesc, '<br');
            // If no <br /> tag then just show whole description as normal.
            if ($brPos != 0)
            {
                 $shortDesc = substr($shortDesc, 0, $brPos );
            }
            $lc_text = '<h3 class="itemTitle"><a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > 0 and $_GET['filter_id'] > 0) ?  zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > 0 ? zen_get_generated_category_path_rev($_GET['cPath']) : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&products_id=' . $listing->fields['products_id']) . '">' . $listing->fields['products_name'] . '</a></h3><div class="listingDescription">' . zen_trunc_string(zen_clean_html(stripslashes($shortDesc)), PRODUCT_LIST_DESCRIPTION) . '</div>';
    You can of course change this to look for a different tag instead or even to not show the short description on the product detail page.

    Hope this helps someone else.

    Bob.

 

 

Similar Threads

  1. v151 Custom Email Form in Product Description
    By sle39lvr in forum General Questions
    Replies: 3
    Last Post: 13 Apr 2015, 04:43 AM
  2. v153 Product Listing Description formated different than Product Display
    By giftsaloft in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 16 Sep 2014, 06:24 PM
  3. Custom Product Description Layout
    By WendyT in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 10 Jul 2010, 01:33 PM
  4. Custom preview description for product listing page
    By arunkarthik in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 18 May 2010, 08:06 PM
  5. Custom Form - Product Description
    By maizah in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 9 Dec 2008, 04:27 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