Skip to content

[READ ONLY] Subtree split of the AvailabilityAlert module.

License

Notifications You must be signed in to change notification settings

fond-of-oryx/availability-alert

Repository files navigation

Availability Module

PHP from Travis config license

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 %}

About

[READ ONLY] Subtree split of the AvailabilityAlert module.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages