Back to All

Extension > Hook: Auto Apply Coupons On Autoship

Q: We have a Family & Friends Associate Status and we want to auto apply a coupon for any autoship orders so they receive a discount, how can we do that?

A: Because DirectScale does not have a UI to attach a coupon to an autoship, a hook must be used to auto apply the coupon.

Hook To Be Used

Orders.ProcessCouponCodes

In Orders.ProcessCouponCodes Hook look for OrderType=2 and AssociateStatus=(The ID of this AssociateStatus)
Automatically apply coupon code [ENTER COUPON CODE HERE] to the order.