Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

price caculate problem


engelleo

Recommended Posts

categories.gif

hi dude, I modified the interface of adding new products, look like the picture above!

I added two columns in the product table, product_ve and product_ve_price! it works well in my store,

 

now I wanna use onkeyup function to let it caculate automaticly!

 

for example, when I choise tax class , input single price and product-quantity/ve, the rest 2 input fields will show the result the figure they should be.

 

tax class:19%

single price:20 euro

product-quantity/ve:6

 

carton price (net): should be 20*6=120

and the carton proce (gross): should be 120*119%=142.8

 

 

?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_input_field('products_price', $pInfo->products_price, 'onKeyUp="updateGross()"'); ?>

 

 

can sb tell me how to let the 3rd inputfield-carton price (net) get the caculated result__?? I wrote a onkeyup function, but doesnt work... thx a lot..

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...