Hi all PHP gurus,
how can I solve this:
I have filled variable total (total oredr)
This variable I must recalculate before sending, ie (look at HERE word)
total = 100
Example
---------------------
function process_button( ) {
global $order;
$process_button _string = web_draw_hidden _field('x_login ', blah blah
....) .
HERE web_draw_hidden _field('x_amoun t',
number_format($ order->info['total'], 2)) .
Here must total be not 100, but divided with 5.85
How can I do that?
I have tryed
web_draw_hidden _field('x_amoun t', number_format($ order->info['total/5.85'],
2)) .
but did not work
Thank you
how can I solve this:
I have filled variable total (total oredr)
This variable I must recalculate before sending, ie (look at HERE word)
total = 100
Example
---------------------
function process_button( ) {
global $order;
$process_button _string = web_draw_hidden _field('x_login ', blah blah
....) .
HERE web_draw_hidden _field('x_amoun t',
number_format($ order->info['total'], 2)) .
Here must total be not 100, but divided with 5.85
How can I do that?
I have tryed
web_draw_hidden _field('x_amoun t', number_format($ order->info['total/5.85'],
2)) .
but did not work
Thank you
Comment