# Product Pack

> Create product bundles with quantity-based discounts for Magento 2 — Hyvä compatible

The Product Pack module lets merchants create packages containing multiple quantities of the same product with automatic pricing and optional discounts. Think "Buy 3, save 10%" or "Pack of 6 — €5 off" — common in B2B, wholesale, and FMCG stores.

Unlike Magento's built-in bundle products (which combine different products), Product Pack focuses on quantity-based packaging of a single product with flexible discount options. The interface is intentionally simple — no complex configuration, just product, quantity, and discount.

**GitHub:** [qoliber/m2-product-pack](https://github.com/qoliber/m2-product-pack)

## Installation

```bash
composer require qoliber/module-product-pack
bin/magento setup:upgrade
```

## Features

- **Package creation** — Create packages containing any quantity of a simple product
- **Automatic pricing** — Package price calculated from base product price × quantity, minus discount
- **Discount types:**
  - **Fixed amount** — e.g. "€5 off when you buy a 6-pack"
  - **Percentage** — e.g. "10% off when you buy a 3-pack"
- **Hyvä compatible** — Works out of the box with the Hyvä theme framework
- **Intuitive admin UI** — Simple interface for creating and managing packs

<Admonition type="info" title="Simple Products Only">
Product Pack works exclusively with simple products. Configurable, grouped, bundle, and virtual products are not supported. If you need to bundle different products together, use Magento's native bundle product type.
</Admonition>

## Example

A store selling coffee beans could create:
- **250g bag** — Base product at €8.00
- **3-pack (750g)** — €22.50 (save 6%)
- **6-pack (1.5kg)** — €42.00 (save 12%)

Each pack appears as a purchasable option on the product page with the savings clearly displayed.
