0

Products with unit variable cost

Hi I want to add a part to my website for selling Likes(instagram like for instance). How can I make it that customers see the price automatically by typing the number of likes they want into the related blank? for example this website https://www.instafollowers.co/buy-instagram-likes

23rd Apr 2020, 5:53 PM
Alireza Hadizadeh
Alireza Hadizadeh - avatar
2 odpowiedzi
0
if(like == 200){ cost = 500; }eslenif(like == 400){ cost = 1000; } you can use if else statement
23rd Apr 2020, 7:00 PM
Sudarshan Rai
Sudarshan Rai - avatar
0
I think you can do something like var cost=0.001$ var NumberOfLikes=prompt("to let the user type the number he wants " ) var FinalCost=cost*NumberOfLikes
26th Apr 2020, 10:51 PM
ahmed ouhssini
ahmed ouhssini - avatar