Jump to content

Divide price by x number


TheSmithsDoBusiness

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

Link to comment
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
×
×
  • Create New...