I have the following code. I'm wondering if it's working like I think it is:
//Gift Card Redemption
if(strpos($_order->getDiscountDescription(), 'Gift Card') !== false){
$order .= 'RGC1*1*'.$_order->getDiscountDescription().'*****';
$order .= "
";
}
How I think it works: look for 'Gift Card' in $_order->getDiscountDescription()
, and if it's not false, do something. I don't follow what that something is, though. Any ideas on that?