Skip to content
Set conditons and let the free gifts role in.
PHP
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
woocommerce-free-gifts.php

README.md

woocommerce-free-gifts

Set conditons and let the free gifts role in.

Set your targets

Include all the product ID's you wish to check the cart for.

protected $targets = array( 558, 559, 560, 561 );

Set your quantity

// the required target's quantity needed to earn the free gift. protected $required_qty = 3;

Set the free gift

protected $reward = 562;

You are all set for free gifts.

You can’t perform that action at this time.