This project is not covered by Drupal’s security advisory policy.

This module adds relation from commerce_product to commerce_discount and allows use this relation in views, panels, etc. If you'r using Commerce Discount and don't know how to create page/block with discounted products, this module will help you.

Requirements

Commerce Discount
Entity Reference
Entity API

Usage

To create view with discounted products you should add Relationship Entity Reference: Referenced Entity with description A bridge to the Commerce Discount entity that is referenced via commerce_product_discounts.

Note, that the module creates relation only if one of next conditions is used in discount:

  • Order discount -> Apply to: Product(s)
  • Order discount -> Apply to: Product(s) and quantity
  • Product discount -> Apply to: Product(s)

Any other conditions could be used in views without this module.

Also, if you'r using Commerce Discount Date or Commerce Discount Usage, you should use contextual filters or filter criteria to display correct products.

Project information

Releases