AbanteCart Community

eCommerce construction => General Discussion => Topic started by: macat on July 03, 2013, 02:32:47 PM

Title: Make Ratings NOT REQUIRED
Post by: macat on July 03, 2013, 02:32:47 PM
Hi,
When someone is leaving a review is there a way to make the ratings NOT REQUIRED, if so where would I do that ... thanks in advance?!
Title: Re: Make Ratings NOT REQUIRED
Post by: abantecart on July 06, 2013, 06:54:21 PM
You need to remove validation line below from file /storefront/model/catalog/review.php

Code: [Select]
if (!$this->request->post['rating']) {
$this->error['message'] = $this->language->get('error_rating');
}
Title: Re: Make Ratings NOT REQUIRED
Post by: macat on July 06, 2013, 07:01:04 PM
Will do thanks.
Title: Re: Make Ratings NOT REQUIRED
Post by: macat on July 06, 2013, 07:13:08 PM
OK, I couldn't find that line on that file, but I did find it on this file  line 107  /storefront/controller/products/review.php and removed it from that file.  Will let you know if that works.
Title: Re: Make Ratings NOT REQUIRED
Post by: abantecart on July 06, 2013, 07:16:43 PM
You right. Sorry for typo. :( Correct file is /storefront/controller/responses/product/review.php
Title: Re: Make Ratings NOT REQUIRED
Post by: macat on July 06, 2013, 07:25:35 PM
Yes, it worked great, thank you!