Install Dynamic Multistore + Customer Account Management feature
Edit on GitHubThis document describes how to install Dynamic Multistore + the Customer Account Management feature.
Install feature core
Prerequisites
Install the required features:
NAME | VERSION |
---|---|
Spryker Core | 202410.0 |
Customer Account Management | 202410.0 |
Set up configuration
Add the following configuration to your project:
| CONFIGURATION | SPECIFICATION | NAMESPACE | COMMENTS |
| — |––| — |
| CustomerConfig::getCustomerSequenceNumberPrefix()| Provides a prefix used during customer reference generation. If no prefix provided it will use current store name that can lead to issues in Dynamic Store setup | Pyz\Zed\Customer | See in src/Pyz/Zed/Customer/CustomerConfig.php
that follows. |
src/Pyz/Zed/Customer/CustomerConfig.php
<?php
namespace Pyz\Zed\Customer;
use Spryker\Zed\Customer\CustomerConfig as SprykerCustomerConfig;
class CustomerConfig extends SprykerCustomerConfig
{
/**
* {@inheritDoc}
*
* @return string|null
*/
public function getCustomerSequenceNumberPrefix(): ?string
{
return 'customer';
}
}
Verification
- Create a customer.
- On the Customers page, next to the created customer, click View.
- On the View Customer page, make sure that the Customer Reference contains the prefix you’ve configured.
Thank you!
For submitting the form