This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

reflexus

  • ****
  • 146 posts
[Bug] business profile url
« on: August 25, 2018, 03:01:28 AM »
1. If you update your company profile, then business profile url change sometimes to user name without user id and sometimes to username with user id.

2. What if two users have a one profile name? - Then urls are equal

« Last Edit: August 25, 2018, 03:06:00 AM by reflexus »

*

MB Themes

Re: [Bug] business profile url
« Reply #1 on: August 25, 2018, 01:21:42 PM »
@reflexus
Plugin checks if username already exists and if yes, ads user id after it to make it unique.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

reflexus

  • ****
  • 146 posts
Re: [Bug] business profile url
« Reply #2 on: August 25, 2018, 03:55:48 PM »
Und what is with the nummer 1?  This is bad, when it changes after update

*

MB Themes

Re: [Bug] business profile url
« Reply #3 on: August 25, 2018, 06:06:15 PM »
Do you mean after updating same profile?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

reflexus

  • ****
  • 146 posts
Re: [Bug] business profile url
« Reply #4 on: August 25, 2018, 07:48:13 PM »
Do you mean after updating same profile?

Yes

Marked as best answer by frosticek on August 25, 2018, 09:30:27 PM
*

MB Themes

Re: [Bug] business profile url
« Reply #5 on: August 25, 2018, 09:30:11 PM »
I've found issue.
In file:
oc-content/plugins/business_profile/model/ModelBPR.php

Find:
 
Code: [Select]
$this->dao->select('s_identifier');
Replace with:
 
Code: [Select]
$this->dao->select();

This will be applied in new version as well.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

reflexus

  • ****
  • 146 posts
Re: [Bug] business profile url
« Reply #6 on: August 26, 2018, 01:58:00 AM »
I've found issue.
In file:
oc-content/plugins/business_profile/model/ModelBPR.php

Find:
 
Code: [Select]
$this->dao->select('s_identifier');
Replace with:
 
Code: [Select]
$this->dao->select();

This will be applied in new version as well.

Thank you, it works! But i have found another issue, I make new thread

*

Lopetoms

  • *****
  • 250 posts
  • HOla como estan
Re: [Bug] business profile url
« Reply #7 on: August 27, 2018, 07:05:10 PM »
how change this (companies) in url for other example (shop) or (tienda) http://prntscr.com/knhm69
hostoki.com

*

reflexus

  • ****
  • 146 posts
Re: [Bug] business profile url
« Reply #8 on: August 28, 2018, 02:23:04 AM »
how change this (companies) in url for other example (shop) or (tienda) http://prntscr.com/knhm69

replace line 37 in /oc-content/plugins/business_profile/index.php

Code: [Select]
osc_add_route('bpr-list', 'companies', 'companies', osc_plugin_folder(__FILE__).'form/home.php', false, 'bpr', 'home');
with this:

Code: [Select]
osc_add_route('bpr-list', 'shop', 'shop', osc_plugin_folder(__FILE__).'form/home.php', false, 'bpr', 'home');
or

Code: [Select]
osc_add_route('bpr-list', 'tienda', 'tienda', osc_plugin_folder(__FILE__).'form/home.php', false, 'bpr', 'home');

*

Lopetoms

  • *****
  • 250 posts
  • HOla como estan
Re: [Bug] business profile url
« Reply #9 on: August 29, 2018, 05:33:39 PM »
how change this (companies) in url for other example (shop) or (tienda) http://prntscr.com/knhm69

replace line 37 in /oc-content/plugins/business_profile/index.php

Code: [Select]
osc_add_route('bpr-list', 'companies', 'companies', osc_plugin_folder(__FILE__).'form/home.php', false, 'bpr', 'home');
with this:

Code: [Select]
osc_add_route('bpr-list', 'shop', 'shop', osc_plugin_folder(__FILE__).'form/home.php', false, 'bpr', 'home');
or

Code: [Select]
osc_add_route('bpr-list', 'tienda', 'tienda', osc_plugin_folder(__FILE__).'form/home.php', false, 'bpr', 'home');

Thank oyu
hostoki.com