LemonStand Documentation

Shop_ProductFile

The Shop_ProductFile represents a file in a downloadable product. You may need to display a list of downloadable files on the Order Details page. You can access a list of a product files through the $files field of a product object. See the Creating the Order Details page article for examples of the class usage.

Parent class: Db_File

Class fields

  • $name – a file name
  • $size_str – a file size as string

Class methods

  • download_url($order) – returns an URL of a file. Use this function to create links to product files. The $order parameter is an object of Shop_Order class. Please refer the Creating Order Details page article for details of the method usage.

See also:

Next: Shop_ProductReview
Previous: Step-by-step checkout actions
Return to Reference