How to create a mandatory fee?

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 → Configuration → Amasty Extensions → Extra Fee → Fees, click Add New Fee button, and switch the Mandatory to select the option to Yes.



After that, proceed with adding fee options (at the Options tab) and other settings like scope or calculations, then the fee can be saved.

When the fee is configured and saved, you can go to the store and proceed to checkout to see how the fee works.



If you try to proceed without selecting a fee option, you'll get a message asking to select it first:


      • Related Articles

      • Extra Fee API

        1. Amasty\Extrafee\Api\TotalsInformationManagementInterface - class for managing cart totals for logged-in users: POST /V1/amasty_extrafee/carts/:cartId/totals-information, method="calculate" - calculate totals of a specific cart; POST ...
      • 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 ...
      • 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 Stores → Configuration → Amasty ...
      • Extra Fee | GraphQL methods

        Queries getListFeeItems description: get a list of created fees getFeeItemsForQuote(cart_id: String!) description: get a list of fees available in the current cart getFeeOptions(fee_id: Int!, store_id: Int!) description: get a list of fee options ...
      • 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. Default Magento settings Step 1. Navigate to Stores → Taxes → Tax Zones and Rates ...