Promotions / Coupons Creation in Ofbiz for eCommerce sites

Apache Open For Business (Apache OFBiz) is an open source enterprise resource planning (ERP) system. OFBiz is an Apache Software Foundation top level project. It provides a suite of enterprise applications that integrate and automate many of the business processes of an enterprise including eCommerce sites. It can be used directly or customized to suite your business needs. Creating coupon /promotion for an e-commerce site is one such business need.

We can create many types of promotions or coupons in ofbiz for e-commerce site.

Coupons can be applied on :

  1. Total order Amount
  2. Product

Various types of coupons based on Product are as follows : (Available To Promise (ATP) > 0 for all free products)

1. Quantity of product

        — Gift With Purchase

                a. On purchase of “X” quantity of  product A get product B free.(Gift With Purchase)

                b. On purchase of “X” quantity of  product A get product B and C free.(Gift With Purchase)

        — Discount

                c. On purchase of “X” quantity of  product A get discount of Rs”Y” on X2(value = 1 usually) quantity of  product A.

                d. On purchase of “X” quantity of  product A get “Y%” discount on X2(value = 1 usually) quantity of  product A.

2. Bundled Gifts

        a. On purchase of Product “A” get bundled gifts (like pendrives , bags etc) free.

        For this promotion no need to create condition , action and promotion codes.

General steps to create promotions (in ofbiz admin panel) are : Under Applications -> Catalog , Catalog Manager -> Promos -> New Product Promo

1. Tab :  Promotion

        Section : Edit Product Promos

                a. Promotion name

                b. Promotion Text

                c. Use Limit Per Order : Set value as 1

                d. Use Limit Per Customer : Set value as 1        

                e. Req. Code :  Set “Y” if promotion to be entered manually by customer otherwise “N”.

                Enter “Update” button

2.  Tab : Rules

        Section :  Add New Promo Rule

                a. Name : Give a unique rule name.

                b. Conditions

                c. Actions

3. Tab : Stores

        Section: Add Store Promo

                a. Add all stores to which promotions should be applicable.

                b. Update through date against each store to mark an expiry date of promotion.

                Enter “Add” Button

4. Tab : Promotion Code

        Section : Add Set of Promotion Codes

                a. Quantity

                b. product promo code length : 15

                c. Promo code layout: normal

                e. Req. Email or Party: “Y” if promotion is applicable to particular person only otherwise “N”

                Enter “Add” button

                 If Req. Email or party = “Y”  then there are two ways to add this restriction.

     – Under section : Promo Code Parties

                PartyId(Party means customer)

    – Under section : Promo Code Emails

                EmailId

        To add list of EmailIds , file containing list of emailIds can be uploaded also.

        Update through date(Expiry Date) for promotion code also.

Rules and Conditions to create coupon are as follows :

For Product :

Coupon

Rule Name

Condition

Action

1a

coupon1arule1

Condition 01 :

X quantity of product

is greater than or equal to

X

Action 01:

Gift with purchase

Quantity : Y

ItemId : A

1b

coupon1brule1

Condition 01 :

X quantity of product

is greater than or equal to

X

Action 01:

Gift with purchase

Quantity : Y

ItemId : A

     

Action 02:

Gift with purchase

Quantity : Y

ItemId : B

1c

coupon1crule1

Condition 01 :

X quantity of product

is greater than or equal to

X1

Action 01:

X product for Y discount

Quantity : X2

Amount : Y

ItemId : A

1d

coupon1drule1

Condition 01 :

X quantity of product

is greater than or equal to

X

Action 01:

X product for Y% discount

Quantity : X2

Amount : Y

ItemId : A

2a

Section : Promotion

Promoton Text : Text to display on website

Like :

2Gb pendrive Free!!

Coupon2arule1

Section : Promotion Products

Add productId : A

NA

NA

In this way,  coupon can be created but there are many types. This is just a beginning and interested readers can explore it further.

References :

1. General steps to create coupons : https://cwiki.apache.org/OFBIZ/tab-catalog-promos.html

2. Demo link to e-commerce site : http://demo-trunk.ofbiz.apache.org/ecommerce/control/main

3. Demo link to admin panel where promotions can be created : https://demo-trunk.ofbiz.apache.org:8443/catalog/control/EditCategoryProducts?productCategoryId=PROMOTIONS

— Login credentials:

-username : admin , password : ofbiz

4. To download latest version of ofbiz : http://ofbiz.apache.org/download.html

After setting ofbiz in eclipse , coupons can be created using admin panel of ofbiz.


One thought on “Promotions / Coupons Creation in Ofbiz for eCommerce sites

Leave a Reply

Your email address will not be published. Required fields are marked *


6 − = three

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>