change the * for the required inputfields

  • Posts: 61
  • Thank you received: 1
12 years 8 months ago #70876

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?

Last edit: 12 years 8 months ago by Rolandus1.

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
12 years 8 months ago #70914

Hi,

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.

  • Posts: 61
  • Thank you received: 1
12 years 8 months ago #71505

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;');

Please Log in or Create an account to join the conversation.

  • Posts: 84102
  • Thank you received: 13638
  • MODERATOR
12 years 8 months ago #71599

You want to change that line:
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.

  • Posts: 61
  • Thank you received: 1
12 years 8 months ago #71627

YES that's it!
Great
Thank you

Please Log in or Create an account to join the conversation.

Time to create page: 0.070 seconds
Powered by Kunena Forum