Quote

We're also available for Custom Joomla Development

Hire us now

Contact map

Hi,I have install the Contact Map module,it is working ok but I have one questions regarding modification . I want to add three fields after the phone number with additional information (Bank account number , open time,etc).
Can you help me please.
Thank you in advance.
       
  •  
    Replied by admin on Saturday, December 12 2015, 02:55 AM · Hide· #1
    Hi, please open file /root/modules/mod_contactmap/mod_contactmap.xml

    at lines 198 - 202 you will see this code :

    <field name="phone"
            type="text"
            default=""
            label="MOD_CONTACTMAP_TELEPHONE_LABEL"
            description="MOD_CONTACTMAP_TELEPHONE_DESC" />


    change that to :
    <field name="phone"
            type="text"
            default=""
            label="MOD_CONTACTMAP_TELEPHONE_LABEL"
            description="MOD_CONTACTMAP_TELEPHONE_DESC" />
     <field name="bank"
            type="text"
            default=""
            label="Bank" />
     <field name="open_time"
            type="text"
            default=""
            label="Open Time"/>
     <field name="misc"
            type="text"
            default=""
            label="Misc" />


    then open file :
    root/modules/mod_contactmap/mod_contactmap.php

    at lines 36 you will see this code :
    $phone 					= $params->get('phone');


    change that to

    $phone 					= $params->get('phone');
    $bank 					= $params->get('bank');
    $open_time 					= $params->get('open_time');
    $misc 					= $params->get('misc');


    then open file :
    root/modules/mod_contactmap/tmpl/default.php at lines 258 you will see this code :
    <?php echo $s_address.$s_phone; ?>


    change that to
    <?php echo $s_address.$s_phone; ?>
    <li><?php echo $bank; ?></li>
    <li><?php echo $open_time; ?></li>
    <li><?php echo $misc; ?></li>
    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
Your Response
Please login first in order for you to submit comments