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 ...
      • A guide on handling taxes for extra fees

        Contents:       1. Enabling taxes for extra fees             a) Default Magento settings               b) Extension settings       2. Tax display settings             a) Excluding Tax             b) Including Tax             c) Including and ...
      • 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 > ...
      • 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 Q3'22

        Extensions updates Advanced Reports now, when a website works with multi currencies while filtering reports by the store views, the data in the report is converted to the site base currency; now, the Product Performance report displays up-to-date customer
      • What to expect in Q3'22

        New features and improvements Improved Layered Navigation integration with Live Search. Elastic Search improved Relevance Rules functionality. Product Feed an option to add configurable options to product URL; possibility to use Quantity attribute as
      • Already Done in Q2'22

        Brand-new extensions Google Page Speed Optimizer Powered by SpeedSize™ is a synergy of Amasty Google Page Speed Optimizer and SpeedSize, which will help you greatly increase the site performance due to code structure compression and neuroscience media
      • What to expect in Q2'22

        Amasty always strives to deliver new functionality in accordance with the most popular customers’ requests and e-commerce trends. In this article, we'll share our plans on new extensions, improvements, fixes, and other releases the team intends to be
      • March'22 results

        New Solutions In March, the team presented two new suites that combine features of top Amasty extensions and are attractive price-wise: Must-Haves Suite. Don't know how to grow your business or what to start with? Get our must-have set of features for