Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Is there a way to 'auto apply' discounts for any coupon whose assigned constraints match the current basket?
Ie, I don't want to force the user to have to know and enter coupon code(s) at checkout time.
I think the answer is no...unless we code up the check ourselves and apply each discount code in code at checkout.
However, I think it would be a great feature to have...especially if we enhance the coupon editor to have as an option to 'auto apply'...so you could still have actual discount codes entered manually by the user (not auto applying) along with other discounts that auto apply.
I'd be interested in the community's feedback...would this be useful for others?
At the moment there is no way to do this - but I agree it would be a pretty slick add.
I think the property should be added to the offer rather than the coupon so that other discounts could make use of it. I would imagine that this is something that would be nice to have for more than just coupons.
Great idea Trevor, I'm just looking into this myself. Did you get anywhere with this?
A store I am working on will discount shipping by 50% if a customer orders more than one product. At the moment we have amended the custom shipping provider to apply the discount but I think it would be much better to apply a discount/offer so that customers can see the promotion has been added but also let owners have some element of control over the promotion.
Is there a feature request on the issue tracker for this?
I took a different approach in the end as the discount had to be automatic (no coupons), was complex in nature and the discount increased as the quantity of a product increased.
I also had to have the correct discounted order total displayed as the user was adding products to their cart.
So in the add to basket controller, after the product was added, I then interrogated the basket content to determine the discount (if applicable). I then added the discount to the basket.
this.Basket.AddItem(new ItemCacheLineItem(LineItemType.Discount, "[productname] Discount", "[productname] Discount", 1, discountAmount, extendedData));
Obviously, as more qty was added I delete the discount that may already be in the cart and recalc it and re-add it.
But, coming back to the original post, I'd love it have an 'auto-apply' checkbox on the coupon and that when adding products, any coupon with auto-apply ticked is auto-apply in highest discount value order desc (just in case by applying one coupon, others could not be applied.
PS You'll need the latest version of Merchello for the above code to work
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted