Product

Test report

  1. EDD product

  2. EDD product loop config

      exists as loop type edd_product
      has property "name"
      has property "title"
      has property "category"
      has property "description"
      has property "query_args"
      has property "fields"

  3. Product loop type

      can create loop type edd_product
      returns products from method get_items()
      product is an instance of WP_Post

  4. Product loop item

      loop has next item
      loops every item
      loop can be reset
      has current item

  5. Product fields

      is_variable: Whether product has variable pricing. If yes, the "pricing" field is to be used to grab price
      raw_price: Product raw price. Might be irrelevant if product has variable pricing
      price: Product display price (either raw or sale price). Might be irrelevant if product has variable pricing
      sale_price: Product sale price (whether product is on sale or not). Might be irrelevant if product has variable pricing
      purchase_link: Edd download purchase link - generates the Purchase or Add to Cart buttons
      vendor: Product vendor. Returns a Loop of "edd_vendor" type.
      pricing: Product pricing. Returns one or more values, depending on whether product has variable prices or not. Returns a Loop.
      files: Downloadable files. Returns one or more values, depending on whether product has variable prices or not. Returns a Loop.
      sku: Product sku
      type: EDD product type
      id: ID
      name: name/slug
      url: URL
      title: Title
      content: Content
      excerpt: Excerpt
      status: Status
      edit_url: Edit URL
      publish_date: Publish date
      modify_date: Modify date
      post_class: Post classes
      menu_order: Menu order
      archive_author: On an author archive page: Current author as a user loop
      archive_term: On a taxonomy archive page: Current taxonomy term as a loop
      archive_post_type: On a post type archive page: Current post type as a loop
      author: Author
      author_*: Author's user field
      parent: Parent
      parent_*: Parent field
      parent_ids: All parent IDs from current to top
      children: Children
      children_ids: Children IDs
      ancestors: Ancestor posts from lowest to highest level; Set reverse=true to go from top-level down
      image: Featured image
      image_*: Featured image field

All 5 tests passed