public function emailPurchaseInfo($product_info = null)
 {
     global $CFG;
     $course = $CFG->current_app->getCourse($this->my_purchase->getPurchaseTypeId());
     $mdl_course = $course->getObject();
     $product_info = "Course: {$mdl_course->fullname} ({$mdl_course->shortname})";
     parent::emailPurchaseInfo($product_info);
 }
 public function emailPurchaseInfo($product_info = null)
 {
     $purchase_item = Doctrine::getTable('GcrPurchaseItem')->find($this->my_purchase->getPurchaseTypeId());
     $product_info = "Item: {$purchase_item->description}";
     parent::emailPurchaseInfo($product_info);
 }