fond-of-oryx/availability-alert

3.0.1 2023-01-27 07:07 UTC

This package is auto-updated.

Last update: 2023-02-01 15:58:55 UTC


README

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