fond-of-oryx/availability-alert

4.1.0 2023-05-02 11:12 UTC

This package is auto-updated.

Last update: 2024-12-06 10:26:07 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 %}