Page 1 of 2 12 LastLast
Results 1 to 10 of 18
  1. #1
    Join Date
    Nov 2006
    Location
    Indiana
    Posts
    192
    Plugin Contributions
    0

    Default More link on product listing page

    Sorry to bother you with such a basic question...

    Somewhere I think I turned off a switch that would create a link (to the product info page) on the product listing page when the product description was truncated. After the truncation it would say ...more and now it doesn't.


    Am I right or am I remembering wrong? I've been hunting for a while now. Please set me straight!

  2. #2
    Join Date
    Oct 2008
    Posts
    12
    Plugin Contributions
    0

    Default Re: More link on product listing page

    I realize this post is old, but did you ever have any luck figuring this out? I'm in the same boat and can't seem to find any info on solving it.
    thanks

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: More link on product listing page

    You could customize the products_listing module and build a:
    ... more info

    link with the following:
    PHP Code:
              $lc_more '<a href="' zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > and $_GET['filter_id']) > ?  zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > $_GET['cPath'] : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&products_id=' $listing->fields['products_id']) . '">' MORE_INFO_TEXT '</a>'
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #4
    Join Date
    Oct 2008
    Posts
    12
    Plugin Contributions
    0

    Default Re: More link on product listing page

    Worked like a charm. Thanks Ajeh!

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: More link on product listing page

    You are most welcome ... thanks for the update that this worked for you ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #6
    Join Date
    Nov 2006
    Location
    Indiana
    Posts
    192
    Plugin Contributions
    0

    Default Re: More link on product listing page

    Can you tell me where you put that code? Many thanks!

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: More link on product listing page

    That code can go anywhere in the module for the products_listing that you would want to see the ... more info ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  8. #8
    Join Date
    Nov 2006
    Location
    Indiana
    Posts
    192
    Plugin Contributions
    0

    Default Re: More link on product listing page

    I'm sorry Ajeh... I tried hard, but every time I try to add it the products won't display... I'm messing something up. Here's a link to my product listing page: http://www.threesistersfabric.com/fa...3-sisters-108/

    The description is truncated by a "...". I'd like to add the "...more info" link, but I need a little more coaching. Thanks very much.

  9. #9
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: More link on product listing page

    Did you add the new variable:
    $lc_more

    to where the current products_description is being displayed so that the new ... more info link shows?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  10. #10
    Join Date
    Nov 2006
    Location
    Indiana
    Posts
    192
    Plugin Contributions
    0

    Default Re: More link on product listing page

    I think so.... (I've only dabbled with PHP since I started using Zen Cart, so I'm still not clear in my head as to what a variable is exactly. I'm going through a course, but haven't made all the connections mentally, if you know what I mean!)

    I copied the code you gave above and tried to add it to line 137... Does it not belong somewhere within this:
    <div class="listingDescription">' . zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($listi ng->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '</div>' ;
    I appreciate your patience. I really would like to learn this better!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Product listing - move price/more info link
    By RobM in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 24 May 2011, 06:46 PM
  2. all products on product listing to display 'more details...' link
    By Sushigal in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 27 Mar 2011, 11:29 PM
  3. Add more info link to product listing description when description is truncated
    By MaureenT in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 16 Sep 2010, 05:44 PM
  4. Product listing more info link
    By 121webconsultancy in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 27 Jan 2009, 12:26 AM
  5. Display more info link in Product Listing
    By numenor in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 9 Jul 2006, 01:56 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