*

Locan

  • ***
  • 166 posts
Re: New functions that can be used for integration of Business Profile Plugin
« Reply #15 on: September 11, 2018, 04:06:58 PM »
 :'( :'( :'( :'(

*

MB Themes

Re: New functions that can be used for integration of Business Profile Plugin
« Reply #16 on: September 11, 2018, 04:11:16 PM »
@Locan
Code: [Select]
if(bpr_get_type($user_id) == 1) { echo 'Basic' ; }
if(bpr_get_type($user_id) == 2) { echo 'Pro' ; }
if(bpr_get_type($user_id) == 3) { echo 'VIP' ; }

Next time rather look for developer.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Locan

  • ***
  • 166 posts
Re: New functions that can be used for integration of Business Profile Plugin
« Reply #17 on: September 11, 2018, 05:07:51 PM »
Quote
<div class="item-bpr-type item-bpr-type-<?php echo bpr_get_type($user_id = osc_item_user_id()); ?>">
                  <?php
                  $user_id = osc_item_user_id();
                 if(bpr_get_type($user_id) == 1) { echo 'Basic' ; }
                if(bpr_get_type($user_id) == 2) { echo 'Pro' ; }
                if(bpr_get_type($user_id) == 3) { echo 'VIP' ; }
                ?>
                </div>

thank you for your help

*

Lopetoms

  • ***
  • 119 posts
  • HOla como estan
Ariel

*

Tiger

  • **
  • 55 posts
Re: New functions that can be used for integration of Business Profile Plugin
« Reply #19 on: October 10, 2018, 01:59:55 PM »
Quote
It is my recommendation
You plugin need this like orginal plugin

http://user-shop_plugin.osclassdemo.com/business (DEMO)
http://prntscr.com/l48y4y (screens)

http://user-shop_plugin.osclassdemo.com/shop-all-categories (DEMO CATEGORY)

http://user-shop_plugin.osclassdemo.com/shop-directory/ (DEMO SEARCH)

i think MB Themes plugin is better then original osclass

*

Lopetoms

  • ***
  • 119 posts
  • HOla como estan
Re: New functions that can be used for integration of Business Profile Plugin
« Reply #20 on: October 11, 2018, 07:10:08 AM »
yes
Ariel

*

siken

  • ***
  • 122 posts
Re: New functions that can be used for integration of Business Profile Plugin
« Reply #21 on: December 14, 2018, 11:56:26 AM »
i want to show this business profile (bpr_show_companies() ) in slideshow like this website. can you inter grade it? which file locate this function bpr_show_companies() ?

How could you put the profiles on a carousel on the main.php cover?

someone has the code?

*

Fabio Massaro

  • ***
  • 173 posts
Hey all,
We will add in next update these functions that helps with further integration of themes:


bpr_get_type($user_id) - return user business type ID (1 - Basic, 2 - Pro, 3 - VIP)
bpr_is_business($user_id) - return true if user has valid business profile, otherwise return false
bpr_show_companies() - show list of companies anywhere



Hi, you can explain better what they are for and where you have to enter these codes

*

Fabio Massaro

  • ***
  • 173 posts
Hey all,
We will add in next update these functions that helps with further integration of themes:


bpr_get_type($user_id) - return user business type ID (1 - Basic, 2 - Pro, 3 - VIP)
bpr_is_business($user_id) - return true if user has valid business profile, otherwise return false
bpr_show_companies() - show list of companies anywhere



Hi, you can explain better what they are for and where you have to enter these codes

I saw this code on a post where I have to enter it:

<div class = "item-bpr-type item-bpr-type - <? php echo bpr_get_type ($ user_id = osc_item_user_id ());?>">
                  <? php
                  $ user_id = osc_item_user_id ();
                 if (bpr_get_type ($ user_id) == 1) {echo 'Basic'; }
                if (bpr_get_type ($ user_id) == 2) {echo 'Pro'; }
                if (bpr_get_type ($ user_id) == 3) {echo 'VIP'; }
                ?>
                </div>


and what it is for ?????