Bootstrap rating library


Adds bootstrap rating js library to catalog/view/javascript/library/. To use it add to your controller 

$this->document->addStyle('catalog/view/javascript/library/d_bootstrap_rating/bootstrap-rating.css');$this->document->addScript('catalog/view/javascript/library/d_bootstrap_rating/bootstrap-rating.js');
and in your TPL file add this input
< input type="hidden" id="review_rating" name="rating" data-start="0" data-stop="5" data-filled="fa fa-star fa-stack-2x, fa fa-star-o fa-stack-2x" data-empty="fa fa-star-o fa-2x">
$ ('input[name=\'rating\']').rating();

this will recreate default rating stars. 
Login to leave a comment

Simply login in to leave a comment or reply to one. Provide your email or use one of our social logins


Login
Be the first to leave a comment
Version Date Changes
2.0.2 2019-01-29 15:22:08

Added support OC v3.0.3.1

2.0.0 2017-07-23 20:35:39

Added support for new opencart versions and moved out of library folder, updated to version 1.4.0

1.0.1 2016-08-17 08:22:30

Add version opencart 2.3.0.2

1.0.0 2016-07-28 14:30:51

Get it
License Free
Dreamvention

by Dmitriy Zhuk

A nice js library that allows you to offer nice stars in your bootstrap theme. It has a very simple api and can easily replace the ugly opencart rating radio buttons

10269
Installations

0
Comments

Created 25/07/2016
Updated 04/03/2019
opncart versions 2.0.0.0, 2.0.1.0, 2.0.1.1, 2.0.2.0, 2.0.3.1, 2.1.0.1, 2.1.0.2, 2.2.0.0, 2.3.0.0, 2.3.0.1, 2.3.0.2, 3.0.0.0, 3.0.1.1, 3.0.1.2, 3.0.2.0, 3.0.3.1
Support email Support