Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

how to update text[x] field at orders_total ?


apophis

Recommended Posts

Hello,

 

my brain is complitely empty and I cant find out what I must do, so problem: Im buildin' wholesale shop, and sometimes there is need to change shipping price at administrator tools. but problem is that I cant change only needed column (at table orders_total field text),

with line:

tep_db_query("update " . TABLE_ORDERS_TOTAL . " set text = '" . tep_db_input($new_ship) . "' where orders_id = '" . tep_db_input($oID) . "'");

 

it changes all columns at text field, how is possible to change only one field ? only text[sizeof($order->totals)-2] ? later on ofcourse text[sizeof($order->totals)-1] too coz I see no option to make some automatic calculation system there.

 

please ... any help is welcome, any hint any whateva ...

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...