Mattress recycling fees are common for regulated products like mattresses, where you need to charge a fixed fee per item. If the fee only applies in certain places, you can also make it location-based. For example, an $11.50 fee per mattress for customers in California.
To set up a mattress recycling fee on your store, there are two required setup steps in Magical Fees:
Create a fee rule (this defines what to charge and when), and
Activate the sales channel (this is what actually turns the fee on in your storefront).
Step 1 (Required) — Create the fee rule
1. Start a new rule
In the Shopify Admin, open the Magical Fees app.
To start a new rule, choose one of the following:
2. Fill in the basics
Title: Enter a clear name like “Mattress Recycling Fee”
Details (optional): Add a short customer-facing explanation like “California mattress recycling fee (required by law) — $11.50 per mattress.”
Type: Select Product (because this fee will be added to products or collections).
Customer consent: Leave Require consent OFF for government-mandated recycling/disposal fees.
What is considered a government-mandated fee?
Government-mandated fees are legally required charges imposed by a government authority, such as recycling fees, eco fees, or bottle deposits. Customer consent is not required for these types of fees.
Fees added at the merchant’s discretion, such as credit card surcharges, tariff surcharges, or service fees, are not government-mandated and require customer consent under Shopify’s policies.
3. Set the amount
Calculation: under Price select the Fixed option and enter the fee amount (example: $11.50).
Turn Charge tax on this fee OFF unless you know this fee should be taxed.
4. Decide how the fee shows up (bundling)
Matching product: The fee stays with the product line it applies to, so it’s clearer what the fee is tied to. Note: product-based discounts may also discount the fee.
Other product fees: The fee shows under a separate “fee/placeholder” line created by the app. Note: helps keep fees out of product-based discounts.
5. Decide how many times it applies
Under Number of times fee applies, choose Every product to charge the fee per mattress unit (for example, 2 mattresses = fee charged twice).
6. Choose which products the fee is applied to
Under Product Conditions, pick one:
All products: Apply the fee to everything in your store
Specific collections: Apply the fee to selected collections.
Specific products: Apply the fee to selected products
Custom conditions: Apply the fee when specific conditions are met. For example, product type, vendor, tags, option name, or option value.
Leave Quantities as All quantities (so it applies no matter how many are in the cart).
7. (Optional) Make it location-based
If the fee only applies in specific locations:
Click Add locations
Select applicable countries/provinces/states
8. Save the rule, and confirm the rule shows as Active at the top-right of the page.
Step 2 (Required) — Activate the sales channel
In the Magical Fees app, Click Add sales channels.
Under Online Store, turn on Activate App Embed Block. This step is required for fees to show in your online store.
Turn on Hide Dynamic Checkout Buttons when Fees Apply so customers don’t bypass the flow where fees get added.
Step 3 (Optional) — Help customers understand the fee
In the Magical Fees app, Click Add sales channels.
Under Online Store, turn on Associated Fees block if you want customers to see fee info on the product page.
Under Online Store, turn on Fees Total block if you want to display a fee summary in the cart.
Click the Activate button
Enter the theme editor, Click Add block under Template
Under the Apps section, choose Fees total to add the block.
Click Save











