public function getValue($index = null) { if (is_array($value = parent::getValue($index))) { if (isset($value['unit'])) { $unit = $this->_parseUnitValue($value['unit']); } else { $unit = 0; } if (isset($value['from']) && strlen($value['from']) > 0) { $value['from'] *= pow(1024, $unit); } if (isset($value['to']) && strlen($value['to']) > 0) { $value['to'] *= pow(1024, $unit); } } return $value; }
public function getHtml() { $afnChecked = $this->getValue('afn') == 1 ? 'checked="checked"' : ''; return parent::getHtml() . '<div class="range"><div class="range-line"><span class="label">' . Mage::helper('M2ePro')->__('AFN') . ' : </span>' . '<input style="margin-left:6px;float:none;width:auto !important;" type="checkbox" value="1" name="' . $this->_getHtmlName() . '[afn]" ' . $afnChecked . '></div></div>'; }