I would like to use shopping cart rule information in the invoice PDF. For certain rules I want to add some information in the PDF. How can I get these values?
You can then look up the cart rule info, using salesrule/rule model.
I've found the following to work:
$order_ov = get_object_vars($order); $couponcode = $order_ov['_data']['coupon_code'];