Jump to content

Divide price by x number


Recommended Posts

Hello,

 

We sell health supplements and have various pack sizes (e.g. 60 tablets, 120 tablets etc). I'd like to display the count price (e.g. price per tablet) for each variation like this website (see attached).

 

All I need is the Smarty formula... e.g. something like {$product.regular_price} / x value

The x value will be set using a module, so all I need is the actual mathematical formula for Smarty... Hope I'm putting this the right way, I'm not a developer. :)

 

Can anyone help please? Thanks :)

example1.PNG

Share this post


Link to post
Share on other sites

Unit price is a standard field in the product combination setting, no need to do any calculation/development if it is set correctly

Share this post


Link to post
Share on other sites

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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More