Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Get value from price calc into shopping cart


Guest

Recommended Posts

Posted

Hello fellow osCommercers.

 

I have a question regarding value moving in osCommerce.

 

I've made a simple price calculator in javascript which i would like to expand by adding the calculated price with the product item into the cart.

 

Currently all of the script is in a single html file, which i would like to get implemented into the product information page. This should not be a problem since all of the products in the webshop will be custom sized. Can you foresee any other problems, or simpler way of implementing this?

 

 

Please ask if you dont understand my question, or need more information.

Here is the form code:

 <form method="post" action="">
	   <fieldset>
		<legend>Pris udregner</legend>
			<label>Length: <input type='text' name='length' size='5' onblur="calc(this.form)"></label>
			<label>Width:  <input type='text' name='width' size='5' onblur="calc(this.form)"></label>

			<label>Total:   <input type='text' name='total' size='5' readonly></label>

			<input type='submit' name='submit' value="Submit" class='submitBtn'>
	   </fieldset>
	</form>

 

Regards,

Mark

Posted

you must use tep_href_link:

 

<?php echo tep_draw_form('name', tep_href_link(basename($PHP_SELF), '', $request_type), 'post'); ?>

 

http://www.oscommerce.com/forums/index.php?showtopic=330479

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Posted

Spooks, thanks for that enlightening post.

Archived

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

×
×
  • Create New...