Go to file:
oc-content/themes/veronika/item.php
Find code:
<?php if($mobile <> __('No phone number', 'veronika')) { ?>
Replace it with:
<?php if(!osc_is_web_user_logged_in() && $mobile <> __('No phone number', 'veronika')) { ?>
$('.phone-show, .phone-block').attr('title', '<?php echo osc_esc_js(__('You must be logged in to show phone number', 'veronika')); ?>');
$('.phone-show, .phone-block').click(function(e){
e.preventDefault();
var mobile = "<?php echo osc_esc_html(__('You must be logged in to show phone number', 'veronika')); ?>";
if($('.phone-block').attr('href') == '#') {
$('.phone-block, .phone-show').addClass('shown');
$('.phone-block span').text(mobile).css('font-weight', 'bold');
$('.phone-show').remove()
return false;
}
<?php } else if($mobile <> __('No phone number', 'veronika')) { ?>