fond-of-oryx / availability-alert
n/a
Installs: 14 537
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=8.0
- fond-of-oryx/availability-alert-extension: ^1.0.0 || ^2.0.0
- spryker/availability: ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0
- spryker/locale: ^2.2.0 || ^3.0.0 || ^4.0.0
- spryker/mail: ^4.0.0
- spryker/product: ^5.0.0 || ^6.0.0
- spryker/router: ^1.1.0
- spryker/store: ^1.2.0
- spryker/zed-request: ^3.3.0
Requires (Dev)
README
Installation
composer require fond-of-oryx/availability-alert
Configuration
Register
- in src/Pyz/Yves/ShopApplication/ShopApplicationDependencyProvider.php => AvailabilityAlertFormWidget::class
/**
* @return string[]
*/
protected function getGlobalWidgets(): array
{
return [
...
AvailabilityAlertFormWidget::class,
];
}
- in src/Pyz/Yves/Router/RouterDependencyProvider.php => AvailabilityAlertControllerProviderPlugin
/**
* @return \Spryker\Yves\RouterExtension\Dependency\Plugin\RouteProviderPluginInterface[]
*/
protected function getRouteProvider(): array
{
return [
...
new AvailabilityAlertControllerProviderPlugin(),
];
}
Usage
Use widget in template
{% widget 'AvailabilityAlertFormWidget' args [data.product.idProductAbstract] %}{% endwidget %}