[Skip to main content](#vessel-content)

#   Change style of ver registration form

##

- **[snarf-eu](/forum/user/29142-snarf-eu "View snarf-eu's Profile")**
- [![snarf-eu's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/29142-snarf-eu "View snarf-eu's Profile") Topic Author
- [ Offline](/forum/user/29142-snarf-eu)

Less More

- Posts: 11
- Thank you received: 0
-
-

11 years 11 months ago -  11 years 11 months ago [\#180659](#180659) by [snarf-eu](/forum/user/29142-snarf-eu "View snarf-eu's Profile")  *[Change style of ver registration form](/forum/23-market-how-to/873165-change-style-of-ver-registration-form#180659 "-- HikaShop version -- : 2.3.4 -- HikaMarket version -- : 1.5.1 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : Chrome 38.0.2125.111 m, Firefox 33.1.1  A have some question on how to change the vendor registration form. What I want to achieve is the following:  &#42; move the asterixes right behind the textboxes  &#42; create tip messages behind some of the fields  &#42; change the order of the checkbox (checkbox first, then label)  &#42; make a link of the (checkbox) label to an article or popup box with terms and conditions  Any ideas? Screenshot attached.  Thanks in advance.")* was created by *[snarf-eu](/forum/user/29142-snarf-eu "View snarf-eu's Profile")*

-- HikaShop version -- : 2.3.4
-- HikaMarket version -- : 1.5.1
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.3.29
-- Browser(s) name and version -- : Chrome 38.0.2125.111 m, Firefox 33.1.1

A have some question on how to change the vendor registration form. What I want to achieve is the following:

- move the asterixes right behind the textboxes
- create tip messages behind some of the fields
- change the order of the checkbox (checkbox first, then label)
- make a link of the (checkbox) label to an article or popup box with terms and conditions

Any ideas? Screenshot attached.

Thanks in advance.

- [ ![asterix&#95;and&#95;tips&#95;behind&#95;fields.jpg](/forum/attachment/20808) ](/forum/attachment/20808 "...ind&#95;fields.jpg") [ ](/forum/attachment/20808?download=1 "...ind&#95;fields.jpg")

Last edit: 11 years 11 months ago by [snarf-eu](/forum/user/29142-snarf-eu "View snarf-eu's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODczMTY1LWNoYW5nZS1zdHlsZS1vZi12ZXItcmVnaXN0cmF0aW9uLWZvcm0/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 11 months ago [\#180669](#180669) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Change style of ver registration form](/forum/23-market-how-to/873165-change-style-of-ver-registration-form#180669 "-- HikaShop version -- : 2.3.4 -- HikaMarket version -- : 1.5.1 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : Chrome 38.0.2125.111 m, Firefox 33.1.1  A have some question on how to change the vendor registration form. What I want to achieve is the following:  &#42; move the asterixes right behind the textboxes  &#42; create tip messages behind some of the fields  &#42; change the order of the checkbox (checkbox first, then label)  &#42; make a link of the (checkbox) label to an article or popup box with terms and conditions  Any ideas? Screenshot attached.  Thanks in advance.")*

Hi,

These fields are displaying thanks to HikaShop custom fields.
So if you want to change how the custom fields are display, you will have to create a view override for the "vendormarket &#124; registration" view and change how the custom fields are displayed.

To move the asterisk, you have to use such code Code:

if($oneExtraField-&gt;field_required) echo '* ': $oneExtraField-&gt;field_required = false; echo $this-&gt;fieldsClass-&gt;display( $oneExtraField, $value, 'data['.$this-&gt;form_type.']['.$fieldName.']', false, ' ' . $onWhat . '="hikashopToggleFields(this.value,\''.$fieldName.'\',\''.$this-&gt;form_type.'\',0,\'hikamarket_\');"', false, $this-&gt;extraFields['vendor'], @$this-&gt;element );

To display some special text, you have to use the variable "$fieldName" and display a message depending the value (which is the namekey of the custom field).
Same thing for the link you want to add, the best is to display your custom content depending the variable "$fieldName".

About the checkbox, it is displayed directly by the HikaShop field class.
it is not something I will recommend but the best way to change it is to modify the HikaShop core file.
Are you sure you can't do something using CSS ?

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODczMTY1LWNoYW5nZS1zdHlsZS1vZi12ZXItcmVnaXN0cmF0aW9uLWZvcm0/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[snarf-eu](/forum/user/29142-snarf-eu "View snarf-eu's Profile")**
- [![snarf-eu's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/29142-snarf-eu "View snarf-eu's Profile") Topic Author
- [ Offline](/forum/user/29142-snarf-eu)

Less More

- Posts: 11
- Thank you received: 0
-
-

11 years 11 months ago [\#181028](#181028) by [snarf-eu](/forum/user/29142-snarf-eu "View snarf-eu's Profile")  Replied by *[snarf-eu](/forum/user/29142-snarf-eu "View snarf-eu's Profile")* on topic *[Change style of ver registration form](/forum/23-market-how-to/873165-change-style-of-ver-registration-form#181028 "-- HikaShop version -- : 2.3.4 -- HikaMarket version -- : 1.5.1 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : Chrome 38.0.2125.111 m, Firefox 33.1.1  A have some question on how to change the vendor registration form. What I want to achieve is the following:  &#42; move the asterixes right behind the textboxes  &#42; create tip messages behind some of the fields  &#42; change the order of the checkbox (checkbox first, then label)  &#42; make a link of the (checkbox) label to an article or popup box with terms and conditions  Any ideas? Screenshot attached.  Thanks in advance.")*

Hello Jerome,

Thank you for your reply, but i'm still struggling.

- For the asterix; could you please be more specific on where to add the code? I've tried to add it to vendormarket / registration, but it ended up as a broken form.
- For the extra tips; can you give a full example for address maybe?
- For the checkbox; which core files do I need to change and where
.
As you can see i'm not 100% familiar with coding.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODczMTY1LWNoYW5nZS1zdHlsZS1vZi12ZXItcmVnaXN0cmF0aW9uLWZvcm0/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 11 months ago [\#181077](#181077) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Change style of ver registration form](/forum/23-market-how-to/873165-change-style-of-ver-registration-form#181077 "-- HikaShop version -- : 2.3.4 -- HikaMarket version -- : 1.5.1 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : Chrome 38.0.2125.111 m, Firefox 33.1.1  A have some question on how to change the vendor registration form. What I want to achieve is the following:  &#42; move the asterixes right behind the textboxes  &#42; create tip messages behind some of the fields  &#42; change the order of the checkbox (checkbox first, then label)  &#42; make a link of the (checkbox) label to an article or popup box with terms and conditions  Any ideas? Screenshot attached.  Thanks in advance.")*

Hi,

1/ In the view "vendormarket &#124; registration" there are 3 "blocks" which display custom fields.
I gave you a sample for the "block" vendor which is the last block in the view.
But the idea of the modification is to add the two lines before the line Code:

echo $this-&gt;fieldsClass-&gt;display(

You can perform that modification in every blocks without having to copy/past the rest of the code, just the first two lines (which have to be added).

2/ Here an example Code:

echo $this-&gt;fieldsClass-&gt;display( $oneExtraField, @$this-&gt;address-&gt;$fieldName, 'data[address]['.$fieldName.']', false, ' '.$onWhat.'="hikashopToggleFields(this.value,\''.$fieldName.'\',\'address\',0);"', false, $this-&gt;extraFields['address'], $this-&gt;address ); //-- Begin of sample code if($fieldName == 'iban') echo ' ' . JText::_('IBAN_TIPS_TEXT'); if($fieldName == 'iban2') echo ' ' . JText::_('IBAN2_TIPS_TEXT'); //-- End of sample code ?&gt;&lt;/dd&gt;

The field names "iban" and "iban2" are just example ; You have to replace them with the namekey of your custom fields.

3/ The file is "administrator/components/com_hikashop/classes/field.php"
You have to change that line Code:

$string .= '&lt;input type="'.$type.'" name="'.$map.'" value="'.$oneValue.'" id="'.$id.'" '.$checked.' '.$options.' /&gt;&lt;label for="'.$id.'"&gt;'.$this-&gt;trans($title-&gt;value).'&lt;/label&gt;';

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [snarf-eu](/forum/user/29142-snarf-eu "View snarf-eu's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODczMTY1LWNoYW5nZS1zdHlsZS1vZi12ZXItcmVnaXN0cmF0aW9uLWZvcm0/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[snarf-eu](/forum/user/29142-snarf-eu "View snarf-eu's Profile")**
- [![snarf-eu's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/29142-snarf-eu "View snarf-eu's Profile") Topic Author
- [ Offline](/forum/user/29142-snarf-eu)

Less More

- Posts: 11
- Thank you received: 0
-
-

11 years 10 months ago -  11 years 10 months ago [\#183300](#183300) by [snarf-eu](/forum/user/29142-snarf-eu "View snarf-eu's Profile")  Replied by *[snarf-eu](/forum/user/29142-snarf-eu "View snarf-eu's Profile")* on topic *[Change style of ver registration form](/forum/23-market-how-to/873165-change-style-of-ver-registration-form#183300 "-- HikaShop version -- : 2.3.4 -- HikaMarket version -- : 1.5.1 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : Chrome 38.0.2125.111 m, Firefox 33.1.1  A have some question on how to change the vendor registration form. What I want to achieve is the following:  &#42; move the asterixes right behind the textboxes  &#42; create tip messages behind some of the fields  &#42; change the order of the checkbox (checkbox first, then label)  &#42; make a link of the (checkbox) label to an article or popup box with terms and conditions  Any ideas? Screenshot attached.  Thanks in advance.")*

Ok, i have found a way make it work, but i'm going to ignore the asterix thing and just use:
****echo ' ' . JText::\_('my\_string');**** instead for the required fields as you described earlier.

Those little anoying asterixes cost me too much time already.

Last edit: 11 years 10 months ago by [snarf-eu](/forum/user/29142-snarf-eu "View snarf-eu's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODczMTY1LWNoYW5nZS1zdHlsZS1vZi12ZXItcmVnaXN0cmF0aW9uLWZvcm0/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.125 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
