commerce_from_price

This module allows for products in a drupal commerce website to display a 'from' or 'starting at' price when the product has multiple variations with different prices. Note that your product overview should display commerce products instead of product variations for this to work.

Features

The module provides extra field formatters for Product Variations (reference) fields, such as the "variations" field of a commerce_product.
It mimics the price field formatters, but displays the lowest price of all variations within a product. A before and after label can be added to the price, e.g. "Starting at [price]".
The formatter uses a template which can be overridden if need be.

Example:
When a 'Laptop' product contains 3 published product variations with the prices $300, $500 and $700, the Variations formatter will display the $300 price with a chosen prefix and/or suffix label.
When all variations have the same price or there is only 1 variation, you can choose whether or not to display a label.

Configuration

After enabling the module, go to a product's manage display page and alter the field formatter of the Variations field to one of the 'from' price formatters. More information on the default and calculated formatters can be found here.

Configuration

Drupal commerce

Supporting organizations: 
Development
AttachmentSize
Screenshot 2024-01-07 at 08.50.50.png258.87 KB

Project information

Releases