adapttive/module-catalog

Module for Magento2 provides the feature to manage the product release.

Fund package maintenance!
Patreon

Installs: 1

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 0

Open Issues: 2

Type:magento2-module

1.0.0 2021-03-06 15:07 UTC

This package is auto-updated.

Last update: 2024-04-12 05:41:31 UTC


README

Module for Magento 2 to manage catalog release by a pre-specified date.

Installation

  • Composer:

    • Require via composer:

      composer require adapttive/module-catalog
    • Run Magento commands:

        bin/magento setup:upgrade
        bin/magento setup:di:compile
  • Manual:

    • Extract the zip file in magento2-root/app/code/Adapttive/Catalog

    • Run Magento commands:

         bin/magento setup:upgrade
         bin/magento setup:di:compile

Usage

  • Update the Release Date Time attribute values in product edit form in the admin:

    edit form

  • Add the product in the cart will throw an error message:

    add to cart

  • Attribute display on product page:

    product page

Technical

  • ReleaseValidator is the common class to validate release date of product \Adapttive\Catalog\Model\ReleaseValidator::validate
  • ReleaseObserver is the validation trigger point for all cart requests \Adapttive\Catalog\Observer\ReleaseObserver::execute