Jump to content

Adding A "price Per {Unit}" Field To Products

Maury Markowitz

Recommended Posts

Many products come in different packaging sizes and it's common to have a small field that says something like "10 cents per gram" for food or "$2.50 per meter" for cloth. In my case our products are often something like "79 cents per watt".


I am thinking that I could add a Feature for the number of units, and another for the "unit of measure". Or is there a better place?


But now how would I calculate the value in the template where I want to display it? Is there any possibility of avoiding PHP and doing this in smarty alone?

Link to comment
Share on other sites

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...