Forums / Templates, Stylesheets, Page Layout / Product Reviews in footer

Product Reviews in footer

Locked

Started by gomlers on 27 Sep 2010, 7:54 PM · Views: 610

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
27 Sep 2010, 7:54 PM
#1
gomlers avatar

gomlers

Zen Follower

Join Date:
Aug 2008
Posts:
139
Plugin Contributions:
0

Product Reviews in footer

I want to show the last 4 or 5 productreviews in my footer in reversed order (The last one added beeing the first in the list)

Can I have a input on which variables I could use, or do I need to connect to the DB and pull out the information I need?

I need:
Product Name
100 first chars of review

Zen Cart 1.3.9f

27 Sep 2010, 9:03 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Product Reviews in footer

I want to show the last 4 or 5 productreviews in my footer in reversed order
I would "hi-jack" code from the sidebox for this and insert into your footer file - make adjustments as needed

Zen-Venom Get Bitten

29 Sep 2010, 5:10 PM
#3
gomlers avatar

gomlers

Zen Follower

Join Date:
Aug 2008
Posts:
139
Plugin Contributions:
0

Re: Product Reviews in footer

Ok, thanks kobra!

I've really tried! But all that happens, is that it shows only 1 review no matter what I do.

I tried to connect to mysql with my own code, to pull out the information needed, but it looks like Zen Cart doesn't really like that I take control over DB connections.

The sidebox tpl.file, contains $content - variables, which get echoed out in common/tpl_box_default_left.php. It doesn't help me using that code, unless I also use something from the modules-file.

I need help on this one - would anyone care to give me a little guidance?

29 Sep 2010, 5:16 PM
#4
gomlers avatar

gomlers

Zen Follower

Join Date:
Aug 2008
Posts:
139
Plugin Contributions:
0

Re: Product Reviews in footer

Sorry for double posting, but i thought I could say - what I really need is the DB query to get the last 4 reviews (or 4 random reviews) with a limit of 4, and maybe the code to print it out..