How to create a fee that will be applied to certain products only?

How to create a fee that will be applied to certain products only?

The Extra Fee extension allows creating a fee for mixed carts that will be applied to specific products in the cart only. To create such a fee, please go to Magento Admin Panel > Amasty Extensions > Extra Fee > Fees and create a fee with the value that you require. Here you can find an example both for a fixed fee and for a percent fee.
      

To define the products that fall under the fee, please go to the Calculation tab inside your fee, then proceed to the Fee Calculation Applicability section and select Apply Fees for - Each Product In the Cart. You can use the conditions tree to select a product attribute you'll be using to list the products. In this case, we're defining Category 4 (Bags).


     
Here you can see how the fees are applied to a mixed cart:



Even though this cart contains both Bags and Watches, the fee is applied to Bags only. Let's review each fee type separately:

1. Fixed surcharge per unit (Fixed fee type in backend settings). As we set it to be $12, it is multiplied by the number of units that correspond to the conditions in the Calculation tab. We have 3 Bags in the cart, so the final fee amount is $12*3 = $36;

2. Percent surcharge (Percent fee type). Again, the system locates all items that fall under the category condition we defined in the 'Calculation' tab, and calculates percentage from their subtotal. Here, Bag items cost $96 altogether, so fee amount is $96*10% = $9.6.

In the example above, a fixed fee is multiplied by the number of Bag items that are added to the cart. If you want to add a fixed fee only once per order, the configuration will differ.

For example, if you're setting up a fixed fee:

 
Please go to the Conditions tab and add a Product Attribute Combination condition.



Now you can select what products will trigger the fee. In this case, it's Bags category.


      
After entering the conditions, please proceed to the Calculation tab and make sure that the Apply Fees for setting is set to Whole Cart.



On the storefront, the fee won't be visible if there are no Bags in the cart:



It'll appear as soon as a Bag is added:



And its value won't change if you increase the amount of Bags in the cart:



      • Related Articles

      • Is it possible to add a fee for certain shipping regions only?

                Fees can be configured to appear only under certain conditions, including the shipping address. When editing or creating a fee at Magento Admin Panel > Stores > Configuration > Amasty Extensions > Extra Fee > Fees, please navigate to the ...
      • How to handle taxes for extra fees?

              Enabling taxes for extra fees       If you'd like to apply tax to your extra charges, you'll need to prepare your settings first. It needs to be done in two separate places:       1. Default Magento settings       First, please navigate to ...
      • How to create a fee that'll be available for a certain subtotal only?

              Fees can be set to be visible once customers add some items totaling in a specific amount to the cart, or vice versa: hide the fee as soon as customers reach a certain subtotal. To do that while creating your fee at Magento Admin Panel > Stores ...
      • How to create a mandatory fee?

        If you need your customers to select an obligatory fee during checkout, you can create a mandatory fee that won't allow customers to place an order unless at least one fee option is selected. To do that, please go to Magento Admin Panel → Stores → ...
      • Is it possible to combine fixed and percentage values inside one fee?

              Fees can be configured to have fixed and percentage amounts at the same time. When creating a fee at Magento Admin Panel > Stores > Configuration > Amasty Extensions > Extra Fee > Fees > Add New Fee, please go to the 'Options' tab and click ...
      • Announcements

      • Already Done in Q1'23

        Brand new extensions We launched a coming soon page for the new Back Forward Cache extension. It restores the recently visited page when the customer clicks 'Back' or 'Forward' browser options, thus ensuring faster page load speed. Subscribe to the release
      • Roadmap | What to expect in Q1'23

        New features and improvements Improved Layered Navigation generate SEO-friendly URLs for multi-select Category filter; better speed performance of the Apply filters button; improve Category list load time. Special Promotions Pro optimize data types in
      • Already Done in Q4'22

        New Amasty services Make sure your site is well-performing with our E-commerce QA testing service. Let our specialists check various elements of your website and get the issues fixed. The service is available for any e-commerce platform (Magento, Shopify,
      • Roadmap | What to expect in Q4'22

        New features and improvements Elastic Search better performance of synonyms; REST API support. Product Labels enhanced extension performance with a lot of products on the page. Blog Pro posts migration from one Magento instance to another; email notifications
      • Already done in Q3'22

        New solutions Our new SaaS tool - Website SEO Health Check. Discover the most severe SEO mistakes which can damage your website. Available as part of Pro and Premium SEO Toolkit. New features and improvements Import and Export NEW we added the possibility