Registration form required field asterisk symbol

  • Posts: 32
  • Thank you received: 0
10 years 7 months ago #152137

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

Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
10 years 7 months ago #152143

Hi,

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.

  • Posts: 32
  • Thank you received: 0
10 years 7 months ago #152223

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

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

  • Posts: 13201
  • Thank you received: 2322
10 years 7 months ago #152234

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:

.hikashop_field_required{
position: relative;
right: 290px;
}

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

  • Posts: 2
  • Thank you received: 0
10 years 2 months ago #173872

Will you change this in the Hikashop core?

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

  • Posts: 13201
  • Thank you received: 2322
10 years 2 months ago #173926

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

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

  • Posts: 2
  • Thank you received: 0
10 years 2 months ago #174023

Hi,
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.

  • Posts: 13201
  • Thank you received: 2322
10 years 2 months ago #174033

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:

// 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.087 seconds
Powered by Kunena Forum