fond-of-oryx/availability-alert

1.0.1 2021-05-11 15:43 UTC

This package is auto-updated.

Last update: 2021-09-26 10:52:26 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 %}