Hoping to be able to add a Coupon Field to the Sales/Returns screens. Two areas would be great, one on each product line, in case someone has a SKU-specific Coupon, and another under the Transaction payment column, to add one to an entire bill. The code provided to the customer would be entered into the box and the amount would be taken off.

Comments

mattferguson created an issue. See original summary.

smccabe’s picture

Issue tags: +rc1 blocker
rigids’s picture

I believe This will be same as current discount module http://puu.sh/vLxTd/545e14562d.png but we will need to store all available coupons in database. Will the coupons be of single use (once used the coupon expires) or multi-transactions based ? Will we also need interface for admin to add coupon codes to POS?
As per the Request there are already 2 types of coupons (Product Specific, Entire Bill)

fergy’s picture

Same look as the discount for sure. We'll need it as both an item and a transaction option. I would say yes to needing the interface for adding as well.

travis-bradbury’s picture

I was thinking we'd just be adding a feature to add an existing coupon (ie, commerce_coupon 7.x-2.x). Then we shouldn't have to reinvent anything to create or store coupons and their conditions.

sorabh.v6’s picture

Assigned: Unassigned » sorabh.v6
dylf’s picture

Assigned: sorabh.v6 » dylf
sorabh.v6’s picture

Status: Active » Needs work
StatusFileSize
new31.61 KB

Hey @dylanf, Uploading patch. I have created text-field for the coupon code for line items and for order as well. Also created CommercePosCouponService. Most of the work is copy paste work. All work is done in discount sub-module of commerce pos module.

Thanks

dylf’s picture

Status: Needs work » Needs review
StatusFileSize
new449.27 KB

This was a fun one! Added a PR here: https://github.com/AcroMedia/commerce_pos/pull/70.

smccabe’s picture

Status: Needs review » Needs work

Applied a 20% off coupon to my order, but it didn't actually do anything, says the coupon is applied but price did not change. Also tried with dollar value and same issue.

dylf’s picture

Status: Needs work » Needs review
StatusFileSize
new450.16 KB
smccabe’s picture

Status: Needs review » Needs work

Coupons add now, but if I add 2 coupons, it doubles the effect of the first one that was applied, while also applying the second. Applying 2 coupons at a time is fine, but it shouldn't screw up the first one.

dylf’s picture

Status: Needs work » Needs review
StatusFileSize
new10.04 KB

Needed to have the line items cleared from the order before recalculating discounts.

shabana.navas’s picture

Status: Needs review » Needs work

Hehe, Dylan, you uploaded the wrong patch.

dylf’s picture

Status: Needs work » Needs review
StatusFileSize
new452.99 KB

WOOPS!! It was Friday :)

smccabe’s picture

Status: Needs review » Fixed

Hot dog, everything seems good this time, Fixed!

  • smccabe committed 19237a8 on 7.x-2.x authored by dylanf
    Issue #2862542 by dylanf, sorabh.v6, smccabe, fergy, tbradbury, rigids,...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.