Hello !
have tried the last days/weeks to do some customizing in drupal 6.x / ubercart and although I am sure it´s a great piece of code it´s getting very frustrating - if anyone can help me - please (!) do so...
I have a custom validation function which is called whenever something is put into the cart.
within I calculate the 'real price' (which is generated according to various attributes,...) and now I want to set the price of the product manually
printing $form_state['values'] results in:
Array
(
[nid] => 82
[qty] => 4
[op] => In den Warenkorb legen
[submit] => In den Warenkorb legen
[node] => stdClass Object
(
[nid] => 82
[type] => warengruppe_wunsch_pizza
[language] => de
[uid] => 0
[status] => 1
...
[sell_price] => 4.10000
...(I am not even sure which $form field holds that value)
and I just want to set the price to the value I calculated so that it in all following displays and calculations the new price will be used
(I have to it manually because the way the price is calculated is quite complex)
I have tried everything, read various post, requests,... since now nearly 16 hours and I have achived nothing.
If anyone can point me the way or better (since I think it´s not more than 3-4 lines of code) show me how it´s done - well, you´d really help me to get over this stage of frustration
thanks,
m.
ps: I´m posting this question on another forum as well
