Install Dynamic Multistore + Availability Notification feature
Edit on GitHubThis document describes how to install Dynamic Multistore + the Availability Notification feature.
Install feature core
Prerequisites
Install the required features:
NAME | VERSION |
---|---|
Spryker Core | 202410.0 |
Availability Notification | 202410.0 |
Set up configuration
Add the following configuration to your project:
CONFIGURATION | SPECIFICATION | NAMESPACE | COMMENTS |
---|---|---|---|
AvailabilityNotificationConstants::REGION_TO_YVES_HOST_MAPPING | Defines regions to Yves host mapping. | Spryker\Shared\AvailabilityNotification | See in config/Shared/config_default.php that follows. |
config/Shared/config_default.php
<?php
use Spryker\Shared\AvailabilityNotification\AvailabilityNotificationConstants;
$config[AvailabilityNotificationConstants::REGION_TO_YVES_HOST_MAPPING] = [
'EU' => getenv('SPRYKER_YVES_HOST_EU'),
'US' => getenv('SPRYKER_YVES_HOST_US'),
];
Verification
To verify the email links are correct, make sure that the following configuration is correct:
- Add a new product and make it unavailable.
- As a customer, subscribe to the product’s availability notifications on the Storefront.
- Make the product available.
- In your mailbox, open the email about the product’s availability.
- Check if the link to the product opens the correct Product Details page. The link should have the correct hostname.
Thank you!
For submitting the form