Jump to content


Photo
- - - - -

placeholder в поле ввода цены элемента jbpriceadvance


Best Answer Cheren-dow , 18 December 2014 - 08:02

webevp, откройте шаблон:

сайт\media\zoo\applications\jbuniversal\framework\render\filter\element.jbpriceadvance.php 

 найдите условие

if ($valueTmpl == 2) {
    $htmlRange   = array();
    $htmlRange[] = '<label for="' . $this->_getId('val_min') . '">' . JText::_('JBZOO_FROM') . '</label>';
    $htmlRange[] = $this->_jbhtml->text($this->_getName('val_min'), $values['val_min'], 'class="val_min"', $this->_getId('val_min'));;
    $htmlRange[] = '<label for="' . $this->_getId('val_max') . '">' . JText::_('JBZOO_TO') . '</label>';
    $htmlRange[] = $this->_jbhtml->text($this->_getName('val_max'), $values['val_max'], 'class="val_max"', $this->_getId('val_max'));

    $html = '<div class="jbprice-ranges">' . implode("\n ", $htmlRange) . '</div>';
}

и замените на

if ($valueTmpl == 2) {
    $htmlRange   = array();
    $htmlRange[] = '<label for="' . $this->_getId('val_min') . '">' . JText::_('JBZOO_FROM') . '</label>';
    $htmlRange[] = $this->_jbhtml->text($this->_getName('val_min'), $values['val_min'], 'class="val_min" placeholder="от"', $this->_getId('val_min'));;
    $htmlRange[] = '<label for="' . $this->_getId('val_max') . '">' . JText::_('JBZOO_TO') . '</label>';
    $htmlRange[] = $this->_jbhtml->text($this->_getName('val_max'), $values['val_max'], 'class="val_max" placeholder="до"', $this->_getId('val_max'));

    $html = '<div class="jbprice-ranges">' . implode("\n ", $htmlRange) . '</div>';
}
Go to the full post


  • This topic is locked This topic is locked
2 replies to this topic

#1 webevp

webevp
  • JBZoo User (rus)
  • User rate: 0
  • posts: 56
  • topics: 22

Posted 18 December 2014 - 07:14

Подскажите как вывести placeholder (подсказку в виде валюты) в поле ввода элемента jbpriceadvance, сейчас так http://take.ms/MSgtl


  • 0

#2 Cheren-dow

Cheren-dow
  • JBZoo User (rus)
  • User rate: 95.7
  • posts: 5060
  • topics: 31

Posted 18 December 2014 - 08:02   Best Answer

webevp, откройте шаблон:

сайт\media\zoo\applications\jbuniversal\framework\render\filter\element.jbpriceadvance.php 

 найдите условие

if ($valueTmpl == 2) {
    $htmlRange   = array();
    $htmlRange[] = '<label for="' . $this->_getId('val_min') . '">' . JText::_('JBZOO_FROM') . '</label>';
    $htmlRange[] = $this->_jbhtml->text($this->_getName('val_min'), $values['val_min'], 'class="val_min"', $this->_getId('val_min'));;
    $htmlRange[] = '<label for="' . $this->_getId('val_max') . '">' . JText::_('JBZOO_TO') . '</label>';
    $htmlRange[] = $this->_jbhtml->text($this->_getName('val_max'), $values['val_max'], 'class="val_max"', $this->_getId('val_max'));

    $html = '<div class="jbprice-ranges">' . implode("\n ", $htmlRange) . '</div>';
}

и замените на

if ($valueTmpl == 2) {
    $htmlRange   = array();
    $htmlRange[] = '<label for="' . $this->_getId('val_min') . '">' . JText::_('JBZOO_FROM') . '</label>';
    $htmlRange[] = $this->_jbhtml->text($this->_getName('val_min'), $values['val_min'], 'class="val_min" placeholder="от"', $this->_getId('val_min'));;
    $htmlRange[] = '<label for="' . $this->_getId('val_max') . '">' . JText::_('JBZOO_TO') . '</label>';
    $htmlRange[] = $this->_jbhtml->text($this->_getName('val_max'), $values['val_max'], 'class="val_max" placeholder="до"', $this->_getId('val_max'));

    $html = '<div class="jbprice-ranges">' . implode("\n ", $htmlRange) . '</div>';
}

  • 1
Изображение
 

#3 webevp

webevp
  • Topic Starter
  • JBZoo User (rus)
  • User rate: 0
  • posts: 56
  • topics: 22

Posted 18 December 2014 - 17:32

Спасибо помогло


  • 0




Click to return to top of page in style!