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

#   \[Solved\] Add text field in product options ?

##

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

Less More

- Posts: 36
- Thank you received: 2
-
-
-

11 years 3 months ago -  11 years 3 months ago [\#210031](#210031) by [jplongo](/forum/user/38160-jplongo "View jplongo's Profile")  *[\[Solved\] Add text field in product options ?](/forum/32-content-creation/878466-solved-add-text-field-in-product-options#210031 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3  Hi,  I would like to know how can I get text field in option like this:    demo.hikashop.com/index.php/fr/hikashop/product-page/with-form")* was created by *[jplongo](/forum/user/38160-jplongo "View jplongo's Profile")*

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.3

Hi,

I would like to know how can I get text field in option like this:

[ demo.hikashop.com/index.php/fr/hikashop/product-page/with-form](http://demo.hikashop.com/index.php/fr/hikashop/product-page/with-form)

- [ ![2015-07-29&#95;at&#95;6&#95;54&#95;PM.png](/forum/attachment/25741) ](/forum/attachment/25741 "...at&#95;6&#95;54&#95;PM.png") [ ](/forum/attachment/25741?download=1 "...at&#95;6&#95;54&#95;PM.png")

Last edit: 11 years 3 months ago by [jplongo](/forum/user/38160-jplongo "View jplongo's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vODc4NDY2LXNvbHZlZC1hZGQtdGV4dC1maWVsZC1pbi1wcm9kdWN0LW9wdGlvbnM/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: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

11 years 3 months ago [\#210035](#210035) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Add text field in product options ?](/forum/32-content-creation/878466-solved-add-text-field-in-product-options#210035 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3  Hi,  I would like to know how can I get text field in option like this:    demo.hikashop.com/index.php/fr/hikashop/product-page/with-form")*

Hi,

See :
[ demo.hikashop.com/administrator/index.ph...ld&amp;filter\_table=item](http://demo.hikashop.com/administrator/index.php?option=com_hikashop&ctrl=field&filter_table=item)

Regards,

---

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

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

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

Less More

- Posts: 36
- Thank you received: 2
-
-
-

11 years 3 months ago [\#210100](#210100) by [jplongo](/forum/user/38160-jplongo "View jplongo's Profile")  Replied by *[jplongo](/forum/user/38160-jplongo "View jplongo's Profile")* on topic *[Add text field in product options ?](/forum/32-content-creation/878466-solved-add-text-field-in-product-options#210100 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3  Hi,  I would like to know how can I get text field in option like this:    demo.hikashop.com/index.php/fr/hikashop/product-page/with-form")*

This is what I do yesterday.

And I done it. But I would like to add text field between characteristic field.

Is it possible ?

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 3 months ago [\#210104](#210104) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Add text field in product options ?](/forum/32-content-creation/878466-solved-add-text-field-in-product-options#210104 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3  Hi,  I would like to know how can I get text field in option like this:    demo.hikashop.com/index.php/fr/hikashop/product-page/with-form")*

Hi,

So you want to add custom item fields between the characteristic dropdown fields, right ?
If it is, I think that the easiest solution will be to edit the view "product / show_block_characteristics" and replace: Code:

echo $this-&gt;characteristic-&gt;displayFE($this-&gt;element, $this-&gt;params) . '&lt;/div&gt;'; return;

By: Code:

$html = $this-&gt;characteristic-&gt;displayFE($this-&gt;element, $this-&gt;params) . '&lt;/div&gt;'; // Your code to add the field values echo $html; return;

And add custom code before the "echo $html;" to replace the html by the custom item field code which can be found in the view "product / show_block_custom_item".

And in the view "product / show_default" remove the code: Code:

//LAYOUT show_block_custom_item $this-&gt;setLayout('show_block_custom_item'); echo $this-&gt;loadTemplate();

which is displaying the custom item fields on the product detail page by default.

I think that you have all the required informations, now it require PHP knowledges to adapt that custom code ![:)](/media/kunena/emoticons/3.png ":)")

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

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

Less More

- Posts: 36
- Thank you received: 2
-
-
-

11 years 3 months ago [\#210673](#210673) by [jplongo](/forum/user/38160-jplongo "View jplongo's Profile")  Replied by *[jplongo](/forum/user/38160-jplongo "View jplongo's Profile")* on topic *[Add text field in product options ?](/forum/32-content-creation/878466-solved-add-text-field-in-product-options#210673 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3  Hi,  I would like to know how can I get text field in option like this:    demo.hikashop.com/index.php/fr/hikashop/product-page/with-form")*

I want to mix characteristic field with custom field.
I need it to create a complete a big form that need text entry from user and multiple price selection for item product.

Ex:

What is your size ? : xxx cm
Which hotel do you want: hotelx (xxx€)

Your price is xxx

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vODc4NDY2LXNvbHZlZC1hZGQtdGV4dC1maWVsZC1pbi1wcm9kdWN0LW9wdGlvbnM/dG1wbD1tYXJrZG93bg==) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

11 years 3 months ago [\#210676](#210676) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Add text field in product options ?](/forum/32-content-creation/878466-solved-add-text-field-in-product-options#210676 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3  Hi,  I would like to know how can I get text field in option like this:    demo.hikashop.com/index.php/fr/hikashop/product-page/with-form")*

Hi,

The explanations of Xavier are for that. But as he said, it requires PHP knowledge as you need to adapt the code of the views.
If you're not a developer, you can contact our partners for a quote on such customization:
[ www.hikashop.com/home/our-partners.html](http://www.hikashop.com/home/our-partners.html)

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

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

Less More

- Posts: 36
- Thank you received: 2
-
-
-

11 years 3 months ago [\#210810](#210810) by [jplongo](/forum/user/38160-jplongo "View jplongo's Profile")  Replied by *[jplongo](/forum/user/38160-jplongo "View jplongo's Profile")* on topic *[Add text field in product options ?](/forum/32-content-creation/878466-solved-add-text-field-in-product-options#210810 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3  Hi,  I would like to know how can I get text field in option like this:    demo.hikashop.com/index.php/fr/hikashop/product-page/with-form")*

Ok everything is ok. I did it thanks

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

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

Time to create page: 0.061 seconds

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