- Posts: 32
- Thank you received: 0
Registration form required field asterisk symbol
12 years 7 months ago #152137
by drock
Registration form required field asterisk symbol was created by drock
Hi,
I want to place the asterisk symbol (*) at the end of the Label texts. I have already tried the Float: left css solution. But it doesn't solve my problem. If you look at the image attached you will understand I am looking for.
Thanks
I want to place the asterisk symbol (*) at the end of the Label texts. I have already tried the Float: left css solution. But it doesn't solve my problem. If you look at the image attached you will understand I am looking for.
Thanks
Please Log in or Create an account to join the conversation.
12 years 7 months ago #152143
by Xavier
Replied by Xavier on topic Registration form required field asterisk symbol
Hi,
You have to edit the view "user / registration" or "user / registration_bootstrap" if you use bootstrap, and mode the "*" at the desired place.
You have to edit the view "user / registration" or "user / registration_bootstrap" if you use bootstrap, and mode the "*" at the desired place.
Please Log in or Create an account to join the conversation.
12 years 7 months ago #152223
by drock
Replied by drock on topic Registration form required field asterisk symbol
Hi,
I have edited the registration.php file. It let me only edit the User registration form. Not the Address form under it. Also is there a way to find the file where you mentioned "<span class="hikashop_field_required">*</span>" this tag?
Thanks
I have edited the registration.php file. It let me only edit the User registration form. Not the Address form under it. Also is there a way to find the file where you mentioned "<span class="hikashop_field_required">*</span>" this tag?
Thanks
Please Log in or Create an account to join the conversation.
12 years 7 months ago #152234
by Xavier
Replied by Xavier on topic Registration form required field asterisk symbol
Hi,
These fields are not in a view but in a HikaShop core file, to I think that the easiest way will be to use this kind of css properties:
These fields are not in a view but in a HikaShop core file, to I think that the easiest way will be to use this kind of css properties:
Code:
.hikashop_field_required{
position: relative;
right: 290px;
}
Please Log in or Create an account to join the conversation.
12 years 1 month ago #173872
by fogyhouse
Replied by fogyhouse on topic Registration form required field asterisk symbol
Will you change this in the Hikashop core?
Please Log in or Create an account to join the conversation.
12 years 1 month ago #173926
by Xavier
Replied by Xavier on topic Registration form required field asterisk symbol
Hi,
I don't think, that is very dependent on the template.
We can't use this kind of css properties by default, moreover I gave a fixed position and this is absolutely not responsive
I don't think, that is very dependent on the template.
We can't use this kind of css properties by default, moreover I gave a fixed position and this is absolutely not responsive
Please Log in or Create an account to join the conversation.
12 years 1 month ago #174023
by fogyhouse
Replied by fogyhouse on topic Registration form required field asterisk symbol
Hi,
sorry, I mean if you placed the * in the html structure next to the lable where it belongs anyway.
sorry, I mean if you placed the * in the html structure next to the lable where it belongs anyway.
Please Log in or Create an account to join the conversation.
12 years 1 month ago #174033
by Xavier
Replied by Xavier on topic Registration form required field asterisk symbol
Hi,
I just edited some code to allow to change the position of the "*" via view edition.
You will just have to edit the view "address / form" and:
I just edited some code to allow to change the position of the "*" via view edition.
You will just have to edit the view "address / form" and:
Code:
// Replace
echo $this->fieldsClass->getFieldName($oneExtraField);
// By
echo $this->fieldsClass->getFieldName($oneExtraField,true);
// And then replace
echo $this->fieldsClass->display(
$oneExtraField,
@$this->address->$fieldName,
'data[address]['.$fieldName.']',
false,
' '.$onWhat.'="hikashopToggleFields(this.value,\''.$fieldName.'\',\'address\',0);"',
false,
$this->extraFields['address'],
@$this->address
);
// By
echo $this->fieldsClass->display(
$oneExtraField,
@$this->address->$fieldName,
'data[address]['.$fieldName.']',
false,
' '.$onWhat.'="hikashopToggleFields(this.value,\''.$fieldName.'\',\'address\',0);"',
false,
$this->extraFields['address'],
@$this->address,
false
);
The following user(s) said Thank You: rakuzen
Please Log in or Create an account to join the conversation.
Time to create page: 0.066 seconds