How to display merchant portal on yves?
Hello everyone,
I want to display merchant portal url http://mp.de.spryker.local/ on yves in controller
$merchantPortalHost = Config::get(MerchantPortalConstants::BASE_URL_MP);
output is "http://"
please help me.
Comments
-
Hi, @pratiksha.lihinar !
The Merchant Portal URL is built from the environment variable
SPRYKER_MP_HOST.Since Merchant Portal URL is pure Back Office specific, we do not provide by default this value to the Yves container, thus the output you see is the correct one.
I can help you achieve desired result:
Locally, you have to update the config_default.php where there's a call to getenv('SPRYKER_MP_HOST'), and replace it with (getenv('SPRYKER_MP_HOST') ?: sprinf('mp.%s.spryker.local', strtolower(APPLICATION_STORE))).
In the Spryker PaaS+, you have to create a support ticket and ask to add this variable into the Yves container as well.
AndriyT
0 -
Thanks for replying!
updating config_default.php file and run
docker/sdk bootstrap deploy.dev.yml command then docker/sdk up but facing some issues can you please help me
0 -
the function is
sprintf, not sprinf0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 92 Spryker News
- 1K Developer Corner
- 855 Spryker Development
- 93 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 36 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 35 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 34 Product & Business Questions
- 70 Spryker Safari Questions
- 51 Random


