Loading


Advertisement:

Author Topic: Telephone plugin - tel numbers display on listing home page item page  (Read 235 times)

webhostpune

  • Newbie
  • *
  • Posts: 9
  • Ajit Sahane
Hi friends, many osclass users want to show telephone numbers on home page, search listing page, category page with grid & list view mode.

so how is it possible ..? 

i am make some customization in telephone plugin and it's finally success.  just 1 small issue not solved yet [Premium Ads Telephone NO not display - Free Ads work perfectly ] so  i am sharing here all process and want remain unsolved development. so hope anyone can find out solution pls reply here. 

1st step - download telephone plugin from here --  https://market.osclass.org/plugins/attributes/telephone-plugin_507

2nd step - install

3rd step -  customization code  --  >   you can check here how we implement on our live site # http://www.bestclassifiedsusa.com

Mobile No Display on Home Page / item page / category page / search list-grid view


1)  install telephone plugin -

2) Add phone field for inserting code into database  - item-post.php  --->  page

anywhere you want to show this field add this line - users can submit telephone number here which we display on site with tel:

 <div class="form-group">
                 <label class="control-label" for="contactName" style="margin-left:15px;">
                  <?php if(function_exists('osc_set_telephone_number'))  { osc_set_telephone_number();} ?>
                     </label>
            </div>


3) open plugin folder --> telephone ---->  index.php  ---  replace this   near by 101 number lines

from

old --->
<div style="display:block;margin-bottom:5px;" class="phone_telephone"><?php _e('Phone', 'telephone'); ?>: <?php echo $detail['s_telephone']; ?></div> 

 to

new --->
<div style="display:block;margin-bottom:5px; font-size:20px; color:#ff4500;" class="phone_telephone"><?php _e('Call', 'telephone'); ?> : <a href="tel:<?php echo $detail['s_telephone']; ?>"><?php echo $detail['s_telephone']; ?></a></div>


4) open - theme folder

# loop-list.php  -  near by 66 number lines  -   add --> home page

<span> <strong> <?php if(function_exists('osc_telephone_number')) { osc_telephone_number();} ?></strong> </span>


# loop-grid.php   - near by 60 number lines

<span class="currency-value"> <?php echo osc_format_price(osc_item_price()); ?></span> <span> <strong><?php if(function_exists('osc_telephone_number')) { osc_telephone_number();} ?></strong> </span>



#   loop-search-list.php     ---->   near by 185  number lines

 <span class="currency-value"> <?php echo osc_format_price(osc_item_price()); ?></span>
<span> <strong><?php if(function_exists('osc_telephone_number')) { osc_telephone_number();} ?></strong> </span>


#  loop-search-grid.php  ----  near by 173 number lines


   <span class="currency-value"><?php echo osc_format_price(osc_item_price()); ?></span> <span> <strong><?php if(function_exists('osc_telephone_number')) { osc_telephone_number();} ?></strong> </span>


# item.php   --- >  near by 83 number lines


  <li>
          <ul id="item_location">
            <li><i class="fa fa-map-marker"></i> <?php echo implode(', ', $location); ?></li>
          </ul>
        </li>
        <span> <strong><?php if(function_exists('osc_telephone_number')) { osc_telephone_number();} ?></strong> </span>

if any issues kindly contact us - info@webhostpune.com  or WhatsApp - +91 9762105756