# Magento2 Custom Options Discount

### <span style="color: #3b82f6;">Installation and User Guide for Magento 2 Custom Options Discount</span>

**Table of Contents**

1. [I*nstallation* ](#bkmrk-installation)
    - *Installation via app/code*
    - *Installation via Composer*
2. [*Configuration Settings for Custom options Discount* ](#bkmrk-configuration-settin)
    - *General Settings*
3. *[Adding Custom Options to Products](#bkmrk-adding-custom-option)*
4. [*Adding Cart Price Rules for Custom Options* ](#bkmrk-adding-cart-price-ru)
    - *Apply Cart Rule for all custom options available*
    - *Apply cart Rule for specific custom options*
5. [*Frontend Screengrabs* ](#bkmrk-frontend-screengrabs)
    - *When "only for selected custom options is set to "Yes"*
    - *When "only for selected custom options is set to "No"*
    - *When "only for selected custom options is set to "Yes" and Conditions are set*

### <span style="color: #3b82f6;">Installation</span> [](#bkmrk-)

- <span style="color: #f97316;">**Installation via app/code:**</span> 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
    php bin/magento setup:upgrade
    php bin/magento setup:di:compile
    php bin/magento setup:static-content:deploy
    ```
- <span style="color: #f97316;">**Installation via Composer:**</span> Please follow the guide provided in the below link to complete the installation via composer.

<p class="callout success">[https://docs.scommerce-mage.com/magento-2-extensions/installation-via-composer/installation-via-composer](https://docs.scommerce-mage.com/magento-2-extensions/installation-via-composer/installation-via-composer)</p>

### <span style="color: #3b82f6;">Configuration Settings for Custom options Discount</span> [](#bkmrk--1)

#### Go to Admin &gt; Stores &gt; Configuration &gt; Scommerce Configuration &gt; Custom options Discount

#### <span style="color: #f97316;">General Settings</span> [](#bkmrk--2)

- **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>.

[![image (43).png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/scaled-1680-/image-43.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/image-43.png)

### <span style="color: #3b82f6;">Adding Custom Options to Products</span> [](#bkmrk--4)

Login to your admin panel then go to **Catalog &gt; Products**. Select your product and click edit from the action column. Scroll down to Customizable options. Click on add option to add a new custom option for the selected product.

[![image (44).png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/scaled-1680-/image-44.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/image-44.png)

### <span style="color: #3b82f6;">Adding Cart Price Rules for Custom Options</span> [](#bkmrk--6)

Go to **Marketing &gt; Promotions &gt; Cart Price Rules** and click on Add New Rule.

[![image (45).png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/scaled-1680-/image-45.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/image-45.png)

#### <span style="color: #f97316;">Apply Cart Rule for all custom options available</span> [](#bkmrk--8)

Create your Cart Price Rule Normally. Then scroll down to **Actions** dropdown. Make sure **Only for selected Custom Option?** Is set to "Yes". This option will enable the cart price rule to be applied on the custom options. Make sure there are no conditions set.

[![image (26).jpg](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/scaled-1680-/Af8image-26.jpg)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/Af8image-26.jpg)

#### <span style="color: #f97316;">Apply cart Rule for specific custom options</span> [](#bkmrk--10)

To create cart price rule for specific custom options you will need to add conditions in the Actions Column. For eg: - we have added a condition to apply discount only on the custom option that has custom options title as "Gift Wrap". So now the discount will only be available for the Gift wrap custom option. Similarly, you can create conditions based on custom options SKU and create your custom options discount.

[![image (27).jpg](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/scaled-1680-/UPsimage-27.jpg)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/UPsimage-27.jpg)

Conditions available for custom options are custom options title and custom options SKU.

[![image (26) (1).png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/scaled-1680-/image-26-1.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/image-26-1.png)

### <span style="color: #3b82f6;">Frontend Screengrabs</span> [](#bkmrk--13)

#### <span style="color: #f97316;">When "only for selected custom options is set to "Yes"</span> [](#bkmrk--14)

<span style="color: #f97316;">[![image (46).png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/scaled-1680-/image-46.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/image-46.png)</span>

#### <span style="color: #f97316;">When "only for selected custom options is set to "No"</span> [](#bkmrk--16)

<span style="color: #f97316;">[![image (47).png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/scaled-1680-/image-47.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/image-47.png)</span>

#### <span style="color: #f97316;">When "only for selected custom options is set to "Yes" and Conditions are set</span> [](#bkmrk--18)

<span style="color: #f97316;">[![image (48).png](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/scaled-1680-/image-48.png)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-05/image-48.png)</span>

If you have a question related to this extension please check out our [**FAQ Section**](https://www.scommerce-mage.com/magento-2-custom-options-discount.html#customfaq) first. If you can't find the answer you are looking for then please contact [**support@scommerce-mage.com**](mailto:core@scommerce-mage.com)**.**