Osclass Support Forums

Osclass theme support => Zara Osclass Responsive Theme => Topic started by: miyedos on April 01, 2016, 02:26:30 PM

Title: Hide Phone Number and/or seller name IF user is not logged in
Post by: miyedos on April 01, 2016, 02:26:30 PM
i searched almost all forum topics and only found below. using zara theme, can i apply this solution to zara?

the same for email address. Even user chosen 'show email address to public profile', want to hide again from not-logged in users.

http://forums.osclass.org/themes/hide-phone-number-name-if-user-is-not-logged-in-27849/msg115157/#msg115157

P.S: Im newbie not pro but i think there is a bug on seller page.

im on my own dashboard and still i can see `contact seller' button' ! is this correct way or a bug?

regards.
Title: Re: Hide Phone Number and/or seller name IF user is not logged in
Post by: MB Themes on April 01, 2016, 03:34:26 PM
@miyedos
Well I am not sure what are you asking on exactly. Showing "contact seller" button is correct also for non-logged users.
Title: Re: Hide Phone Number and/or seller name IF user is not logged in
Post by: miyedos on April 01, 2016, 03:36:26 PM
 separate issues:

1. how can i hide phone and/or mail address not logged-in users?

2. just a question: im on my dashboard and i can still see 'contact seller; button. is this correct way?
Title: Re: Hide Phone Number and/or seller name IF user is not logged in
Post by: MB Themes on April 01, 2016, 03:38:22 PM
@miyedos
1) You will place phone into <?php if(osc_is_web_user_logged_in()) {?> .... code / phone ... <?php } ?>
2) Yes it is, you can test if everything is ok
Title: Re: Hide Phone Number and/or seller name IF user is not logged in
Post by: miyedos on April 01, 2016, 03:40:58 PM
im newbie sorry.

where and full code please.

by the way, you have a great theme!
Title: Re: Hide Phone Number and/or seller name IF user is not logged in
Post by: MB Themes on April 02, 2016, 08:37:00 AM
@miyedos
Do not expect no full code, it is development.
You got instructions how to.
Title: Re: Hide Phone Number and/or seller name IF user is not logged in
Post by: Rishabh Sinha on September 11, 2021, 09:39:27 AM
hello there,

on product page. phone number hide for non register user. but other contact is displaying. where i have to change so that other contact also hide for non register user. i am using sigma themes.
Title: Re: Hide Phone Number and/or seller name IF user is not logged in
Post by: MB Themes on September 11, 2021, 01:13:47 PM
@Rishabh
Correct, as publisher was asked just to hide phone/email.
You can extend feature of hidding of mobile phone to hide also this field in item.php of theme (or item-sidebar.php)