hi all ,
i have found a code to send sms directly from osclass mobile website to seller mobile number
but is possible to load pre text sms body ..for example if a person clicks on a sms button ..it should open sms with default text message (link of the page from where sms button was clicked) as many users in osclass are there who post multiple product items ..hence it would be useful for them to know that the sms has came for the particular product which is mentioned on the page with link in the sms body...the whle sms would be like - hi, is this product available - link.
below is the code:
<?php
$phone = '';
$detail = Modelphone::newInstance()->t_check_value(osc_item_id());
if (isset($detail['s_telephone'])) {
$phone = $detail['s_telephone'];
}
?>
<!-- SEND SMS BUTTON -->
<?php if (( osc_user_phone_land() == '' ) && ( osc_user_phone_mobile() == '' )) { ?>
<?php if(!empty($phone)){ ?>
<a href="sms:<?php echo $phone; ?>" class="btn btn-primary-custom col-xs-12"><i class="fa fa-phone-o"></i><strong> <?php _e('Text Owner') ; ?></strong></a>
<?php } ?>
<?php } else { ?>
<a href="sms:<?php echo osc_user_phone(); ?>" class="btn btn-primary-custom col-xs-12"><i class="fa fa-phone-o"></i><strong> <?php _e('Text Owner') ; ?></strong></a>
<?php } ?>
thanks in advance