Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum
Welcome, Guest

How do I get the contact module to show more?
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: How do I get the contact module to show more?

How do I get the contact module to show more? 10 years, 10 months ago #10954

  • ppirates
  • OFFLINE
  • Single Product
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
Hi,

How do I get the contact module to show mobile number and address in the UK format of

Address 1
Address2
Town
county
Postcode

Thanks
Colin

Re: How do I get the contact module to show more? 10 years, 10 months ago #10970

  • SA Thuy
Dear Colin Thomas,

Please go to your_site\modules\mod_sj_contact_ajax\tmpl\default.php and find:

<div class="el-info-contact">
					<?php $address = trim($list->address);
					if($address != '') {
					?>
					<div class="info-address cf">
						<i class="icon-map-marker"></i>
						<span class="info-label" data-label="<?php echo JText::_('ADD_LABEL') ?>">: <?php echo $address; ?></span>
					</div>
					<?php }
						$mobile = trim($list->telephone);
					if($mobile != '' ){		
					?>
					<div class="info-mobie cf">
						<i class="icon-mobile-phone"></i>
						<span class="info-label" data-label="<?php echo JText::_('TEL_LABEL') ?>">: <?php echo $mobile; ?></span>
					</div>
					<?php }
					$mail_to = trim($list->email_to);
					if($mail_to != '' ){
					?>
					<div class="info-mail cf">
						<i class="icon-envelope-alt"></i>
						<a href="mailto:<?php echo $mail_to; ?>" class="info-label" data-label="<?php echo JText::_('MAIL_LABEL') ?>">: <?php echo $mail_to; ?></a>
					</div>
					<?php } ?>
</div>


=>
<div class="el-info-contact">
					<?php $address = trim($list->address);
					$city=trim($list->suburb);
					$state=trim($list->state);
					$country=trim($list->country);
					$postcode=trim($list->postcode);
					if($address != '' || $city !='' || $state !='' || $country !='' || $postcode !='') {
					?>
					<div class="info-address cf">
						<i class="icon-map-marker"></i>
						<?php if ($address != '') { ?>
						<span class="info-label" data-label="<?php echo JText::_('ADD_LABEL') ?>">: <?php echo $address; ?></span>
						<?php } 
							if($city != '') { ?>
						<span class="info-label" data-label="<?php echo JText::_('City/Suburb') ?>">: <?php echo $city; ?></span>
						<?php }
							if($state != '') { ?>
						<span class="info-label" data-label="<?php echo JText::_('State/Province') ?>">: <?php echo $state; ?></span>
						<?php }
							if($country != '') { ?>
						<span class="info-label" data-label="<?php echo JText::_('Country') ?>">: <?php echo $country; ?></span>
						<?php }
							if($postcode != '') { ?>
						<span class="info-label" data-label="<?php echo JText::_('Postcode') ?>">: <?php echo $postcode; ?></span>
						<?php } ?>
					</div>
					<?php }
						$mobile = trim($list->telephone);
						$phone_number=trim($list->mobile);
					if($mobile != '' || $phone_number != ''){		
					?>
					<div class="info-mobie cf">
						<i class="icon-mobile-phone"></i>
						<?php if($mobile != ''){ ?>
						<span class="info-label" data-label="<?php echo JText::_('TEL_LABEL') ?>">: <?php echo $mobile; ?></span>
						<?php } ?>
						<?php if($phone_number != ''){ ?>
						<span class="info-label" data-label="<?php echo JText::_('Mobile') ?>">: <?php echo $phone_number; ?></span>
						<?php } ?>
					</div>
					<?php }
					$mail_to = trim($list->email_to);
					if($mail_to != '' ){
					?>
					<div class="info-mail cf">
						<i class="icon-envelope-alt"></i>
						<a href="mailto:<?php echo $mail_to; ?>" class="info-label" data-label="<?php echo JText::_('MAIL_LABEL') ?>">: <?php echo $mail_to; ?></a>
					</div>
					<?php } ?>
		</div>


Then go to your_site/modules/mod_sj_contact_ajax/assets/css/styles.css and find:
.contact-ajax .ctajax-element .el-info-contact .info-address .info-label {
    line-height: 31px;
}

=>
.contact-ajax .ctajax-element .el-info-contact .info-address .info-label {
    line-height: 31px;
    margin-left: 45px;
}

and:
.contact-ajax .ctajax-element .el-info-contact .info-mobie .info-label {
    line-height: 35px;
}

=>
.contact-ajax .ctajax-element .el-info-contact .info-mobie .info-label {
    line-height: 35px;
    margin-left: 45px;
}


Thanks
  • Page:
  • 1
Time to create page: 0.26 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Home Pricing
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
SearchSupport
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes