homm/hommwarehouse

Craft CMS warehouse field

0.0.3 2025-01-23 12:45 UTC

This package is not auto-updated.

Last update: 2025-04-03 13:44:23 UTC


README

Craft CMS warehouse field type

This plugin adds a new warehouse field type

Screenshot

Requirements

This plugin requires Craft CMS 4.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.

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