Page 2 of 7 FirstFirst 1234 ... LastLast
Results 11 to 20 of 67
  1. #11
    Join Date
    Apr 2006
    Posts
    34
    Plugin Contributions
    0

    Default Re: Show product description on main-page

    It worked! You have to turn the description on in the Product listing configuration. Cheers
    hand screen printed clothing and accessories
    www.wildgardendesign.com

  2. #12
    Join Date
    Apr 2006
    Posts
    34
    Plugin Contributions
    0

    Default Re: Show product description on main-page

    ok, i'm now trying to add the manufacturer to the featured products listing and have figured out that I need to create the variable for this. It's this at the moment- but it's not working.

    $manufacturers_name = '<a href="' . zen_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $featured_products->fields['manufacturers_id']) . '">' . $featured_products->fields['manufacturers_name'] . '</a>';

    I'm not very good at php so can someone please work out what this needs for it to work. I have put '$manufacturers_name' where it should show in the listing
    hand screen printed clothing and accessories
    www.wildgardendesign.com

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

    Default Re: Show product description on main-page

    Fixing broken code strings from etrader's post #8:

    This is how to add the product description to the featured products box on the home page:

    1. Copy the file: includes/modules/featured_products.php

    2. Place it in an overrides folder like this:

    includes/modules/your_template/featured_products.php

    3. Add the code for the 'product description' and 'more info link' variables:
    PHP Code:
    $products_description zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($featured_products->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION);

    $info_link '<a href="' zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'products_id=' $featured_products->fields['products_id']) . '"> more info...</a>'
    4. Replace the $list_box_contents variable with this code:
    PHP Code:
    $list_box_contents[$row][$col] = array('params' =>'class="centerBoxContentsFeatured centeredContent back"' ' ' 'style="width:' $col_width '%;"',
    'text' => '<a href="' zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'products_id=' $featured_products->fields['products_id']) . '">' zen_image(DIR_WS_IMAGES $featured_products->fields['products_image'], $featured_products->fields['products_name'], IMAGE_FEATURED_PRODUCTS_LISTING_WIDTHIMAGE_FEATURED_PRODUCTS_LISTING_HEIGHT) . '</a><br /><a href="' zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'products_id=' $featured_products->fields['products_id']) . '">' $featured_products->fields['products_name'] . '</a><br />' $products_price '<br />' $products_description $info_link); 
    5. Upload the file to your overrides folder.

    Note: You can add the product description to the specials box by editing the specials_index.php file. Just replace all instances of $featured_products with $specials_index

  4. #14

    Default Re: Show product description on main-page

    thank u . i copy / plaste the code modules\classic\featured_products.php , then in my test home page display the more info ... but the featured products description do not display ...

  5. #15
    Join Date
    Nov 2007
    Location
    UK
    Posts
    102
    Plugin Contributions
    0

    Default Re: Show product description on main-page

    This update worked perfectly thanks, any idea though how to get the image to move to the left and the text to the right, instead of the way it show here

    www.weddingandgems.co.uk

    Thanks

  6. #16
    Join Date
    Jul 2008
    Posts
    7
    Plugin Contributions
    0

    Default Re: Show product description on main-page

    I got the image to move left by using a table. Here's my code.
    Code:
     $list_box_contents[$row][$col] = array('params' =>'class="centerBoxContentsFeatured centeredContent back"' . ' ' . 'style="width:' . $col_width . '%;"', 'text' => '<table border="0" width="100%" cellspacing="2" cellpadding="2"><tr><td><a href="' . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'products_id=' . $featured_products->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $featured_products->fields['products_image'], $featured_products->fields['products_name'], IMAGE_FEATURED_PRODUCTS_LISTING_WIDTH, IMAGE_FEATURED_PRODUCTS_LISTING_HEIGHT) . '</a></td><td><br /><a href="' . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'products_id=' . $featured_products->fields['products_id']) . '">' . $featured_products->fields['products_name'] . '</a><br />' . $products_price . '<br />' . $products_description . $info_link . '</td></tr></table>');

    However, I cannot get the description to show. I checked the configuration setting, and it is on. but no show. What did you do? what version are you running?

    K

  7. #17

    Default Re: Show product description on main-page

    Hi, I needed this as well, but did not get the description to show in the current zen cart 1.3.8a. Nor does the link work, although the title link worked before and still works.

    Appreciate the code posted here for that and image left, any help with why this might not work in the current version???
    Thank you,
    Julie

  8. #18
    Join Date
    Jul 2008
    Posts
    7
    Plugin Contributions
    0

    Default Re: Show product description on main-page

    Julie, follow the thread at:

    http://www.zen-cart.com/forum/showthread.php?t=103349
    It is more salient at the moment.

    Kris

  9. #19
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Show product description on main-page

    Quote Originally Posted by gjh42 View Post
    Fixing broken code strings from etrader's post #8:

    This is how to add the product description to the featured products box on the home page:

    1. Copy the file: includes/modules/featured_products.php

    2. Place it in an overrides folder like this:

    includes/modules/your_template/featured_products.php

    3. Add the code for the 'product description' and 'more info link' variables:
    PHP Code:
    $products_description zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($featured_products->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION);
     
    $info_link '<a href="' zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'products_id=' $featured_products->fields['products_id']) . '"> more info...</a>'
    4. Replace the $list_box_contents variable with this code:
    PHP Code:
    $list_box_contents[$row][$col] = array('params' =>'class="centerBoxContentsFeatured centeredContent back"' ' ' 'style="width:' $col_width '%;"',
    'text' => '<a href="' zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'products_id=' $featured_products->fields['products_id']) . '">' zen_image(DIR_WS_IMAGES $featured_products->fields['products_image'], $featured_products->fields['products_name'], IMAGE_FEATURED_PRODUCTS_LISTING_WIDTHIMAGE_FEATURED_PRODUCTS_LISTING_HEIGHT) . '</a><br /><a href="' zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'products_id=' $featured_products->fields['products_id']) . '">' $featured_products->fields['products_name'] . '</a><br />' $products_price '<br />' $products_description $info_link); 
    5. Upload the file to your overrides folder.

    Note: You can add the product description to the specials box by editing the specials_index.php file. Just replace all instances of $featured_products with $specials_index
    Could you explain please, where exactly in
    includes/modules/your_template/featured_products.php
    these additions go? TIA

  10. #20
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Show product description on main-page

    Ignore my last post...sorted..
    i.e.
    Code:
     
      $products_price = zen_get_products_display_price($featured_products->fields['products_id']);
        $products_description = zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($featured_products->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION);
        if (!isset($productsInCategory[$featured_products->fields['products_id']])) $productsInCategory[$featured_products->fields['products_id']] = zen_get_generated_category_path_rev($featured_products->fields['master_categories_id']);
    $list_box_contents[$row][$col] = array('params' =>'class="centerBoxContentsFeatured centeredContent back"' . ' ' . 'style="width:' . $col_width . '%;"',
    'text' => '<a href="' . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'products_id=' . $featured_products->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $featured_products->fields['products_image'], $featured_products->fields['products_name'], IMAGE_FEATURED_PRODUCTS_LISTING_WIDTH, IMAGE_FEATURED_PRODUCTS_LISTING_HEIGHT) . '</a><br /><a href="' . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'products_id=' . $featured_products->fields['products_id']) . '">' . $featured_products->fields['products_name'] . '</a><br />' . $products_price . '<br />' . $products_description . $info_link);

 

 
Page 2 of 7 FirstFirst 1234 ... LastLast

Similar Threads

  1. v155 Product description on main page
    By vvomble in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 2 Jun 2016, 03:40 PM
  2. how do you omit description of product on main product page?
    By rubis in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 29 Mar 2009, 04:25 PM
  3. Changing description on my main product page
    By 9800xl in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 28 Aug 2007, 05:03 PM
  4. Product Description Issues on main page
    By magneteye in forum General Questions
    Replies: 8
    Last Post: 20 Jul 2007, 10:04 AM
  5. Getting subcategory description to show up on the Product page
    By lyricwings in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 11 Apr 2007, 11:11 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