PHPackages                             peachcode/sampleproduct - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. peachcode/sampleproduct

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

peachcode/sampleproduct
=======================

This Magento 2 module allows your e-shop conduct sale and management of product samples, enabling customers to try your products before making a purchase.

421PHP

Since May 4Pushed 2y ago1 watchersCompare

[ Source](https://github.com/anatoliidolia/ProductSampler)[ Packagist](https://packagist.org/packages/peachcode/sampleproduct)[ RSS](/packages/peachcode-sampleproduct/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Product Sampler Module for Magento 2
====================================

[](#product-sampler-module-for-magento-2)

This Magento 2 module allows your e-shop conduct sale and management of product samples, enabling customers to try your products before making a purchase.

Key Features:
-------------

[](#key-features)

### Adding Product Samples to Cart

[](#adding-product-samples-to-cart)

Products can be flagged with a special attribute **is\_sample\_product** = true to become available as samples for customers. Customers can add a sample to their cart as a separate item. [![img_1.png](img_1.png)](img_1.png)

If a product has all the necessary configurations , a block like this will appear on the product page:

[![img.png](img.png)](img.png)

### Notification to Admin on Sample Orders

[](#notification-to-admin-on-sample-orders)

If a price is specified for a sample, the administrator receives a notification about the sample purchase with the specified price. If no price is specified, the administrator receives a notification without a price to track sample orders.

[![img_2.png](img_2.png)](img_2.png)

### Managing Sample Orders in User Account

[](#managing-sample-orders-in-user-account)

Users can view all their sample orders in their personal account with details about each order, including status and other information. [![img_3.png](img_3.png)](img_3.png)[![img_4.png](img_4.png)](img_4.png)

### Configuring Product Samples

[](#configuring-product-samples)

For each product sample, you can configure:

- The sample price.
- The **is\_sample\_product** attribute, which determines if the product is available as a sample.
- Maximum quantity of samples in one order.

### Admin Notifications and Order Management

[](#admin-notifications-and-order-management)

After placing an order, both the customer and administrator receive notifications with details about sample orders. The administrator can view and manage all sample orders through the Magento admin panel.

[![img_5.png](img_5.png)](img_5.png)[![img_6.png](img_6.png)](img_6.png)[![img_7.png](img_7.png)](img_7.png)

Installation and Usage Instructions:
------------------------------------

[](#installation-and-usage-instructions)

1. Installing the Module:

    - Copy the module files to the app/code directory of your Magento 2 installation.
    - OR **composer require peachcode/sampleproduct:dev-main**

- Run the command **php bin/magento setup:upgrade** to install the module.
- Run the command **php bin/magento setup:static-content:deploy** if necessary to update static resources.

2. Configuring Module Parameters:

    - Navigate to the Magento admin panel.
    - Configure prices and other parameters for each product sample.
    - Set the **is\_sample\_product** attribute for products that should be available as samples.
3. Using the Module by Customers:

    - Customers can add samples to their cart like any other product.
    - Customers can view their sample orders and their status in their personal account.
4. Admin Order Management:

    - Admins can view all sample orders in the Magento admin panel.
    - Admins receive notifications with details about new sample orders.

Support
-------

[](#support)

If you have any questions or issues with using the module, please contact the [module author](mailto:doliaanatolii@gmail.com) for additional assistance.

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/9dd37ad74c5667ebf18699c556aec277e7a36a9137f5180a51c35b6a256e04ef?d=identicon)[anatoliidolia](/maintainers/anatoliidolia)

---

Top Contributors

[![anatoliidolia](https://avatars.githubusercontent.com/u/57527178?v=4)](https://github.com/anatoliidolia "anatoliidolia (1 commits)")

---

Tags

magento-free-extensionmagento-salesmagento2magento2-extensionmagento2-modulemodule-magentosampler

### Embed Badge

![Health badge](/badges/peachcode-sampleproduct/health.svg)

```
[![Health](https://phpackages.com/badges/peachcode-sampleproduct/health.svg)](https://phpackages.com/packages/peachcode-sampleproduct)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
