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

kriskoyk

  • *****
  • 285 posts
Business page url
« on: March 25, 2021, 07:43:17 PM »
How can the form of page address that a company acquires when creating a business profile change? That is to say in this format: www.domain.com/demo.

*

MB Themes

Re: Business page url
« Reply #1 on: March 25, 2021, 08:33:38 PM »
You can change routes in index.php
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

kriskoyk

  • *****
  • 285 posts
Re: Business page url
« Reply #2 on: March 26, 2021, 03:56:04 PM »
Can you give an example?

*

MB Themes

Re: Business page url
« Reply #3 on: March 26, 2021, 06:04:34 PM »
Check osc_add_route function, check routers documentation and do testing.
You should have no problems with that.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

kriskoyk

  • *****
  • 285 posts
Re: Business page url
« Reply #4 on: March 27, 2021, 12:02:46 AM »
Can you write the code setting you have in this demo of your own? (https://plugins2.abprofitrade.eu/company/demo)

*

MB Themes

Re: Business page url
« Reply #5 on: March 29, 2021, 11:38:04 AM »
@kriskoyk
Is it same as in plugin itself.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

kriskoyk

  • *****
  • 285 posts
Re: Business page url
« Reply #6 on: March 29, 2021, 12:20:35 PM »
Yes, but in your demo it appears differently

*

kriskoyk

  • *****
  • 285 posts
Re: Business page url
« Reply #7 on: March 31, 2021, 06:31:43 PM »
This is the code. What do I need to change?

osc_add_route('bpr-list', 'companies', 'companies', osc_plugin_folder(__FILE__).'form/home.php', false, 'bpr', 'home');
osc_add_route('bpr-list-filter', 'browse-companies/(.+)', 'browse-companies/{iPage}', osc_plugin_folder(__FILE__).'form/home.php', false, 'bpr', 'home');
osc_add_route('bpr-seller', 'company/(.+)', 'company/{identifier}', osc_plugin_folder(__FILE__).'form/seller.php', false, 'bpr', 'seller');
osc_add_route('bpr-seller-filter', 'company-filter/(.+)/(.+)', 'company-filter/{identifier}/{params}', osc_plugin_folder(__FILE__).'form/seller.php', false, 'bpr', 'seller');
osc_add_route('bpr-profile', 'user/business-profile', 'user/business-profile', osc_plugin_folder(__FILE__).'user/profile.php', true, 'bpr', 'profile');

*

MB Themes

Re: Business page url
« Reply #8 on: March 31, 2021, 06:38:37 PM »
Change 'companies' to whatever you want, but you have probably not checked docs at all if you ask this question...
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

kriskoyk

  • *****
  • 285 posts
Re: Business page url
« Reply #9 on: March 31, 2021, 07:03:20 PM »
I did too many tests, but they did not succeed.

What should i write so that the address does not look like this: domain/index.php?page=custom&route=bpr-list

but like this: domain/companies

and like this: domain/company/demo1

Marked as best answer by frosticek on April 01, 2021, 07:46:51 PM
*

kriskoyk

  • *****
  • 285 posts
Re: Business page url
« Reply #10 on: April 01, 2021, 01:26:57 AM »
Problem solved!
No interference is needed in the Intex.php file.
I just activated permanent links and everything works perfectly!
Thanks for the help.

*

harry

  • **
  • 12 posts
Re: Business page url
« Reply #11 on: April 02, 2021, 05:53:43 PM »

How to translate companies different language ?

Thanks
Always Forward!

*

MB Themes

Re: Business page url
« Reply #12 on: April 02, 2021, 05:59:28 PM »
Urls created via routes cannot be translated, especially keywords in it
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Marius

  • ***
  • 89 posts
Re: Business page url
« Reply #13 on: September 11, 2021, 03:18:35 PM »
you can help me too?
to me it does not appear in permanent links
how do they make it there?
thanks

*

MB Themes

Re: Business page url
« Reply #14 on: September 11, 2021, 05:04:32 PM »
This is the code. What do I need to change?

osc_add_route('bpr-list', 'companies', 'companies', osc_plugin_folder(__FILE__).'form/home.php', false, 'bpr', 'home');
osc_add_route('bpr-list-filter', 'browse-companies/(.+)', 'browse-companies/{iPage}', osc_plugin_folder(__FILE__).'form/home.php', false, 'bpr', 'home');
osc_add_route('bpr-seller', 'company/(.+)', 'company/{identifier}', osc_plugin_folder(__FILE__).'form/seller.php', false, 'bpr', 'seller');
osc_add_route('bpr-seller-filter', 'company-filter/(.+)/(.+)', 'company-filter/{identifier}/{params}', osc_plugin_folder(__FILE__).'form/seller.php', false, 'bpr', 'seller');
osc_add_route('bpr-profile', 'user/business-profile', 'user/business-profile', osc_plugin_folder(__FILE__).'user/profile.php', true, 'bpr', 'profile');

You can find it in index.php of plugin.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots