I am looking to add a rule to all orders but magento core does not do what I am looking to do. What I want to do is check the cart to see if there is a product that has a subscription set up for it. If it does then I want to check the subtotal of the cart and if over $50 give them free ground shipping. If over $150 then they get the free shipping plus 10% of the entire cart.
I have the it so that I can loop through the cart checking for subscription products that are set up to recur on a regular basis. I know this works because I can add products to the cart if it is true. But I don't want to add products I want to give free shipping plus 10% off if applicable.
Is there a way in code to set the discount amount to 10% of the subtotal of the cart? And is there a way to check the shipping method and give them free shipping if they selected ground, or better yet give them the option for free shipping if they meet the criteria during checkout?