shopp('customer.download')

Used in the ‘has-download’ loop to show an individual download.

Uses the options argument to specify the property of the download to show

Options

  • id: The id of the download asset
  • url: The URL of the purchased download
  • purchase: The id of the order the download was purchased on
  • name: The name of the download file
  • variation: The label of the variation option chosen
  • downloads: The number of times the digital good has been downloaded
  • key: The download key used to access the digital good
  • total: The total cost of the digital good
  • filetype: The MIME-type of the digital good
  • size: The file size of the digital good (in the largest applicable unit)
  • created: The UNIX timestamp of the date the purchase for the digital good was made
  • date: The date of the purchase formatted using the format specified in the WordPress settings

Examples

<?php shopp('customer','download','options…'); ?>

See Also

You must be logged in to post a comment.

© Ingenesis Limited. Shopp™ is a registered trademark of Ingenesis Limited.

Skip to toolbar