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

#   Adding a telephone field in product contact

##

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

Less More

- Posts: 65
- Thank you received: 0
-
-

14 years 9 months ago [\#35068](#35068) by [soheilom](/forum/user/4248-soheilom "View soheilom's Profile")  *[Adding a telephone field in product contact](/forum/4-how-to/35068-adding-a-telephone-field-in-product-contact#35068 "Hello I need to add a telphone field foe the contact form inside products. I know its the contact product file inside Views, but what is exactly the code to enter to ask the user for his/her telephone number? I know its something like this but I dont know what to enter in the ?? places. Can I just put &quot;Telephone&quot; in those places?        nput type=&quot;text&quot; name=&quot;data&#91;register&#93;&#91;??&#93;&quot; size=&quot;40&quot; value=&quot;escape(@$this-&gt;element-&gt;??);?&gt;&quot; /&gt;   ")* was created by *[soheilom](/forum/user/4248-soheilom "View soheilom's Profile")*

Hello
I need to add a telphone field foe the contact form inside products. I know its the contact product file inside Views, but what is exactly the code to enter to ask the user for his/her telephone number?
I know its something like this but I dont know what to enter in the ?? places. Can I just put "Telephone" in those places?
&lt;tr&gt;
&lt;td class="key"&gt;
&lt;label for="data[register][??]"&gt;
&lt;?php echo JText::_( '??' ); ?&gt;
&lt;/label&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;input type="text" name="data[register][??]" size="40" value="&lt;?php echo $this-&gt;escape(@$this-&gt;element-&gt;??);?&gt;" /&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM1MDY4LWFkZGluZy1hLXRlbGVwaG9uZS1maWVsZC1pbi1wcm9kdWN0LWNvbnRhY3Q/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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86315
- Thank you received: 14274
-
-

14 years 9 months ago [\#35100](#35100) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Adding a telephone field in product contact](/forum/4-how-to/35068-adding-a-telephone-field-in-product-contact#35100 "Hello I need to add a telphone field foe the contact form inside products. I know its the contact product file inside Views, but what is exactly the code to enter to ask the user for his/her telephone number? I know its something like this but I dont know what to enter in the ?? places. Can I just put &quot;Telephone&quot; in those places?        nput type=&quot;text&quot; name=&quot;data&#91;register&#93;&#91;??&#93;&quot; size=&quot;40&quot; value=&quot;escape(@$this-&gt;element-&gt;??);?&gt;&quot; /&gt;   ")*

Hi,

You can't do that, that won't work.

If you're talking about having that field on the product page, you should create a new custom field of the table "item" via the menu Display-&gt;Custom fields (Business edition).

There is nothing else to do.

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

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

Less More

- Posts: 65
- Thank you received: 0
-
-

14 years 9 months ago [\#36187](#36187) by [soheilom](/forum/user/4248-soheilom "View soheilom's Profile")  Replied by *[soheilom](/forum/user/4248-soheilom "View soheilom's Profile")* on topic *[Re: Adding a telephone field in product contact](/forum/4-how-to/35068-adding-a-telephone-field-in-product-contact#36187 "Hello I need to add a telphone field foe the contact form inside products. I know its the contact product file inside Views, but what is exactly the code to enter to ask the user for his/her telephone number? I know its something like this but I dont know what to enter in the ?? places. Can I just put &quot;Telephone&quot; in those places?        nput type=&quot;text&quot; name=&quot;data&#91;register&#93;&#91;??&#93;&quot; size=&quot;40&quot; value=&quot;escape(@$this-&gt;element-&gt;??);?&gt;&quot; /&gt;   ")*

Hello,
No, thats not what I want actually, I want the "telefone" field to appear in the contact form that is created when someone wants to ask about a specific product that has no price for example.
Like here:
[ www.galeriadeartepedropena.com/tienda/pinturas/92-alexandra-ii](http://www.galeriadeartepedropena.com/tienda/pinturas/92-alexandra-ii)
you can see a link that says "Consultar Precio Por email" when you click on it you go to this page
[ www.galeriadeartepedropena.com/tienda/product/contact/cid-92](http://www.galeriadeartepedropena.com/tienda/product/contact/cid-92)
here is wher I want to add a Telefone field. So I guess I have to add a custom field but of what type? I cant find the correct one??

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM1MDY4LWFkZGluZy1hLXRlbGVwaG9uZS1maWVsZC1pbi1wcm9kdWN0LWNvbnRhY3Q/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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86315
- Thank you received: 14274
-
-

14 years 9 months ago [\#36225](#36225) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Adding a telephone field in product contact](/forum/4-how-to/35068-adding-a-telephone-field-in-product-contact#36225 "Hello I need to add a telphone field foe the contact form inside products. I know its the contact product file inside Views, but what is exactly the code to enter to ask the user for his/her telephone number? I know its something like this but I dont know what to enter in the ?? places. Can I just put &quot;Telephone&quot; in those places?        nput type=&quot;text&quot; name=&quot;data&#91;register&#93;&#91;??&#93;&quot; size=&quot;40&quot; value=&quot;escape(@$this-&gt;element-&gt;??);?&gt;&quot; /&gt;   ")*

Hi,

It's not possible to change that form.
There are no custom fields handling for that form.

That would require a customization of the view and a small hikashop plugin to be built.

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

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

Less More

- Posts: 7
- Thank you received: 0
-
-

14 years 4 months ago [\#52675](#52675) by [tormod](/forum/user/7695-tormod "View tormod's Profile")  Replied by *[tormod](/forum/user/7695-tormod "View tormod's Profile")* on topic *[Re: Adding a telephone field in product contact](/forum/4-how-to/35068-adding-a-telephone-field-in-product-contact#52675 "Hello I need to add a telphone field foe the contact form inside products. I know its the contact product file inside Views, but what is exactly the code to enter to ask the user for his/her telephone number? I know its something like this but I dont know what to enter in the ?? places. Can I just put &quot;Telephone&quot; in those places?        nput type=&quot;text&quot; name=&quot;data&#91;register&#93;&#91;??&#93;&quot; size=&quot;40&quot; value=&quot;escape(@$this-&gt;element-&gt;??);?&gt;&quot; /&gt;   ")*

Hi

As soheilom requested I would also like to have a entry for "Phone" on the contact form. I think it is very useful for my business. Have you any plans to include this?

Or do anybody have a workaround?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM1MDY4LWFkZGluZy1hLXRlbGVwaG9uZS1maWVsZC1pbi1wcm9kdWN0LWNvbnRhY3Q/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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86315
- Thank you received: 14274
-
-

14 years 4 months ago [\#52771](#52771) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Adding a telephone field in product contact](/forum/4-how-to/35068-adding-a-telephone-field-in-product-contact#52771 "Hello I need to add a telphone field foe the contact form inside products. I know its the contact product file inside Views, but what is exactly the code to enter to ask the user for his/her telephone number? I know its something like this but I dont know what to enter in the ?? places. Can I just put &quot;Telephone&quot; in those places?        nput type=&quot;text&quot; name=&quot;data&#91;register&#93;&#91;??&#93;&quot; size=&quot;40&quot; value=&quot;escape(@$this-&gt;element-&gt;??);?&gt;&quot; /&gt;   ")*

You would have to edit the file "contact" of the view "product" via the menu Display-&gt;Views in order to add your additional input field:
&lt;input type="text" name="my_field"/&gt;

With the latest version of HikaShop, the contact email is now editable via the menu System-&gt;Emails (Business edition) so that you could easily add the value entered by the user in your contact form's input field:
echo $_POST;

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

- **[fhesliere](/forum/user/11096-fhesliere "View fhesliere's Profile")**
- [![fhesliere's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/penguin.jpg)](/forum/user/11096-fhesliere "View fhesliere's Profile")
- [ Offline](/forum/user/11096-fhesliere)

Less More

- Posts: 22
- Thank you received: 0
-
-
- [](http://www.maformation-online.com)
-

13 years 5 months ago [\#105036](#105036) by [fhesliere](/forum/user/11096-fhesliere "View fhesliere's Profile")  Replied by *[fhesliere](/forum/user/11096-fhesliere "View fhesliere's Profile")* on topic *[Re: Adding a telephone field in product contact](/forum/4-how-to/35068-adding-a-telephone-field-in-product-contact#105036 "Hello I need to add a telphone field foe the contact form inside products. I know its the contact product file inside Views, but what is exactly the code to enter to ask the user for his/her telephone number? I know its something like this but I dont know what to enter in the ?? places. Can I just put &quot;Telephone&quot; in those places?        nput type=&quot;text&quot; name=&quot;data&#91;register&#93;&#91;??&#93;&quot; size=&quot;40&quot; value=&quot;escape(@$this-&gt;element-&gt;??);?&gt;&quot; /&gt;   ")*

> nicolas wrote: You would have to edit the file "contact" of the view "product" via the menu Display-&gt;Views in order to add your additional input field:
> &lt;input type="text" name="my\_field"/&gt;
>
> With the latest version of HikaShop, the contact email is now editable via the menu System-&gt;Emails (Business edition) so that you could easily add the value entered by the user in your contact form's input field:
> echo $\_POST;

Good evening,

Is there news about this, as i need as well to add the phone number in the product contact form (essential edition) ?
thank you for your answer.

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

13 years 5 months ago [\#105105](#105105) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Re: Adding a telephone field in product contact](/forum/4-how-to/35068-adding-a-telephone-field-in-product-contact#105105 "Hello I need to add a telphone field foe the contact form inside products. I know its the contact product file inside Views, but what is exactly the code to enter to ask the user for his/her telephone number? I know its something like this but I dont know what to enter in the ?? places. Can I just put &quot;Telephone&quot; in those places?        nput type=&quot;text&quot; name=&quot;data&#91;register&#93;&#91;??&#93;&quot; size=&quot;40&quot; value=&quot;escape(@$this-&gt;element-&gt;??);?&gt;&quot; /&gt;   ")*

Hi,

The process given by Nicolas is still valid.
You have to override the view to add your fields and edit the email to display the new fields.

Regards,

---

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

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

- **[fhesliere](/forum/user/11096-fhesliere "View fhesliere's Profile")**
- [![fhesliere's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/penguin.jpg)](/forum/user/11096-fhesliere "View fhesliere's Profile")
- [ Offline](/forum/user/11096-fhesliere)

Less More

- Posts: 22
- Thank you received: 0
-
-
- [](http://www.maformation-online.com)
-

13 years 5 months ago [\#105126](#105126) by [fhesliere](/forum/user/11096-fhesliere "View fhesliere's Profile")  Replied by *[fhesliere](/forum/user/11096-fhesliere "View fhesliere's Profile")* on topic *[Re: Adding a telephone field in product contact](/forum/4-how-to/35068-adding-a-telephone-field-in-product-contact#105126 "Hello I need to add a telphone field foe the contact form inside products. I know its the contact product file inside Views, but what is exactly the code to enter to ask the user for his/her telephone number? I know its something like this but I dont know what to enter in the ?? places. Can I just put &quot;Telephone&quot; in those places?        nput type=&quot;text&quot; name=&quot;data&#91;register&#93;&#91;??&#93;&quot; size=&quot;40&quot; value=&quot;escape(@$this-&gt;element-&gt;??);?&gt;&quot; /&gt;   ")*

Thank you for your answer. I have the essential edition, does it mean that à cannot edit the email ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM1MDY4LWFkZGluZy1hLXRlbGVwaG9uZS1maWVsZC1pbi1wcm9kdWN0LWNvbnRhY3Q/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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86315
- Thank you received: 14274
-
-

13 years 5 months ago [\#105155](#105155) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Adding a telephone field in product contact](/forum/4-how-to/35068-adding-a-telephone-field-in-product-contact#105155 "Hello I need to add a telphone field foe the contact form inside products. I know its the contact product file inside Views, but what is exactly the code to enter to ask the user for his/her telephone number? I know its something like this but I dont know what to enter in the ?? places. Can I just put &quot;Telephone&quot; in those places?        nput type=&quot;text&quot; name=&quot;data&#91;register&#93;&#91;??&#93;&quot; size=&quot;40&quot; value=&quot;escape(@$this-&gt;element-&gt;??);?&gt;&quot; /&gt;   ")*

The interface to edit emails in HikaShop is indeed only available in the Business edition.

You can potentially modify the email files via FTP in the folder media/com_hikashop/mail but you will loose your changes when you update unlike with the interface email edition method.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzM1MDY4LWFkZGluZy1hLXRlbGVwaG9uZS1maWVsZC1pbi1wcm9kdWN0LWNvbnRhY3Q/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.131 seconds

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

[](#top)
