Skip to content

azimuth/spree-units-of-measure

Repository files navigation

Units Of Measure

Allow customers to purchase some products by weight, such as deli meats, while retaining the ability to purchase others by "each". While not included in the first implementation, design will support addition of units.

Included:

UnitOfMeasure Model with 2 calculators:

  • Each - wraps the standard existing product calculation
  • Weight - Calculates cost based on decimal weight * price

Helper method for displaying the quantity message (for use after quantity input elements, each, ea., pounds, lbs).

About

UOM support for buying some products by weight

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages