*

felixbmens

  • *
  • 2 posts
How to add seller's contact and shop link to sidebar
« on: January 14, 2021, 02:03:31 PM »
Please, how do I add seller's contact and business profile link to the sidebar just like the one in the picture I have attached.

*

MB Themes

Re: How to add seller's contact and shop link to sidebar
« Reply #1 on: January 14, 2021, 02:12:42 PM »
@felixbmens
There used to be osc_user_public_profile_url() function.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

felixbmens

  • *
  • 2 posts
Re: How to add seller's contact and shop link to sidebar
« Reply #2 on: January 14, 2021, 02:32:56 PM »
Please do you have it?

*

MB Themes

Re: How to add seller's contact and shop link to sidebar
« Reply #3 on: January 14, 2021, 03:03:33 PM »
@felixbmens
There used to be osc_user_public_profile_url() function.

It's already in core.
Code: [Select]
function osc_user_public_profile_url($id = null) {
        if($id==null) {
            $id = osc_user_id();
        }
        if ($id != '') {
            if ( osc_rewrite_enabled() ) {
                $user = User::newInstance()->findByPrimaryKey($id);
                $path = osc_base_url().osc_get_preference('rewrite_user_profile')."/".$user['s_username'];
            } else {
                $path = sprintf(osc_base_url(true) . '?page=user&action=pub_profile&id=%d', $id);
            }
        } else {
            $path = '';
        }
        return $path;
    }
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots