This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

get the star rating from comments page
#1

Reply
#2

I'm not sure where to start here. Can you explain more about your objective, because it doesn't make sense to me how you're approaching it with the code. I assume you have a page with a list of products, and if I were to visit each product I would see its average rating, and what you want to do is display each of those average ratings on the product listing page. So on the product listing page, you have product 1 and its average rating, then product 2 and its average rating, and so on. Is that correct?

I can't see where you are actually calling the cmtx_average_rating() function. It looks like you're just re-creating the same function lots of times. What is the value of the variable $product? How are you supplying the value for the $cmtx_page_id variable? What's the full error message that you're getting?

Have you completed the interview?
Reply
#3

Reply
#4


Have you completed the interview?
Reply
#5

Reply
#6


Have you completed the interview?
Reply
#7

You explained it very exactly and everything is working now. Thank you very much for your help. AZJOL
Reply
#8

Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by Tim
06-Jan-2021, 08:56 PM
Last Post by Tim
18-Oct-2019, 11:45 AM
Last Post by Gevill
23-Jul-2019, 01:17 AM
Last Post by Seven Thunders
21-Aug-2018, 04:05 AM
Last Post by Steven
16-Feb-2018, 09:15 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)