Apply shipping discount based on Shipping Group ID


  • Your avatar
    seyi    
     5 years ago
    0

    I am currently using AWO Coupon Pro. I have a coupon that apply's free-shipping to orders over $100.00 for UPS Ground shipping. This works great, but I would like to only apply the discount to the Weighted Shipping group.
    In other words, if there are mixed items in the cart (flat rate and weighted shipping items), the item that is set to flat rate shipping (shipping_group_id = 4) should not have the coupon applied to it's shipping cost.

    Is that possible with the current build of AWO Coupon, or could you point me to the files that I would need to edit to make this work? I am proficient and coding php so I could probably figure it out if I knew where to look.

    Thanks,
    Brent
  • Your avatar
    seyi    
     5 years ago
    0

    Hi Brent,

    I am not sure what you mean by shipping_group_id. Do you mean if the product has a weight apply the coupon to it and if it does not, do not? If so, this is not possible. To do this, you will need to alter the processor: www/administrator/components/com_awocoupon/assets/virtuemart/ps_coupon_process.php

    PM me if you have any questions about it.