So I'm trying to add two sliders on with min 0-50000 and the other min 0-20
<div class="col-md-12 form-group">
<label> </span></label>
<div class="row">
<div class="col-md-6">
<label>Select Carats <span class="badge" style="background:#d83c3c;">New</span></label>
<p>Values=(<?php echo number_format($this->params["diamCaratsSlider"][0]).",".number_format($this->params["diamCaratsSlider"][1]); ?>)</p>
<?php
RangeSlider::create(array(
"name"=>"diamCaratsSlider",
"handles"=>2,
"ranges"=>array(
"min"=>0,
"max"=>20,
),
"step"=>0.5,
"scale"=>1,
));
?>
</div>
</div>
</div>
</div>
<div class="col-md-12 form-group">
<label> </span></label>
<div class="row">
<div class="col-md-6">
<label>Select Price Range <span class="badge" style="background:#d83c3c;">New</span></label>
<p>Values=(<?php echo number_format($this->params["diamCaratsSlider"][0]).",".number_format($this->params["diamCaratsSlider"][1]); ?>)</p>
<?php
RangeSlider::create(array(
"name"=>"diamPriceSlider",
"handles"=>2,
"ranges"=>array(
"min"=>0,
"max"=>50000,
),
"step"=>100,
"scale"=>100,
));
?>
</div>
</div>
</div>
As well the values are set in the main PHP file for default params
protected function defaultParamValues()
{
return array(
"rangeSliderOne"=>array(50),
"diamCaratsSlider"=>array(0,20),
"diamPriceSlider"=>array(0,50000),
it seems like in the onInit function in the RangeSlider.php file it's hard coded to X and Y
parent::onInit();
$this->range = Utility::get($this->range,"range",array(
"min"=>0,
"max"=>20,
));
Results in off sliders