*

ALSK

  • **
  • 8 posts
Adding multiple phone numbers when post an item
« on: April 29, 2022, 04:46:20 PM »
Hi all,

Mainly only one phone number field is available when published a listing. But let's say the user need to publish a couple of phone number to contact him. Is there any plugin or method to accomplish this? I did this, but it's a long process by making changes in the DB as well as in theme pages such as post/edit/item. Like to know a short and sweet method from an expert.  :)

Thanks..

*

MB Themes

Re: Adding multiple phone numbers when post an item
« Reply #1 on: April 30, 2022, 08:16:33 AM »
Easiest way is to simply extend length of db field for ohone and then simply tell customers to enter multiple ohones delimited by comma (alternativelly, JS solution could merge data from multiple inouts into one).
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

ALSK

  • **
  • 8 posts
Re: Adding multiple phone numbers when post an item
« Reply #2 on: May 16, 2022, 09:13:56 PM »
If I used couple of phone input fields as below, can you please advise me as where should I use implode(";",$_post['Exphone']) to pass below inputs as an array..

<label for="extraphone">Extra Phone 1:</label>
<input type="tel" id="Exphone" name="Exphone[]" value=""/><br>

<label for="extraphone">Extra Phone 2:</label>
<input type="tel" id="Exphone" name="Exphone[]" value=""/><br>

<label for="extraphone">Extra Phone 3:</label>
<input type="tel" id="Exphone" name="Exphone[]" value=""/><br>

Thanks..

*

MB Themes

Re: Adding multiple phone numbers when post an item
« Reply #3 on: May 17, 2022, 03:34:15 PM »
You need to find correct filter to be used (hook could work as well).
Or create javascript that populayes hidden contact phone input based on your new fields.
Both should work.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots