Jump to content

Module Question - volume increases price


seramibook

Recommended Posts

Hello everybody,

 

I am designing a website for a courier company. Depending on the weight, the price will be higher. For ex: 1kg is 20€ 5kg would be 50€. I used the combinations to make this possible.

 

The problem lies here. The customer will enter the length, width, height of the package he will post. Then we will calculate the volume like this;

 

length x width x height / 6000

 

If the result is higher than the number of Kg. that will be the price of the product, if it is lower, the price will remain the same.

 

For example.

 

 

3Kg= 30€

 

 

1st scenario

 

The result of the formula is less than 3. the price will remain the same, 30€

 

 

2nd scenario

 

The result of the formula is higher than 3, for ex. 5 Then the price will be the same as if the produt's weight is 5KG.

 

 

How can I make this possible?

 

Thank you

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...