Click here to Skip to main content
16,004,602 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to add product whose price depends on two parameters for e.g. length of rod and quantity

Suppose 1m rod cost 100rs , 2meter cost 200 rs and so on...

if user have to buy 9 meter ,4 rods total price will be 900*4 = 3600rs.


Is there any option avalible in backend for that or i have to do some customization in code .
please help
Posted

1 solution

Write a php function that takes in 2 arguments - length of rod and quantity, do the calculation and then returns the total price.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900