promotions vouchers and offers in drupal commerce
DESCRIPTION
Drupal Commerce is an incredibly powerful suite of modules for creating e-Commerce sites in Drupal. With Rules based pricing it is possible to create highly complex special offers, vouchers and variable pricing. However, this can be a minefield of business logic contradiction and complex rule configuration way beyond what your site administrator can manage easily.TRANSCRIPT
PROMOTIONS, VOUCHERS AND OFFERS
IN DRUPAL COMMERCE
Richard Jones, Technical Director, i-KOS
NYC Camp July 2012
HELLO!
• Richard Jones
• CTO i-KOS
• London-based Drupal agency specialising in Commerce
• @richardjones
DRUPAL COMMERCE PRICING MODEL
Product Prices start with a Base Price
Final Selling Prices are calculated using Rules
Prices are made up of multiple Components
Rules conditions and actions provide incredible flexibility
BEFORE YOU START
Install the Commerce Extra Price Formatters module
http://www.drupal.org/project/commerce_extra_price_formatters
(It’s just going to make it easier to see what’s going on)
PRICE FORMATTER SETTINGS
PLANNING YOUR OFFERS
However well you plan, the next offer seems to be something you’ve not thought of...
FIXED PRICE DISCOUNTS
Fixed Price Discount on a product
No Conditions
Appl ies to any product (regardless of starting price)
$10 off !
FIXED PRICE DISCOUNTS
Event triggers when a product is viewed
Adds a discount component to the price (note that amount is in pennies)
TIME LIMITED
Fixed Price Discounts
Time limited offer
$10 off, today only!
TIME LIMITED
Adds date checking conditions to the rule
ORDER VALUE LIMITED
Fixed Price Discounts
Only apply when the basket value exceeds a fixed amount
Slightly more tricky as we are applying a discount to the whole order - not product by product.
$10 off when you spend $100!
ORDER VALUE LIMITED
Checks discount hasn’t already been added and that order value is sufficient
Add a special DISCOUNT product to the cart (which has negative price)
Different event - this one reruns the rule when a change is made to the order
ORDER VALUE LIMITED
Need a reversal rule - always consider how to cheat the system
POUNDLAND
Force the price of all items to be a fixed value
EVERYTHING $1!
POUNDLAND
Force the price of all items to be a fixed value
MULTIBUY
Add a discount to the order when a 2nd item is purchased.
BUY 2 GET ONE HALF
MULTIBUY
Currently difficult to do using price rules.
We are working on a custom rules action.
But you can still work around it!
MULTIBUY
Check if we have the qualifying product and no free one
Add the free version of the product
MULTIBUY
Need a reversal rule - always consider how to cheat the system
PRODUCT SPECIFIC
Discount specified products
$5 off any Blu-Ray
PRODUCT SPECIFIC
PERCENTAGE DISCOUNTS
Percentage d i scount on everything
10% OFF EVERYTHING!
PERCENTAGE DISCOUNTS
FREE GIFT
Gift with purchase type offers
FREE KEY RING WITH EVERY ORDER!
FREE GIFT
FREE GIFT LIMIT
VOUCHERS
Fixed Price
Percentage
ENTER nyccamp TO GET $10 OFF
3RD PARTY OFFERS
Groupon, KGB, LikeBees etc.
Each has different requirements.
Some want you to provide the codes
Some want to provide them
BULK COUPON GENERATION
Install Commerce Coupon Batch
http://drupal.org/project/commerce_coupon_batch
Give it a prefix and the number of coupons required
SUPPLIED COUPONS
Use Feeds
drupal.org/project/feeds
COUPON LOGIC
The start position is “valid”
Create rules to make it “invalid”
Extend the coupon entity with fields you can use
CHANGE IS COMING!
http://drupal.org/project/commerce_discount
YOUR QUESTIONS