Hello Everyone
Newbie here hava a question
I'had install my osclass with Osclass Wizard and added a free telephone plugin on osclass market.
but i had been confused when solving my problem,
i want to Make the "Contact Seller" Button on Osclass Wizards can integrate with Telephone plugin and do automatic phone call (with href="tel"000) while clicking the button on mobile,
but, i had tried with href and it not worked and i just got like +62572829293829290202 and it's not the correct number on the listing.
here is my plugin code to call the phone number on the listing
<?php if(function_exists('osc_telephone_number')){ osc_telephone_number();} ?>
here is the code by default
<ul class="contact_button">
<li>
<?php if( !osc_item_is_expired () ) { ?>
<?php if( !( ( osc_logged_user_id() == osc_item_user_id() ) && osc_logged_user_id() != 0 ) ) { ?>
<?php if(osc_reg_user_can_contact() && osc_is_web_user_logged_in() || !osc_reg_user_can_contact() ) { ?>
<a href="#contact">
<?php _e('Contact seller', OSCLASSWIZARDS_THEME_FOLDER); ?>
</a>
<?php } ?>
<?php } ?>
<?php } ?>
</li>
And change it like this
<ul class="contact_button">
<li>
<?php if( !osc_item_is_expired () ) { ?>
<?php if( !( ( osc_logged_user_id() == osc_item_user_id() ) && osc_logged_user_id() != 0 ) ) { ?>
<?php if(osc_reg_user_can_contact() && osc_is_web_user_logged_in() || !osc_reg_user_can_contact() ) { ?>
<a href="tel:'osc_telephone_number'">
<?php _e('Contact seller', OSCLASSWIZARDS_THEME_FOLDER); ?>
</a>
<?php } ?>
<?php } ?>
<?php } ?>
</li>
But Not Worked, and change it like this
<ul class="contact_button">
<li>
<?php if( !osc_item_is_expired () ) { ?>
<?php if( !( ( osc_logged_user_id() == osc_item_user_id() ) && osc_logged_user_id() != 0 ) ) { ?>
<?php if(osc_reg_user_can_contact() && osc_is_web_user_logged_in() || !osc_reg_user_can_contact() ) { ?>
<a href="tel:<?php if(function_exists('osc_telephone_number')){ osc_telephone_number();} ?>">
<?php _e('Contact seller', OSCLASSWIZARDS_THEME_FOLDER); ?>
</a>
<?php } ?>
<?php } ?>
<?php } ?>
</li>
And it was be worse, the button crashed and not worked too
Please, Anyone help me