This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

Ashwathy Achu

  • ***
  • 54 posts
Keyboard Change
« on: July 01, 2018, 01:38:19 PM »
Multilanguage Attributes Plugin Phone number field how to change like this?

*

MB Themes

Re: Keyboard Change
« Reply #1 on: July 01, 2018, 02:35:33 PM »
Type of input must be "phone". Layout depends on browser and device.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Ashwathy Achu

  • ***
  • 54 posts
Re: Keyboard Change
« Reply #2 on: July 01, 2018, 06:43:23 PM »
How to change input type ? TEXT to TEL

*

MB Themes

Re: Keyboard Change
« Reply #3 on: July 02, 2018, 12:34:25 PM »
@Ashwathy
Select attribute field to be Phone number.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Ashwathy Achu

  • ***
  • 54 posts
Re: Keyboard Change
« Reply #4 on: July 02, 2018, 01:54:33 PM »
please understand my question

*

Ashwathy Achu

  • ***
  • 54 posts
Re: Keyboard Change
« Reply #5 on: July 02, 2018, 03:24:14 PM »
First input field -TEXT
second input field - TEL

I want Multilanguage Attributes Plugin Phone number field like second one

*

Ashwathy Achu

  • ***
  • 54 posts
Re: Keyboard Change
« Reply #6 on: July 02, 2018, 03:30:33 PM »
IMAGE 1 -   First input field -TEXT

IMAGE 2 -   First input field -TEL

Marked as best answer by frosticek on July 03, 2018, 12:16:07 PM
*

MB Themes

Re: Keyboard Change
« Reply #7 on: July 03, 2018, 12:15:04 PM »
in file:
/oc-content/plugins/attributes/functions.php

find line:
Code: [Select]
      } else if ($a['s_type'] == 'TEXT' || $a['s_type'] == 'PHONE' || $a['s_type'] == 'EMAIL' || $a['s_type'] == 'URL') {
        $html .= '<input type="' . strtolower($a['s_type']) . '" id="atr_' . $a['pk_i_id'] . '" name="atr_' . $a['pk_i_id'] . '" placeholder="' . atr_input_placeholder($a['s_type']) . '" value="' . $item_atr['s_value'] . '" ' . $required . '/>';


replace with:
Code: [Select]
     } else if ($a['s_type'] == 'TEXT' || $a['s_type'] == 'PHONE' || $a['s_type'] == 'EMAIL' || $a['s_type'] == 'URL') {
        $input_type = strtolower($a['s_type'] == 'PHONE' ? 'TEL' : $a['s_type']);
        $html .= '<input type="' . $input_type . '" id="atr_' . $a['pk_i_id'] . '" name="atr_' . $a['pk_i_id'] . '" placeholder="' . atr_input_placeholder($a['s_type']) . '" value="' . $item_atr['s_value'] . '" ' . $required . '/>';
« Last Edit: July 03, 2018, 12:16:50 PM by MB Themes »
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Ashwathy Achu

  • ***
  • 54 posts
Re: Keyboard Change
« Reply #8 on: July 03, 2018, 12:44:19 PM »
Not working

*

MB Themes

Re: Keyboard Change
« Reply #9 on: July 03, 2018, 01:26:31 PM »
After change, input type is "tel"
Code: [Select]
<div class="control-group atr-type-phone" id="atr-phone"><label class="control-label" for="atr6">Contact Phone</label><div class="controls"><input type="tel" id="atr_6" name="atr_6" placeholder="+" value=""></div></div>
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Ashwathy Achu

  • ***
  • 54 posts
Re: Keyboard Change
« Reply #10 on: July 03, 2018, 05:01:03 PM »
Where to add

*

MB Themes

Re: Keyboard Change
« Reply #11 on: July 03, 2018, 05:10:57 PM »
If you ask such question, you've probably have not followed guide I've sent you.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Ashwathy Achu

  • ***
  • 54 posts
Re: Keyboard Change
« Reply #12 on: July 03, 2018, 06:39:15 PM »

*

MB Themes

Re: Keyboard Change
« Reply #13 on: July 03, 2018, 08:22:01 PM »
Yes and if you select attribute of type phone, it will have input type tel.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Ashwathy Achu

  • ***
  • 54 posts
Re: Keyboard Change
« Reply #14 on: July 03, 2018, 08:36:19 PM »
After change, input type is "tel"
Code: [Select]
<div class="control-group atr-type-phone" id="atr-phone"><label class="control-label" for="atr6">Contact Phone</label><div class="controls"><input type="tel" id="atr_6" name="atr_6" placeholder="+" value=""></div></div>

First where to add this code