Попробовал по вашей рекомендации, но видимо либо не так использую, либо не там.
Суть в том, что вот есть обычное текстовое поле,с именем ФИО. Как альтернативную метку я хочу сделать текст "Как к Вам обращаться?", который и будет отображаться в корзине как название поля. Скриншот самого поля: http://prntscr.com/d2ckew
В файле /media/zoo/applications/jbuniversal/cart-elements/order/text/text.php я внёс это поле, но наверное неверно...Подскажите пожалуйста, в чём ошибка. Вот код:
<?php
/**
* JBZoo App is universal Joomla CCK, application for YooTheme Zoo component
* @package jbzoo
* @version 2.x Pro
* @author JBZoo App http://jbzoo.com
* @copyright Copyright (C) JBZoo.com, All rights reserved.
* @license http://jbzoo.com/license-pro.php JBZoo Licence
* @coder Denis Smetannikov <denis@jbzoo.com>
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
/**
* Class JBCartElementOrderFieldText
*/
class JBCartElementOrderText extends JBCartElementOrder
{
/**
* Renders the element in submission
* @param array $params
* @return string
*/
public function renderSubmission($params = array())
{
$value = $this->getUserState($params->get('user_field'));
return $this->app->html->_(
'control.text',
$this->getControlName('value'),
$this->config->get('altlabel'),
$this->get('value', $value),
'size="60" maxlength="255" id="' . $this->htmlId() . '" placeholder="' . $this->config->get('order_placeholder') . '"'
);
}
}