Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Comments And Reviews - How To Enable Rating Without Review Rate Topic   - - - - -

 
  • lolo212
  • Advanced Member
  • Members
  • Join Date: 07-Aug 12
  • 70 posts

Posted 08 October 2019 - 07:37 AM #1

Hi, I would like to make possible to just post a rating for the product, without having to write a review, so review would be an option, not mandatory. Is it possible?


albahurt.pl - wholesale distribution of promotional clothing - t-shirts, sweatshirts, polos...


 
  • soft-solid
  • Junior Member
  • Members
  • Join Date: 19-Apr 10
  • 915 posts

Posted 08 October 2019 - 11:05 AM #2

Hello

 

Yes. It is possible. 

You need to select Rating in particular products tab Addons-> Comments and reviews.
Then you will be able to rate the product without having to write a review.
 
Best regards
Robert

Team of SoftSolid
cs-cart.pl

 
  • lolo212
  • Advanced Member
  • Members
  • Join Date: 07-Aug 12
  • 70 posts

Posted 08 October 2019 - 11:48 AM #3

Thanks but it disable the possibility of writing a review, I just would like to make it an option, not mandatory but also not to disable it completely.


albahurt.pl - wholesale distribution of promotional clothing - t-shirts, sweatshirts, polos...


 
  • soft-solid
  • Junior Member
  • Members
  • Join Date: 19-Apr 10
  • 915 posts

Posted 08 October 2019 - 12:18 PM #4

Hello

 

You can modify file  /design/themes/responsive/templates/addons/discussion/views/discussion/components/new_post.tpl

 

or prepare small addon, override hook discussion:add_post where you should delete "cm-required"

 

Best regards

Robert


Team of SoftSolid
cs-cart.pl

 
  • lolo212
  • Advanced Member
  • Members
  • Join Date: 07-Aug 12
  • 70 posts

Posted 08 October 2019 - 08:32 PM #5

Something bad happened, I deleted "cm-required" and then the rating stars and the "write review" text disappeared from all the product pages. I backed up the original new_post.tpl file but it didn't help. I cleared the cache & tpl few times.

 

I just changed from:

<label for="dsc_message_{$obj_prefix}{$obj_id}" class="ty-control-group__title cm-required">{__("your_message")}</label>

to:

<label for="dsc_message_{$obj_prefix}{$obj_id}" class="ty-control-group__title">{__("your_message")}</label>


albahurt.pl - wholesale distribution of promotional clothing - t-shirts, sweatshirts, polos...


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19842 posts

Posted 09 October 2019 - 05:32 AM #6

It works for me

 

https://prnt.sc/pgr7kb


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • Darius
  • Douchebag
  • Members
  • Join Date: 20-Apr 08
  • 3309 posts

Posted 09 October 2019 - 05:37 AM #7

I have checked this, in case you remove cm-required and post just stars as review, reviews for that product no longer opens..

 

I would really also like to have stars on product page were customers could simply rate product by stars without writing their names or other details



 
  • lolo212
  • Advanced Member
  • Members
  • Join Date: 07-Aug 12
  • 70 posts

Posted 09 October 2019 - 06:48 AM #8

It works for me

 

https://prnt.sc/pgr7kb

Yes, it allows to post just a rating without a review but before I had stars or a text "write review" under the product name. Now it disappeared, what's strange it disappeared in all storefronts for all the products, however when I change the product template to the original it's visible again (but I can't change, I use options table matrix).


albahurt.pl - wholesale distribution of promotional clothing - t-shirts, sweatshirts, polos...


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19842 posts

Posted 09 October 2019 - 01:32 PM #9

The changes from post #4 cannot affect product template header. So most possibly issue is caused by cache clearing and other actions made before


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • lolo212
  • Advanced Member
  • Members
  • Join Date: 07-Aug 12
  • 70 posts

Posted 09 October 2019 - 08:18 PM #10

The changes from post #4 cannot affect product template header. So most possibly issue is caused by cache clearing and other actions made before

Yeah, clearing tpl cache makes sense, need to find what was changed before without clearing cache at that time.


albahurt.pl - wholesale distribution of promotional clothing - t-shirts, sweatshirts, polos...


 
  • lolo212
  • Advanced Member
  • Members
  • Join Date: 07-Aug 12
  • 70 posts

Posted 10 October 2019 - 12:14 AM #11

Found the problem, product template file was missing 2 lines: {hook name="products:main_info_title"} and {/hook}, can't remember if I removed them and if so why would I. So it was definitely problem with clearing the tpl cache.


albahurt.pl - wholesale distribution of promotional clothing - t-shirts, sweatshirts, polos...


 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19842 posts

Posted 10 October 2019 - 05:51 AM #12

Thank you for keeping us updated!


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.