Install the Customer Account Management feature + Dynamic Multistore
Edit on GitHubDynamic Multistore is currently running under an Early Access Release. Early Access Releases are subject to specific legal terms, they are unsupported and do not provide production-ready SLAs. They can also be deprecated without a General Availability Release. Nevertheless, we welcome feedback from early adopters on these cutting-edge, exploratory features.
This document describes how to install Dynamic Multistore + the Customer Account Management feature.
Install feature core
Prerequisites
Install the required features:
NAME | VERSION |
---|---|
Spryker Core | 202311.0 |
Customer Account Management | 202311.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';
}
}
- 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