Jump to content

Dynamic display price


Riparian

Recommended Posts

Thanks for the advice... I have started looking into ajax but I would have thought javascript would have handled it (not that I know js very well at all).

 

To answer ManiacDan I think I may have mislead things.

 

I was hoping to have one field for quantity. The user inputs the quantity and on mouseout the total price is updated on the screen without re-loading. On moving to checkout the database is updated.

 

Cheers

 

Updating the quantity and having that update your subtotal is very simple javascript, just register a function to onchange that recalculates the total from the form and updates the span (or whatever).  A normal form post can submit to the database when they move on to checkout.

 

AJAX is unnecessary here.

 

-Dan

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.