AlegroCart open source E-commerce
Web hosting by Host1Plus

Review Ratings On Other Modules

Discussion for coding development or feature requests

Review Ratings On Other Modules

Postby Bluesplayer » Tue Feb 05, 2013 5:27 am

I will be looking to see if I can sort this out as well as my front page needs some additional graphics to give it more colour. What I am thinking of is to show the Review Rating stars above the 'Add To Cart' or 'Options Available' button on all the modules. Empty stars to begin with obviously until a review has been writen but even empty stars will provide nice looking graphics. I can do this with an ajax script myself but it wouldn't be tied into the built in review rating system the cart has.
apet4life.co.uk
Bluesplayer
 
Posts: 152
Joined: Sun Jan 06, 2013 3:03 pm

Re: Review Ratings On Other Modules

Postby leo » Tue Feb 05, 2013 5:53 am

This is on my todo list. My intention is to add the possibility to enable/disable it in admin (per module).
User avatar
leo
admin
 
Posts: 4236
Joined: Sun Dec 13, 2009 8:27 am
Location: Hungary

Re: Review Ratings On Other Modules

Postby Bluesplayer » Tue Feb 05, 2013 6:23 am

Perfect :) .

I will stick some dummy rating stars on there I think for now or I might use my version until you get it sorted.
apet4life.co.uk
Bluesplayer
 
Posts: 152
Joined: Sun Jan 06, 2013 3:03 pm

Re: Review Ratings On Other Modules

Postby Bluesplayer » Tue Feb 05, 2013 7:44 am

I have added the ratings system to my site now so you can how it looks.

I have set it for now so that anyone can vote but I will alter that soon and make it so that visitors will have to login. I will need to know the session name for this bit of code:

Code: Select all
define('USRRATE', 1);
if(USRRATE !== 1) {
  if(!isset($_SESSION)) session_start();
  if(isset($_SESSION['username'])) define('RATER', $_SESSION['username']);
}


If you could let me know what it is then I can apply it.

Make sure to keep refreshing the page when you visit my site as I am altering the css all the time.
apet4life.co.uk
Bluesplayer
 
Posts: 152
Joined: Sun Jan 06, 2013 3:03 pm

Re: Review Ratings On Other Modules

Postby Brent » Tue Feb 05, 2013 8:13 am

I think you need to look at session.php in library. We do not use the standard PHP Session.
It created issues with some servers and it was hard to build in security.
User avatar
Brent
Site Admin
 
Posts: 4388
Joined: Sat Dec 12, 2009 3:35 pm
Location: Canada eh

Re: Review Ratings On Other Modules

Postby Bluesplayer » Tue Feb 05, 2013 8:16 am

Brent wrote:I think you need to look at session.php in library. We do not use the standard PHP Session.
It created issues with some servers and it was hard to build in security.


Ok thanks.
apet4life.co.uk
Bluesplayer
 
Posts: 152
Joined: Sun Jan 06, 2013 3:03 pm

Re: Review Ratings On Other Modules

Postby Bluesplayer » Tue Feb 05, 2013 3:36 pm

Any idea what I should use here:

Code: Select all
if(USRRATE !== 1) {
  if(!isset($_SESSION)) session_start();
  if(isset($_SESSION['alegro'])) define('RATER', $_SESSION['alegro']);
}


As you can see 'alegro' isn't working which I had from this bit of code found in session.php:

Code: Select all
      if (!$this->request->has('alegro', 'cookie')) {
          setcookie('alegro', 'accept', time() + 60 * 60 * 24 * 30, '/', NULL, false);
      }
apet4life.co.uk
Bluesplayer
 
Posts: 152
Joined: Sun Jan 06, 2013 3:03 pm


Return to Development Proposals / Feature Requests

Who is online

Users browsing this forum: No registered users and 1 guest

cron