Page 1 of 4 123 ... LastLast
Results 1 to 10 of 34
  1. #1
    Join Date
    Jun 2010
    Posts
    10
    Plugin Contributions
    0

    Default Adding Product Rating on Product Listing Page

    Hi,

    I've managed to add product average rating to my product info pages, but what I would also like to do is add this average rating to the product listing table, just so it displays under the title (I don't show the description only the title)...

    Here is a link to a page with a test review - http://www.jasonsimmonds.co.uk/store...roducts_id=183

    I've tried looking through the templates/modules but some minor changes I've made have simply stop the product listings from loading...

    I'm sure some of you have edited the product listing layout so fingers crossed we can come up with a solution...

    Many thanks

    Mark

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

    Default Re: Adding Product Rating on Product Listing Page

    Quote Originally Posted by mark1984 View Post
    (I don't show the description only the title)...
    I'm thnking the easiest way would be to show the description and use that for the reviews.

    You can use HTML in the product listing by editing one file (search the forums for zen_clean_html).

    If you don't want the rest of the description to show in the product listing, you can wrap it and/or the reviews part in a <div> with its own class name and turn it off in the stylesheet.

  3. #3
    Join Date
    Jun 2010
    Posts
    10
    Plugin Contributions
    0

    Default Re: Adding Product Rating on Product Listing Page

    Thanks for the reply, however I've tried searching for zen_clean_html but everyone I try seems to mention searching for zen_clean_html and doesn't actually tell me what I'm looking for...

    Could you perhaps provide me with an example, such as where would I put the html as I don't want it to show in the main product info, and I only want it to display in the product listing if there is a review, if there isn't then it doesn't show.

    Cheers

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

    Default Re: Adding Product Rating on Product Listing Page

    First thing you need to do is open includes/modules/product_listing.php and find the three places that zen_clean_html occurs and comment them out: /*zen_clean_html*/.

    I made an assumption that you would be adding the reviews to the product description manually. If you wanted to have them automatically added, you're beyond my programming pay grade, but it would require some coding.

  5. #5
    Join Date
    Jun 2010
    Posts
    10
    Plugin Contributions
    0

    Default Re: Adding Product Rating on Product Listing Page

    Thanks again for your reply.

    Well I already have the coding for the average rating from here - http://www.zen-cart.com/index.php?ma...roducts_id=595 - this is what i have installed on my product info pages...

    But I just wanted to know how to insert the same code into the product_listing display, so it shows the average rating just under the title (basically in place of the description). So it would use the same php as the Average Product Rating add-on.

    Does that make more sense? and make it any easier to accomplish?

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

    Default Re: Adding Product Rating on Product Listing Page

    I assume you could adapt the code from that mod to add it to the product listing, but it's probably beyond my code wrangling ability.

    It's one of those things I might try if I needed it for one of my sites, but ...

    Someone else might have another suggestion.

  7. #7
    Join Date
    Jun 2010
    Posts
    10
    Plugin Contributions
    0

    Default Re: Adding Product Rating on Product Listing Page

    I'm willing to play around and see if I can get it to work, but just need a pointer as to which file and the area of code that I need to modify/add to... I tried adding some php but it stop the page loading so had to take it out...

    Thanks for your help

  8. #8
    Join Date
    Mar 2010
    Posts
    17
    Plugin Contributions
    0

    Default Re: Adding Product Rating on Product Listing Page

    im looking for info on how to do this also.. can anyone help or did u ever figure out how?

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

    Default Re: Adding Product Rating on Product Listing Page

    You could piece a copy of the code that manages this on the product _info page into the module file:
    product_listing.php

    For the Product ID ... use the:
    (int)$listing->fields['products_id']
    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: v1.5.5]
    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
    Feb 2010
    Location
    Syracuse, NY
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Adding Product Rating on Product Listing Page

    Quote Originally Posted by Ajeh View Post
    You could piece a copy of the code that manages this on the product _info page into the module file:
    product_listing.php

    For the Product ID ... use the:
    (int)$listing->fields['products_id']
    Any way you can possibly help with this, I am stuck as to what information I should pull from the product_info and where to use the (int) code within the code pulled.

    Many thanks as always!

 

 
Page 1 of 4 123 ... LastLast

Similar Threads

  1. v150 How to add product rating (stars) to a product on main page
    By Dave1st in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 12 Jul 2015, 03:04 PM
  2. v139a Adding Product Rating on Featured Listing Page
    By gal_op in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 6 Oct 2012, 06:17 AM
  3. Stars Rating under product listing page
    By ken0306 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 2 Feb 2011, 01:46 AM
  4. Average Rating in Search Results or Product Listing
    By hungoveragain in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 26 Oct 2009, 10:11 AM
  5. Showing product rating on listing
    By jcastr in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 15 Jun 2009, 05:34 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