hryvinskyi / magento2-free-gift-pack
Free gift for every step of spending for Magento 2: a cart price rule action that adds gift products to the cart at no charge, its admin settings, and a storefront progress bar that shows the shopper how far the cart is from the next gift.
Package info
github.com/hryvinskyi/magento2-free-gift-pack
Type:metapackage
pkg:composer/hryvinskyi/magento2-free-gift-pack
Requires
- hryvinskyi/magento2-cart-progress-bar: 1.3.*
- hryvinskyi/magento2-free-gift: 1.1.*
- hryvinskyi/magento2-free-gift-admin-ui: 1.1.*
- hryvinskyi/magento2-free-gift-api: 1.1.*
- hryvinskyi/magento2-free-gift-frontend: 1.3.*
- magento/framework: *
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Metapackage that installs the free gift modules: a cart price rule action that adds gift products to the cart at no charge for every step of spending, its admin screens, and a storefront progress bar that shows the shopper how far the cart is from the next gift.
composer require hryvinskyi/magento2-free-gift-pack bin/magento setup:upgrade bin/magento setup:di:compile bin/magento cache:flush
It installs:
hryvinskyi/magento2-free-gift-api, the published contracts: the rule action, the gift SKUs of a rule, the gift lines of a cart and the gift state stored on a cart;hryvinskyi/magento2-free-gift, the core: the action Free gift for every X spent, the spent amount, and the gift lines kept in line with what the cart earns;hryvinskyi/magento2-free-gift-admin-ui, the field Free Gift SKUs on the cart price rule form and the settings under Stores › Configuration › Sales › Free Gift;hryvinskyi/magento2-free-gift-frontend, the spent amount and the gift line mark in thecartcustomer-data section, the free gift goal of the bar, and the free gift badge on gift lines in the minicart and on the cart page;hryvinskyi/magento2-cart-progress-bar, the bar itself, which knows no kind of goal: other modules contribute goals to it.
Nothing is on after installation. To offer a gift:
- In Marketing › Promotions › Cart Price Rules add a rule with Apply set to Free gift for every X spent. Discount Amount is the gifts per step, Discount Qty Step (Buy X) the amount to spend per step and Maximum Qty Discount is Applied To the most gifts; enter the gift SKUs in Free Gift SKUs.
- To show the bar, enable it under Stores › Configuration › Sales › Cart Progress Bar and set the goal under Free Gift › Goal in the Cart Progress Bar.
Each module's README describes its settings and limits.