Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Order total value


e-XPLoDeR

Recommended Posts

amf9.jpg

 

Hi. As in the picture above, I want to get order total and write in form element like:

 

<input type="hidden" name="total" value="87.50">

 

value, will be order total.

 

How can I get this total and print it to value place?

 

Thanks.

Link to comment
Share on other sites

amf9.jpg

 

Hi. As in the picture above, I want to get order total and write in form element like:

 

<input type="hidden" name="total" value="87.50">

 

value, will be order total.

 

How can I get this total and print it to value place?

 

Thanks.

 

In checkout_confirmation.php file , replace the code from line no 228 to 233

 

<?php

if (MODULE_ORDER_TOTAL_INSTALLED) {

$order_total_modules->process();

echo $order_total_modules->output();

}

?>

 

with

 

<?php

 

if (MODULE_ORDER_TOTAL_INSTALLED) {

$order_total_modules->process();

echo $order_total_modules->output();

?>

<input type = "text" name = "total" value = "<?php echo $order->info['total']?>">

<?php

}

 

 

?>

Hard Work Is The Simplest Way Of Success

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...