Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Trevor Loader 199 posts 256 karma points
    Apr 08, 2016 @ 01:59
    Trevor Loader
    1

    Auto Apply Marketing Coupons / Discounts

    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?

    Regards Trevor

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Apr 08, 2016 @ 19:40
    Rusty Swayne
    0

    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.

  • Simon Dingley 1412 posts 3272 karma points c-trib
    Oct 27, 2016 @ 09:46
    Simon Dingley
    0

    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?

    Thanks, Simon

  • Trevor Loader 199 posts 256 karma points
    Oct 27, 2016 @ 20:12
    Trevor Loader
    1

    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.

    Make sense?

    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

Please Sign in or register to post replies

Write your reply to:

Draft