Search by

homm / hommwarehouse

HOMMinteractive

Craft CMS warehouse field

Package info

github.com/HOMMinteractive/hommwarehouse

Documentation

Type:craft-plugin

pkg:composer/homm/hommwarehouse

Statistics

Installs: 81

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.6 2026-11-12 12:31 UTC

This package is auto-updated.

Last update: 2026-11-12 12:32:28 UTC


README

Craft CMS warehouse field type

This plugin adds a new warehouse field type

Screenshot

Requirements

This plugin requires Craft CMS 5.x.

Installation

To install the plugin, follow these instructions.

  1. Open your terminal and go to your Craft project:

     cd /path/to/project
    
  2. Then tell Composer to load the plugin:

     composer require homm/hommwarehouse
    
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for HOMM warehouse.

HOMM warehouse Overview

This plugin adds a new warehouse field type

Configuring HOMM warehouse

Go to Settings > HOMM Warehouse:

Here you can set if the plugin should be enabled/disabled.

When disabled, the warehouse fields stay in the field layouts (no data is lost), but they are hidden in the edit forms and the export is not available.

Configuration file

The settings can be overridden per environment in config/hommwarehouse.php. Values set there take precedence over the Control Panel setting, which stays the fallback for everything not set in the file.

Copy src/config.php to config/hommwarehouse.php as a starting point. It reads HOMMWAREHOUSE_ENABLED from the .env (only if filled) and lets you list further fields in hiddenFieldHandles, which are hidden together with the warehouse fields when the plugin is disabled.

Using HOMM warehouse (not done yet)

  1. Go to Settings > Fields and create a new field.
  2. Within the Field Type choose HOMM warehouse
  3. Assign the field to a section
  4. Now you can set an amount within your entries warehouse field

Basic usage in the template (Twig):

<!-- Retrieve the stock -->
<span>{{ entry.warehouseField.stock }}</span>

<!-- Retrieve the date on which the stock was last changed -->
<span>{{ entry.warehouseField.updatedAt }}</span>

HOMM warehouse Roadmap

Some things to do, and ideas for potential features:

  • Add twig variables

Brought to you by HOMM interactive