- Posts: 61
- Thank you received: 1
change the * for the required inputfields
14 years 3 weeks ago - 14 years 3 weeks ago #70876
by Rolandus1
change the * for the required inputfields was created by Rolandus1
Hi
The * for the required inputfields in the HIKA registration appears after the input field.
Where and how can I place them after the label?
The * for the required inputfields in the HIKA registration appears after the input field.
Where and how can I place them after the label?
Last edit: 14 years 3 weeks ago by Rolandus1.
Please Log in or Create an account to join the conversation.
14 years 3 weeks ago #70914
by Xavier
Replied by Xavier on topic Re: change the * for the required inputfields
Hi,
To place it after the label, you have to edit the view "user/ registration" in HikaShop > Display > Views.
To place it after the label, you have to edit the view "user/ registration" in HikaShop > Display > Views.
Please Log in or Create an account to join the conversation.
14 years 3 weeks ago #71505
by Rolandus1
Replied by Rolandus1 on topic Re: change the * for the required inputfields
There U see only this code where the input field are supposed
<tr class="hikashop_registration_address_info_line">
<td colspan="2" height="40">
<?php echo JText::_( 'ADDRESS_INFORMATION' ); ?>
</td>
</tr>
<?php
$this->type = 'address';
echo $this->loadTemplate();
?>
<tr class="hikashop_registration_required_info_line">
<td colspan="2" height="40">
<?php echo JText::_( 'HIKA_REGISTER_REQUIRED' ); ?>
</td>
</tr>
</table>
<input type="hidden" name="data[register][id]" value="<?php echo (int)$this->mainUser->get( 'id' );?>" />
<input type="hidden" name="data[register][gid]" value="<?php echo (int)$this->mainUser->get( 'gid' );?>" />
<?php
$additional_check='';
if(empty($this->form_name)){
$this->form_name = 'hikashop_checkout_form';
if(JRequest::getVar('hikashop_check_order')) $additional_check='&& hikashopCheckChangeForm(\'order\',\''.$this->form_name.'\')';
}
echo $this->cartClass->displayButton(JText::_('HIKA_REGISTER'),'register',$this->params,'','if(hikashopCheckChangeForm(\'register\',\''.$this->form_name.'\') && hikashopCheckChangeForm(\'user\',\''.$this->form_name.'\') && hikashopCheckChangeForm(\'address\',\''.$this->form_name.'\')'.$additional_check.'){ var button = document.getElementById(\'login_view_action\'); if(button) button.value=\'register\'; document.'.$this->form_name.'.submit();} return false;');
<tr class="hikashop_registration_address_info_line">
<td colspan="2" height="40">
<?php echo JText::_( 'ADDRESS_INFORMATION' ); ?>
</td>
</tr>
<?php
$this->type = 'address';
echo $this->loadTemplate();
?>
<tr class="hikashop_registration_required_info_line">
<td colspan="2" height="40">
<?php echo JText::_( 'HIKA_REGISTER_REQUIRED' ); ?>
</td>
</tr>
</table>
<input type="hidden" name="data[register][id]" value="<?php echo (int)$this->mainUser->get( 'id' );?>" />
<input type="hidden" name="data[register][gid]" value="<?php echo (int)$this->mainUser->get( 'gid' );?>" />
<?php
$additional_check='';
if(empty($this->form_name)){
$this->form_name = 'hikashop_checkout_form';
if(JRequest::getVar('hikashop_check_order')) $additional_check='&& hikashopCheckChangeForm(\'order\',\''.$this->form_name.'\')';
}
echo $this->cartClass->displayButton(JText::_('HIKA_REGISTER'),'register',$this->params,'','if(hikashopCheckChangeForm(\'register\',\''.$this->form_name.'\') && hikashopCheckChangeForm(\'user\',\''.$this->form_name.'\') && hikashopCheckChangeForm(\'address\',\''.$this->form_name.'\')'.$additional_check.'){ var button = document.getElementById(\'login_view_action\'); if(button) button.value=\'register\'; document.'.$this->form_name.'.submit();} return false;');
Please Log in or Create an account to join the conversation.
14 years 3 weeks ago #71599
by nicolas
Replied by nicolas on topic Re: change the * for the required inputfields
You want to change that line:
echo $this->loadTemplate();
to:
echo str_replace('</label>','</label>*',str_replace('*','',$this->loadTemplate()));
echo $this->loadTemplate();
to:
echo str_replace('</label>','</label>*',str_replace('*','',$this->loadTemplate()));
The following user(s) said Thank You: Rolandus1
Please Log in or Create an account to join the conversation.
14 years 3 weeks ago #71627
by Rolandus1
Replied by Rolandus1 on topic Re: change the * for the required inputfields
YES that's it!
Great
Thank you
Great
Thank you
Please Log in or Create an account to join the conversation.
Time to create page: 0.153 seconds