My coupon is working great for products and the normal line item. However, I have a second product type called 'sampler' and then also a custom line item type called 'sampler' (using Commerce Customizable Products). The coupon is not being applied to that product.

Is there something I can change in the rules or is this something that can be integrated into the module? Thanks!

Comments

mrpeanut’s picture

Title: Apply coupon to custom product type and line item » Apply coupon to custom line item

So I think this is actually specifically a custom line item problem, not a custom product type problem.

mrpeanut’s picture

Title: Apply coupon to custom line item » Apply coupon to line item price (not product price)
Project: Commerce Coupon (D7) » Commerce coupon percentage
Version: 7.x-1.0-beta6 » 7.x-1.x-dev

So with a little more research, I found out that it's not applying because my product price is always $0.00 (for this one product). I then adjust the line item total with Rules. However, the product price remains $0.00. Therefore it's calculating a percentage of 0.

Is there any way to calculate the coupon based on the line item total instead of the product price?

mrpeanut’s picture

Status: Active » Closed (works as designed)

This was a rules weight problem. Please ignore. :)

rajeevk’s picture

@MrPeanut --

I also need same kind of setting. I am selling a product where some additional charges are there, which I have to show by line item & I have to give discount on one line item if somebody apply coupons distributed by us.

Can you please suggest me how did you achieve this ?

Like what field you took in like item to have additional price(I set a price field & gave a default value but if I put permission for it to create own then user can edit and if I remove this permission it simply doesn't show.). Though I set a rule to add this field value into total price, which works. So please suggest me what field I should take, so that it show on node in non-editable field & I get to add the value of it into total amount while checkout.

Then how did you apply coupons on this line item value.

Thanks in advance :)