Jump to content

Calculate price when checkbox selected


fbm247

Recommended Posts

Hi,

 

I was wondering if anyone knows of any good guides or places i can learn how to do a form which when the visitor selects checkbox options it calcualtes a price for them. For example

 

base price for a PC is $150

 

checkbox options

 

add memory $20

add graphics card $40

upgrade processor $60

 

When they select the checkboxes the price is added up. I seen it on this website but have no idea where to start

 

http://getmefast.com/

 

Scroll down on the home page and you will see the form in a yellow box, I want to offer something like this to my customers so they can customise PC components on the site and get a price for the PC they created depending on parts they selected.

 

Idealy i want the price to be calculated in real time without them havign to click a calculate price button which i guess is javascript mixed in with PHP on the form, not really sure so any pointers will be great.

 

Cheers

Link to comment
https://forums.phpfreaks.com/topic/156418-calculate-price-when-checkbox-selected/
Share on other sites

Anyone know of any free scripts which can be used for the javascript side of i see from the source code on that website they have a value assigned to the checkbox which i assume is passed through the javascript to calculate the price.

 

I guess i need to find an exampel script which i can look through and try to understand how it works so if anyone knows a link to a free script i can copy and edit please post.

 

Cheers

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.