form->hiddenElements; /** @var \Cube\Form\Element $element */ $element = $this->form->getElement('category_id'); if (!$element->isHidden()) { echo $this->partial('partials/form-element.phtml', array('element' => $element)); } if ($feeName == 'sale') { $element = $this->form->getElement('sale_fee_payer'); $element->setValue($this->settings['sale_fee_payer']); if (!$element->isHidden()) { echo $this->partial('partials/form-element.phtml', array('element' => $element)); } } ?>
form->getData() as $data) { if (array_key_exists('amount', (array)$data)) { ?>
translate('Fee Amount'); ?> translate('Calculation Type'); ?> translate('Range [ From (>=) - To (<) ]'); ?> translate('Delete'); ?>
form->getElement('amount')->setData($data['amount']); ?> form->getElement('calculation_type')->setData($data['calculation_type']); ?> form->getElement('tier_from')->setData($data['tier_from']); ?> - form->getElement('tier_to')->setData($data['tier_to']); ?> form->getElement('id')->setData($data['id']); ?> form->getElement('delete')->setMultiOptions(array($data['id'] => null)); ?>
translate('Insert New Fee Tier'); ?>
form->getElement('amount')->clearData(); ?> form->getElement('calculation_type')->clearData(); ?> form->getElement('tier_from')->clearData(); ?> - form->getElement('tier_to')->clearData(); ?> form->getElement('id')->clearData(); ?>
form->submit; ?>