Magento 2 Sample Product

Installation and User Guide for Magento 2 Sample Product extension

Table of Contents

  1. Installation
    • Installation via app/code
    • Installation via Composer
  2. Configuration Settings for Sample Product
    • General Settings
    • Sample Product Settings
  3. Configure a Sample Product
    • Free Sample
    • Sample with Cost Associated
  4. Sample products are not Eligible for Coupon Discounts
    • Coupon Code Validation for Free Sample Product
    • Coupon Code Validation for Sample with Cost Associated product
  5. Email Received for a Sample Product

Installation

https://docs.scommerce-mage.com/magento-2-extensions/installation-via-composer/installation-via-composer

Configuration Settings for Sample Product

Go to Admin > Stores > Configuration > Scommerce Configuration > Sample Product

General Settings

image (52).png

Sample Product Settings

image.png

Configure a Sample product

Log in to the Admin Panel and navigate to Catalog → Products. Select the product you want to edit and click Edit. Scroll down to the Sample Product section and choose Free Sample from the Sample Type dropdown.

1. When the fields are empty

If all fields are left blank, the system will use the default configuration values.
On the frontend product page:

image.png

image.png

image.png

2. When the fields have values set

If any fields in the Sample Product section contain values, those product‑level values override the defaults and are used on the frontend.

image.png

image.png

image.png

image.png

Log in to the Admin Panel and go to Catalog → Products. Open the product you want to update by clicking Edit. Scroll down to the Sample Product section.

From the Sample Type dropdown, select Sample with Cost Associated.

image.png

image.png

image.png

image.png

image.png

image.png

image.png

Sample Products are not Eligible for Coupon Discounts

Log in to the Admin Panel and go to Marketing → Cart Price Rules. Create a new coupon code, for example “testcode”. When you apply this coupon on the frontend for the sample products, it should display a validation error, even if the code itself is valid, because coupon codes are not meant to work for sample products

image.png

image.png

We’ve created a coupon code called “testcode” in the Admin Panel. This code works normally for regular products, but it won’t apply to the Sample product (e.g. 24‑WB07). When a customer tries to use the coupon code for the sample products, the system will show a validation message saying the code isn’t valid.

image.png

nzbimage_1.png

 

Email Received for a Sample Product

MicrosoftTeams-image (1).png

If you have a question related to this extension please check out our FAQ Section first. If you can't find the answer you are looking for then please contact support@scommerce-mage.com.


Revision #31
Created 16 January 2026 07:58:05 by scommerce
Updated 6 February 2026 18:58:36 by scommerce