Help with price calculation tool
-
Good morning,
Is anyone here familiar with the plugin: “E&P form builder by Loopus? ”
https://codecanyon.net/item/wp-cost-estimation-payment-forms-builder/7818230I am working for a client to make a price calculation for the number of solar panels per number of residents, only I am not very handy with java script.
This is an example of how I made it, only this does not work:
if([item-418_quantity] ==2) { [price] = [item-286_price]*4 } if([item-418_quantity] ==4) { [price] = [item-286_price]*8 } if([item-418_quantity] ==6) { [price] = [item-286_price]*12 } if([item-418_quantity] ==8) { [price] = [item-286_price]*16 }Here “item-418_quantity” is the number of persons and “item-286_price” the price of 1 solar panel which in this example costs 299.6 euro.
So for two people the price should be 1,198.4, but now it is 2,696.40.
What am I doing wrong?
- This topic was modified 4 years, 4 months ago by . Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
The page I need help with: [log in to see the link]
The topic ‘Help with price calculation tool’ is closed to new replies.