11-Oct-2012, 06:15 PM
This is the community forum. For a developer response use the Client Area.
11-Oct-2012, 09:09 PM
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?
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?
12-Oct-2012, 08:40 AM
29-Apr-2013, 04:43 PM
30-Apr-2013, 12:49 PM
You explained it very exactly and everything is working now. Thank you very much for your help. AZJOL
01-May-2013, 07:52 AM
« Next Oldest | Next Newest »
Possibly Related Threads…
Thread / Author
Replies
Views
Last Post
Users browsing this thread: 1 Guest(s)