You are here

public function CommerceLicenseFile::checkoutCompletionMessage in Commerce File 7.2

Implements CommerceLicenseInterface::checkoutCompletionMessage().

Overrides CommerceLicenseBase::checkoutCompletionMessage

File

plugins/license_type/CommerceLicenseFile.class.php, line 38

Class

CommerceLicenseFile
File license type.

Code

public function checkoutCompletionMessage() {

  // Store the uid in the session. The file access function will use it
  // if the user is anonymous, allowing the download to proceed.
  $_SESSION['commerce_license_uid'] = $this->uid;
  $product = $this->wrapper->product
    ->value();
  $message = t('Thank you for purchasing %product.', array(
    '%product' => $product->title,
  )) . '<br />';
  $message .= t('Download now:');
  return $message . $this
    ->accessDetails();
}