Adding a telephone field in product contact

  • Posts: 65
  • Thank you received: 0
12 years 9 months ago #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 "Telephone" in those places?
<tr>
<td class="key">
<label for="data[register][??]">
<?php echo JText::_( '??' ); ?>
</label>
</td>
<td>
<input type="text" name="data[register][??]" size="40" value="<?php echo $this->escape(@$this->element->??);?>" />
</td>
</tr>
<tr>

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

  • Posts: 82760
  • Thank you received: 13346
  • MODERATOR
12 years 9 months ago #35100

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->Custom fields (Business edition).

There is nothing else to do.

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

  • Posts: 65
  • Thank you received: 0
12 years 9 months ago #36187

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
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
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 or Create an account to join the conversation.

  • Posts: 82760
  • Thank you received: 13346
  • MODERATOR
12 years 9 months ago #36225

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 or Create an account to join the conversation.

  • Posts: 7
  • Thank you received: 0
12 years 5 months ago #52675

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 or Create an account to join the conversation.

  • Posts: 82760
  • Thank you received: 13346
  • MODERATOR
12 years 5 months ago #52771

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

With the latest version of HikaShop, the contact email is now editable via the menu System->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 or Create an account to join the conversation.

  • Posts: 22
  • Thank you received: 0
11 years 5 months ago #105036

nicolas wrote: You would have to edit the file "contact" of the view "product" via the menu Display->Views in order to add your additional input field:
<input type="text" name="my_field"/>

With the latest version of HikaShop, the contact email is now editable via the menu System->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 or Create an account to join the conversation.

  • Posts: 26151
  • Thank you received: 4027
  • MODERATOR
11 years 5 months ago #105105

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 & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 22
  • Thank you received: 0
11 years 5 months ago #105126

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

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

  • Posts: 82760
  • Thank you received: 13346
  • MODERATOR
11 years 5 months ago #105155

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 or Create an account to join the conversation.

Time to create page: 0.086 seconds
Powered by Kunena Forum