Tiered gifts: upgrading from version 1.x

Upgrading the gift module from 1.x to 2.0: commands, what changes for existing gift rules and what to check afterwards.

⏱ 4 minAdvancedUpdated 14 Oct 2026

Version 2.0 adds gift ladders, progress in the cart, a gift choice and a product page badge. Existing cart price rules with a gift keep working; there are no manual steps.

1. Upgrade the module

We can do the upgrade for you. If whoever looks after your store does it, they run this in the store root:

composer update degriznet/m2_freegift
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush

On a Hyvä theme also run php bin/magento hyva:config:generate and rebuild the theme CSS (see installing on Hyvä).

2. What changes

Before (1.x)Now (2.0)
Gift with a price of 0 or an empty priceGift with its regular price and a 100 % discount (“Discount (Gift)” in the totals), €0.00 to pay
The gift line is removed and added again on every cart changeThe gift line stays the same while the gift is in the cart
The gift does not count towards the shipping weightBy default the gift counts towards the weight; switch it off in the settings
Actions “Add a Gift” and “Add a Gift (For each cart item)”“Free gift by rule (advanced)” and “Free gift by rule, per cart item (advanced)”
“For each cart item” gifts of one rule in several linesOne line with the summed quantity

The upgrade sets Gift actions in cart price rules to Yes by itself when any rule already uses a gift, so the admin looks the same as before.

Order in the admin with the gift in the items list and the Discount (Gift) line in the totals
An order after the upgrade: the gift is an item with its regular price, the discount shows as “Discount (Gift)” in the totals.

3. Check after the upgrade

  1. In the cart, meet the condition of your gift rule and check that the gift is added.

  2. If you export orders to accounting or an ERP, check one export: the gift now has its regular price and a discount instead of a price of 0. The gift data is also stored on the order item.

  3. If you ship by weight and the gift must not change the shipping price, switch off Gifts count towards the shipping weight in the settings.

  4. Consider replacing gift rules by cart value with a gift ladder, which shows the customer the progress.

Was this article helpful?

Related