Öffentliche CodeCanyon-Diskussion · WP Cost Estimation & Payment Forms Builder
Frage von sitesforchrist
1 direkte Autorenwort in diesem öffentlichen CodeCanyon-Gespräch.
I have a minimum quantity I want to set on an item of 5 but those first 5 are free. If they select more than 5 then the price of that item should start calculating based on the quantity ($15 per item) excluding those first 5. How can I do this? This is the calculation I've tried but it's not working: 0 if(([item-11_quantity] >5) ) { (15)*([item-11_quantity]-5) }
I actually figured it out. I was forgetting that I wasn't calculating the entire price but the price per item. If anyone else needs to do this type of thing this is how it would work: 0 if(([item-11_quantity] >5) ) { ([item-11_quantity] -5) * (15)/([item-11_quantity]) } With the 15 being the price per item and the 5 being how many are free. Hope this helps someone else. :) Thanks again for the great plugin!
Thank you :)