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
![Page 1: Promotions Vouchers and Offers in Drupal Commerce](https://reader036.vdocument.in/reader036/viewer/2022081403/55579882d8b42aa3378b4f91/html5/thumbnails/1.jpg)
PROMOTIONS, VOUCHERS AND OFFERS
IN DRUPAL COMMERCE
Richard Jones, Technical Director, i-KOS
NYC Camp July 2012
![Page 2: Promotions Vouchers and Offers in Drupal Commerce](https://reader036.vdocument.in/reader036/viewer/2022081403/55579882d8b42aa3378b4f91/html5/thumbnails/2.jpg)
HELLO!
• Richard Jones
• CTO i-KOS
• London-based Drupal agency specialising in Commerce
• @richardjones
![Page 3: Promotions Vouchers and Offers in Drupal Commerce](https://reader036.vdocument.in/reader036/viewer/2022081403/55579882d8b42aa3378b4f91/html5/thumbnails/3.jpg)
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
![Page 4: Promotions Vouchers and Offers in Drupal Commerce](https://reader036.vdocument.in/reader036/viewer/2022081403/55579882d8b42aa3378b4f91/html5/thumbnails/4.jpg)
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)
![Page 5: Promotions Vouchers and Offers in Drupal Commerce](https://reader036.vdocument.in/reader036/viewer/2022081403/55579882d8b42aa3378b4f91/html5/thumbnails/5.jpg)
PRICE FORMATTER SETTINGS
![Page 6: Promotions Vouchers and Offers in Drupal Commerce](https://reader036.vdocument.in/reader036/viewer/2022081403/55579882d8b42aa3378b4f91/html5/thumbnails/6.jpg)
PLANNING YOUR OFFERS
However well you plan, the next offer seems to be something you’ve not thought of...
![Page 7: Promotions Vouchers and Offers in Drupal Commerce](https://reader036.vdocument.in/reader036/viewer/2022081403/55579882d8b42aa3378b4f91/html5/thumbnails/7.jpg)
FIXED PRICE DISCOUNTS
Fixed Price Discount on a product
No Conditions
Appl ies to any product (regardless of starting price)
$10 off !
![Page 8: Promotions Vouchers and Offers in Drupal Commerce](https://reader036.vdocument.in/reader036/viewer/2022081403/55579882d8b42aa3378b4f91/html5/thumbnails/8.jpg)
FIXED PRICE DISCOUNTS
Event triggers when a product is viewed
Adds a discount component to the price (note that amount is in pennies)
![Page 9: Promotions Vouchers and Offers in Drupal Commerce](https://reader036.vdocument.in/reader036/viewer/2022081403/55579882d8b42aa3378b4f91/html5/thumbnails/9.jpg)
TIME LIMITED
Fixed Price Discounts
Time limited offer
$10 off, today only!
![Page 10: Promotions Vouchers and Offers in Drupal Commerce](https://reader036.vdocument.in/reader036/viewer/2022081403/55579882d8b42aa3378b4f91/html5/thumbnails/10.jpg)
TIME LIMITED
Adds date checking conditions to the rule
![Page 11: Promotions Vouchers and Offers in Drupal Commerce](https://reader036.vdocument.in/reader036/viewer/2022081403/55579882d8b42aa3378b4f91/html5/thumbnails/11.jpg)
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!
![Page 12: Promotions Vouchers and Offers in Drupal Commerce](https://reader036.vdocument.in/reader036/viewer/2022081403/55579882d8b42aa3378b4f91/html5/thumbnails/12.jpg)
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
![Page 13: Promotions Vouchers and Offers in Drupal Commerce](https://reader036.vdocument.in/reader036/viewer/2022081403/55579882d8b42aa3378b4f91/html5/thumbnails/13.jpg)
ORDER VALUE LIMITED
Need a reversal rule - always consider how to cheat the system
![Page 14: Promotions Vouchers and Offers in Drupal Commerce](https://reader036.vdocument.in/reader036/viewer/2022081403/55579882d8b42aa3378b4f91/html5/thumbnails/14.jpg)
POUNDLAND
Force the price of all items to be a fixed value
EVERYTHING $1!
![Page 15: Promotions Vouchers and Offers in Drupal Commerce](https://reader036.vdocument.in/reader036/viewer/2022081403/55579882d8b42aa3378b4f91/html5/thumbnails/15.jpg)
POUNDLAND
Force the price of all items to be a fixed value
![Page 16: Promotions Vouchers and Offers in Drupal Commerce](https://reader036.vdocument.in/reader036/viewer/2022081403/55579882d8b42aa3378b4f91/html5/thumbnails/16.jpg)
MULTIBUY
Add a discount to the order when a 2nd item is purchased.
BUY 2 GET ONE HALF
![Page 17: Promotions Vouchers and Offers in Drupal Commerce](https://reader036.vdocument.in/reader036/viewer/2022081403/55579882d8b42aa3378b4f91/html5/thumbnails/17.jpg)
MULTIBUY
Currently difficult to do using price rules.
We are working on a custom rules action.
But you can still work around it!
![Page 18: Promotions Vouchers and Offers in Drupal Commerce](https://reader036.vdocument.in/reader036/viewer/2022081403/55579882d8b42aa3378b4f91/html5/thumbnails/18.jpg)
MULTIBUY
Check if we have the qualifying product and no free one
Add the free version of the product
![Page 19: Promotions Vouchers and Offers in Drupal Commerce](https://reader036.vdocument.in/reader036/viewer/2022081403/55579882d8b42aa3378b4f91/html5/thumbnails/19.jpg)
MULTIBUY
Need a reversal rule - always consider how to cheat the system
![Page 20: Promotions Vouchers and Offers in Drupal Commerce](https://reader036.vdocument.in/reader036/viewer/2022081403/55579882d8b42aa3378b4f91/html5/thumbnails/20.jpg)
PRODUCT SPECIFIC
Discount specified products
$5 off any Blu-Ray
![Page 21: Promotions Vouchers and Offers in Drupal Commerce](https://reader036.vdocument.in/reader036/viewer/2022081403/55579882d8b42aa3378b4f91/html5/thumbnails/21.jpg)
PRODUCT SPECIFIC
![Page 22: Promotions Vouchers and Offers in Drupal Commerce](https://reader036.vdocument.in/reader036/viewer/2022081403/55579882d8b42aa3378b4f91/html5/thumbnails/22.jpg)
PERCENTAGE DISCOUNTS
Percentage d i scount on everything
10% OFF EVERYTHING!
![Page 23: Promotions Vouchers and Offers in Drupal Commerce](https://reader036.vdocument.in/reader036/viewer/2022081403/55579882d8b42aa3378b4f91/html5/thumbnails/23.jpg)
PERCENTAGE DISCOUNTS
![Page 24: Promotions Vouchers and Offers in Drupal Commerce](https://reader036.vdocument.in/reader036/viewer/2022081403/55579882d8b42aa3378b4f91/html5/thumbnails/24.jpg)
FREE GIFT
Gift with purchase type offers
FREE KEY RING WITH EVERY ORDER!
![Page 25: Promotions Vouchers and Offers in Drupal Commerce](https://reader036.vdocument.in/reader036/viewer/2022081403/55579882d8b42aa3378b4f91/html5/thumbnails/25.jpg)
FREE GIFT
![Page 26: Promotions Vouchers and Offers in Drupal Commerce](https://reader036.vdocument.in/reader036/viewer/2022081403/55579882d8b42aa3378b4f91/html5/thumbnails/26.jpg)
FREE GIFT LIMIT
![Page 27: Promotions Vouchers and Offers in Drupal Commerce](https://reader036.vdocument.in/reader036/viewer/2022081403/55579882d8b42aa3378b4f91/html5/thumbnails/27.jpg)
VOUCHERS
Fixed Price
Percentage
ENTER nyccamp TO GET $10 OFF
![Page 28: Promotions Vouchers and Offers in Drupal Commerce](https://reader036.vdocument.in/reader036/viewer/2022081403/55579882d8b42aa3378b4f91/html5/thumbnails/28.jpg)
3RD PARTY OFFERS
Groupon, KGB, LikeBees etc.
Each has different requirements.
Some want you to provide the codes
Some want to provide them
![Page 29: Promotions Vouchers and Offers in Drupal Commerce](https://reader036.vdocument.in/reader036/viewer/2022081403/55579882d8b42aa3378b4f91/html5/thumbnails/29.jpg)
BULK COUPON GENERATION
Install Commerce Coupon Batch
http://drupal.org/project/commerce_coupon_batch
Give it a prefix and the number of coupons required
![Page 30: Promotions Vouchers and Offers in Drupal Commerce](https://reader036.vdocument.in/reader036/viewer/2022081403/55579882d8b42aa3378b4f91/html5/thumbnails/30.jpg)
SUPPLIED COUPONS
Use Feeds
drupal.org/project/feeds
![Page 31: Promotions Vouchers and Offers in Drupal Commerce](https://reader036.vdocument.in/reader036/viewer/2022081403/55579882d8b42aa3378b4f91/html5/thumbnails/31.jpg)
COUPON LOGIC
The start position is “valid”
Create rules to make it “invalid”
Extend the coupon entity with fields you can use
![Page 32: Promotions Vouchers and Offers in Drupal Commerce](https://reader036.vdocument.in/reader036/viewer/2022081403/55579882d8b42aa3378b4f91/html5/thumbnails/32.jpg)
![Page 33: Promotions Vouchers and Offers in Drupal Commerce](https://reader036.vdocument.in/reader036/viewer/2022081403/55579882d8b42aa3378b4f91/html5/thumbnails/33.jpg)
CHANGE IS COMING!
http://drupal.org/project/commerce_discount
![Page 34: Promotions Vouchers and Offers in Drupal Commerce](https://reader036.vdocument.in/reader036/viewer/2022081403/55579882d8b42aa3378b4f91/html5/thumbnails/34.jpg)
![Page 35: Promotions Vouchers and Offers in Drupal Commerce](https://reader036.vdocument.in/reader036/viewer/2022081403/55579882d8b42aa3378b4f91/html5/thumbnails/35.jpg)
YOUR QUESTIONS