Two tier discount and AcyMailing integration


  • Your avatar
    seyi    
     5 years ago
    0

    I would like to achieve the following:

    1. coupon that discounts 10% when order value excluding shipping < £100 and 15% when order value excluding shipping > £100
    2. integration with AcyMailing (I have the plugin) so that we can send a refer a friend newsletter with a unique coupon code per subscriber with functionality as above.

    We will then be able to track success of programme by subscriber

    Is this possible? If so can you point me in the right direction please.

    Thanks
  • Your avatar
    seyi    
     5 years ago
    0

    Hello,

    Yes this is mostly possible.

    1) You can create a coupon that has this behaviour by using the parent coupon functionality.
    Coupon A - 10% discount
    Coupon B - 15% discount if order total is greater than 100
    Coupon C - Parent coupon , add coupon A and coupon B, order coupon B to be first and set process type to 'First found match'.
    The only problem here is the minimum value is on the order total including shipping and to exclude it, would have to add some custom code.

    2) Yes, you should be able to do this. Simply set the coupon created in number 1 to a template. You would do this by changing the Published dropdown to 'Template'. Then the coupon will show up in AwoCoupon AcyMailing tag to be used as a template.
  • Default avatar
    dom    
     5 years ago
    0

    Thanks for your help Seyi,

    When I follow the instructions I can:

    1. create a parent coupon with the two tiers of discount 10% off all order and 15% off orders > £100
    2. generate coupons with AcyMailing (field size limitation is a problem when using customer's name in code)

    but in all cases the discount applied is the 10% value, irrespective of order value. I have Coupon B as the first in the list and correct process type selected, but changing these parameters makes no difference. Help please!

    Dom

    Further info: works as expected when parent coupon generated within AWOCoupon but not when coupon generated from template using AcyMailing plugin. Bug?
  • Your avatar
    seyi    
     5 years ago
    0

    Hi Dom,

    I have tested this exact scenario and it works for me. Its strange that it works fine if you create a normal parent coupon but if you use parent template you are getting a different behaviour. If you are still having problems, please send a private message with login credentials and I can look at it.
  • Your avatar
    seyi    
     5 years ago
    0

    Ok found the problem, the order by for parent coupons was not working properly and it was by luck it worked on my testing. I have fixed this problem and you should see the correct discounts now. Will be fixed in the next version after 1.4.4.