Magento 2 Sample Product
Installation and User Guide for Magento 2 Sample Product extension
Table of Contents
- Installation
- Installation via app/code
- Installation via Composer
- Configuration Settings for Sample Product
- General Settings
- 360 view settings
- How to Set a Default Sample Product
- Set a Simple product from the Catalog Product Section
- Autocoupon is not valid for Sample product
Installation
- Installation via app/code: Upload the content of the module to your root folder. This will not overwrite the existing Magento folder or files, only the new contents will be added. After the successful upload of the package, run below commands on Magento 2 root directory.
php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento setup:static-content:deploy - Installation via Composer: Please follow the guide provided in the below link to complete the installation via composer.
[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
- Enabled – Select "Yes" or "No" to enable or disable the module.
- License Key – Please add the license for the extension which is provided in the order confirmation email. Please note license keys are site URL specific. If you require license keys for dev/staging sites then please email us at support@scommerce-mage.com.
Sample Product Settings
- Enabled – Select "Yes" or "No" to enable or disable the module.
- License Key – Please add the license for the extension which is provided in the order confirmation email. Please note license keys are site URL specific. If you require license keys for dev/staging sites then please email us at support@scommerce-mage.com.
- Default Free Sample Text – Please add the Default Free Sample Text
- Default Sample with Cost Associated Text – Please add the Default Sample with Cost Associated Text
- Default Sample Price with Cost Associated - Please add the Default simple price with cost associated
- Default Max Qty to order samples - Please add the Default max qty to order samples
How to Set a Default Sample product
Login to the Admin Panel, navigate to Catalog > Products, and select the product you want to edit. Click Edit, then scroll down to the Sample Product section. From the Sample Type dropdown, choose Free Sample. On the frontend product page, the default quantity is set to 3, allowing the product to be added to the cart.
Set a Simple product from the Catalog Products section
Login to the Admin Panel, go to Catalog > Products, and select the product you want to edit. Click Edit, then scroll down to the Sample Product section. From the Sample Type dropdown, choose Sample with cost associated. Set the Sample Price to 10, the Sample Product Max Qty to 5, and enter Sample Product Text in the text field.
Autocoupon is not valid for Sample Product
Login to the Admin Panel, navigate to Marketing > Cart Price Rules, and create a coupon code named “testcode”. When applied on the cart page, this coupon should not be valid for Sample products.
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.









