Home Modules phyto_seasonal_availability

phyto_seasonal_availability

Mark products with dormancy or shipping windows, block purchase during incompatible months, and capture email leads with 'Notify me when in season'.

Plant Science v1.0 PrestaShop 8 Browse Source on GitHub ↗
modules/phyto_seasonal_availability/
Direct path in the repo → all PHP, SQL, templates, and assets
Open on GitHub ↗

Overview

Some plants shouldn’t be sold in certain months — too hot to ship in summer, dormant in winter. This module lets you mark which months a product is unavailable. When a customer visits during a blocked month, the “Add to Cart” button is hidden and an explanation appears, with an email capture for in-season notification.

Features

  • Per-product availability month selector (multi-select, e.g. March–October)
  • Automatic Add-to-Cart block when current month is outside the window
  • Custom “unavailable” message per product
  • “Notify me when in season” email subscriber capture
  • Admin subscriber list with bulk email capability

Hooks Registered

HookPurpose
displayProductButtonsSwaps Add-to-Cart for seasonal block message
displayAdminProductsExtraMonth range picker in product admin

Source Layout

PathPurpose
phyto_seasonal_availability.phpModule entry + hooks
classes/PhytoSeasonalSub.phpORM for email subscribers
sql/install.sqlCreates availability + subscriber tables
views/templates/hook/block.tplFront-end seasonal block widget
View Full Source ↗ ← Back to All Modules