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

#   Add a link to custom field title, or just to form.

##

- **[FranksBank](/forum/user/6002-franksbank "View FranksBank's Profile")**
- [![FranksBank's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6002.png)](/forum/user/6002-franksbank "View FranksBank's Profile") Topic Author
- [ Offline](/forum/user/6002-franksbank)

Less More

- Posts: 21
- Thank you received: 0
-
-

14 years 7 months ago [\#46514](#46514) by [FranksBank](/forum/user/6002-franksbank "View FranksBank's Profile")  *[Add a link to custom field title, or just to form.](/forum/4-how-to/46514-add-a-link-to-custom-field-title-or-just-to-form#46514 "Very grateful for any help with this. I've trawled the forum for a while now and found some bits and pieces that seem related to my predicament, but find myself in great confusion about how to achieve...")* was created by *[FranksBank](/forum/user/6002-franksbank "View FranksBank's Profile")*

Very grateful for any help with this. I've trawled the forum for a while now and found some bits and pieces that seem related to my predicament, but find myself in great confusion about how to achieve my goal. So, I now come begging...

I added the Terms and Conditions step to my Checkout workflow but really want to have Terms accepted by users when they register, not every time they go through checkout. So...

I have added a custom field to the Registration Form, as a required checkbox. No problem there. But what I need is a link to show the Terms, just like the workflow one (which will be removed shortly). It doesn't have to be integrated into the Title or Label of the checkbox, although making it part of the Title would be the best option. I found reference to adding a line to the Language file override, but it wasn't detailed enough for me to make anything work (if that was the right way to go about it); I'm afraid I need basic instructions...

So, can I get some help with creating a pop-up link, next to/close to/as part of the checkbox I've added, that enables newly registering users to read the Terms &amp; Conditions article? My custom field is called 'address_acceptterms' and the Title is 'I accept the Terms and Conditions'. If any other info or screen shots would be of use, just let me know.

All advice much appreciated.
Cheers,
Frank

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

- **[condorazul](/forum/user/4911-condorazul "View condorazul's Profile")**
- [![condorazul's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4911.jpg)](/forum/user/4911-condorazul "View condorazul's Profile")
- [ Offline](/forum/user/4911-condorazul)

Less More

- Posts: 441
- Thank you received: 24
-
- [](http://www.visual5.es)
-

14 years 7 months ago -  14 years 7 months ago [\#46517](#46517) by [condorazul](/forum/user/4911-condorazul "View condorazul's Profile")  Replied by *[condorazul](/forum/user/4911-condorazul "View condorazul's Profile")* on topic *[Re: Add a link to custom field title, or just to form.](/forum/4-how-to/46514-add-a-link-to-custom-field-title-or-just-to-form#46517 "Very grateful for any help with this. I've trawled the forum for a while now and found some bits and pieces that seem related to my predicament, but find myself in great confusion about how to achieve...")*

Best if you wait for Nicolas, but i think you must modify custom_fields.php in component/com_hikashop/views/user or maybe in registration.php adding &lt;a href=.../a&gt;in the part where your td title is...
Dont know if this helps but i just tried

Last edit: 14 years 7 months ago by [condorazul](/forum/user/4911-condorazul "View condorazul's Profile").

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

- **[FranksBank](/forum/user/6002-franksbank "View FranksBank's Profile")**
- [![FranksBank's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6002.png)](/forum/user/6002-franksbank "View FranksBank's Profile") Topic Author
- [ Offline](/forum/user/6002-franksbank)

Less More

- Posts: 21
- Thank you received: 0
-
-

14 years 6 months ago [\#46592](#46592) by [FranksBank](/forum/user/6002-franksbank "View FranksBank's Profile")  Replied by *[FranksBank](/forum/user/6002-franksbank "View FranksBank's Profile")* on topic *[Re: Add a link to custom field title, or just to form.](/forum/4-how-to/46514-add-a-link-to-custom-field-title-or-just-to-form#46592 "Very grateful for any help with this. I've trawled the forum for a while now and found some bits and pieces that seem related to my predicament, but find myself in great confusion about how to achieve...")*

Ok, thanks for that; I'll have a look at those files and hopefully Nicolas will be able to help further.

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86359
- Thank you received: 14294
-
-

14 years 6 months ago [\#46595](#46595) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Add a link to custom field title, or just to form.](/forum/4-how-to/46514-add-a-link-to-custom-field-title-or-just-to-form#46595 "Very grateful for any help with this. I've trawled the forum for a while now and found some bits and pieces that seem related to my predicament, but find myself in great confusion about how to achieve...")*

You need to set a translation key in your custom field title, like that: MY_TITLE

Then, edit your translation override as explained there [ www.hikashop.com/en/download/languages.html#modify](http://www.hikashop.com/en/download/languages.html#modify) and add a line like that:

MY_TITLE="&lt;a href='[ mywebsite.com/myjoomlaarticlelink](http://mywebsite.com/myjoomlaarticlelink)' target='_blank'&gt;I accept the Terms and Conditions&lt;/a&gt;"

That won't open the T&amp;C in a popup but in a new tab. Opening it in a popup is a bit more complex.

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

- **[FranksBank](/forum/user/6002-franksbank "View FranksBank's Profile")**
- [![FranksBank's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6002.png)](/forum/user/6002-franksbank "View FranksBank's Profile") Topic Author
- [ Offline](/forum/user/6002-franksbank)

Less More

- Posts: 21
- Thank you received: 0
-
-

14 years 6 months ago [\#46648](#46648) by [FranksBank](/forum/user/6002-franksbank "View FranksBank's Profile")  Replied by *[FranksBank](/forum/user/6002-franksbank "View FranksBank's Profile")* on topic *[Re: Add a link to custom field title, or just to form.](/forum/4-how-to/46514-add-a-link-to-custom-field-title-or-just-to-form#46648 "Very grateful for any help with this. I've trawled the forum for a while now and found some bits and pieces that seem related to my predicament, but find myself in great confusion about how to achieve...")*

Ok, thanks Nicolas, that makes sense ![:)](/media/kunena/emoticons/3.png ":)")
I'm still having a little trouble though. Having hopefully understood correctly, I've adjusted the field title, and added the line to the Language Override, but the front end is displaying the title I created rather than the override. I imagine I'm doing something wrong that's very basic; could you help educate this simpleton?

I've attached a screenshot of the Custom Field screen, and the line I've added to the Lang Override is as follows (note I've pinched the code from the 'checkout terms and conditions' pop up link that seems to work nicely; hoping it'll work just as well here too).

[ ![CustomField&#95;Checkbox.jpg](/forum/attachment/3460) ](/forum/attachment/3460 "...d&#95;Checkbox.jpg")

TITLE_TERMSLINK="Please accept the &lt;a href="/test/index.php/component/content/article?id=44&amp;tmpl=component" class="modal" rel="{handler: 'iframe', size: {x: 450, y: 480}}" target="_blank"&gt;terms and conditions&lt;/a&gt; before proceeding."

- [ ![CustomField&#95;Checkbox.jpg](/forum/attachment/3460) ](/forum/attachment/3460 "...d&#95;Checkbox.jpg") [ ](/forum/attachment/3460?download=1 "...d&#95;Checkbox.jpg")

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

- **[FranksBank](/forum/user/6002-franksbank "View FranksBank's Profile")**
- [![FranksBank's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6002.png)](/forum/user/6002-franksbank "View FranksBank's Profile") Topic Author
- [ Offline](/forum/user/6002-franksbank)

Less More

- Posts: 21
- Thank you received: 0
-
-

14 years 6 months ago [\#46709](#46709) by [FranksBank](/forum/user/6002-franksbank "View FranksBank's Profile")  Replied by *[FranksBank](/forum/user/6002-franksbank "View FranksBank's Profile")* on topic *[Re: Add a link to custom field title, or just to form.](/forum/4-how-to/46514-add-a-link-to-custom-field-title-or-just-to-form#46709 "Very grateful for any help with this. I've trawled the forum for a while now and found some bits and pieces that seem related to my predicament, but find myself in great confusion about how to achieve...")*

Ok, I've just realised a part of my error. Using double quotes in the syntax is no good at all. D'oh! So, corrected as follows:

TITLE_TERMSLINK="Please accept the &lt;a href='/test/index.php/component/content/article?id=44&amp;amp;tmpl=component' class='modal' rel='{handler: 'iframe', size: {x: 450, y: 480}}' target='_blank'&gt;terms and conditions&lt;/a&gt;.

The amended Title and link now appear nicely. So, thank you for that! ![:D](/media/kunena/emoticons/1.png ":D")
One more bit though, if you would be so kind... The popup.

When activated and on the same page, the Checkout Terms and Conditions popup link works really well, but the link in the registration form opens a new tab/window instead of the nice neat popup. I've replicated the href code so am not sure what's stopping it from working. Any ideas?

Many thanks for your continued assistance ![:)](/media/kunena/emoticons/3.png ":)")

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86359
- Thank you received: 14294
-
-

14 years 6 months ago [\#46715](#46715) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Add a link to custom field title, or just to form.](/forum/4-how-to/46514-add-a-link-to-custom-field-title-or-just-to-form#46715 "Very grateful for any help with this. I've trawled the forum for a while now and found some bits and pieces that seem related to my predicament, but find myself in great confusion about how to achieve...")*

I don't think that you can have such HTML.
As you need to use the simple quote as delimiter of attributes, since the double quotes are reserved by joomla, you can't use them in the rel attribute.
That's probably why it's not working properly for the popup, and why I said that it was more complex.
I think that the solution would be to use __QQ_ instead of the simple quotes of the attributes so that joomla replaces them with double quotes and that you can use the simple quotes in the rel attribute.

The following user(s) said Thank You: [FranksBank](/forum/user/6002-franksbank "View FranksBank's Profile")

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

- **[FranksBank](/forum/user/6002-franksbank "View FranksBank's Profile")**
- [![FranksBank's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6002.png)](/forum/user/6002-franksbank "View FranksBank's Profile") Topic Author
- [ Offline](/forum/user/6002-franksbank)

Less More

- Posts: 21
- Thank you received: 0
-
-

14 years 6 months ago [\#46756](#46756) by [FranksBank](/forum/user/6002-franksbank "View FranksBank's Profile")  Replied by *[FranksBank](/forum/user/6002-franksbank "View FranksBank's Profile")* on topic *[Re: Add a link to custom field title, or just to form.](/forum/4-how-to/46514-add-a-link-to-custom-field-title-or-just-to-form#46756 "Very grateful for any help with this. I've trawled the forum for a while now and found some bits and pieces that seem related to my predicament, but find myself in great confusion about how to achieve...")*

Ok, sorted! Thank you very much for your help ![:)](/media/kunena/emoticons/3.png ":)")
I had no idea what the _QQ_ thing was so went off on a little expedition through Google. And now I have a working popup link! Hurrah!

All that's left now is to get rid of the word "Articles" that insists on appearing as an &lt;H1&gt; header when the popup opens (it happens with the Checkout T&amp;Cs popup too, so doesn't seem linked to my fiddling). It's stumped me for the moment I must say; quite odd as it doesn't happen for the main article when accessed via the site menu.

Anyway, the main issue raised in this thread has been resolved, and once again I say THANK YOU VERY MUCH for all the help. I know you said the popup would be more difficult and you were right of course, but I wanted one and like a challenge ![:)](/media/kunena/emoticons/3.png ":)")

The code I have in place now, for the benefit of others perhaps, is:

TITLE_TERMSLINK="Please accept the &lt;a href="_QQ_"/test/index.php/component/content/article?id=44&amp;tmpl=component"_QQ_" class="_QQ_"modal"_QQ_" rel="_QQ_"{handler: 'iframe', size: {x: 450, y: 480}}"_QQ_" target="_QQ_"blank"_QQ_"&gt;terms and conditions&lt;/a&gt;."

Cheers!
Frank

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQ2NTE0LWFkZC1hLWxpbmstdG8tY3VzdG9tLWZpZWxkLXRpdGxlLW9yLWp1c3QtdG8tZm9ybT90bXBsPW1hcmtkb3du) 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?

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

Time to create page: 0.066 seconds

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