Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

add the subtotal, tax, shipping & total to checkout_payment


spencermjax

Recommended Posts

I want to add the subtotal, tax (if applicable), shipping & total to the checkout_payment page.

 

as of now I have tried the following, stolen from checkout_process.php. No luck, just errors.

 

<?php
 if (MODULE_ORDER_TOTAL_INSTALLED) {
$order_total_modules->process();
echo $order_total_modules->output();
 }
?>

 

 

I have also tried the following. It worked. I got the total number of items ordered, total cart amount(subtotal). now all I need it to get the shipping, tax and total.

 

Items Ordered:<?php echo $cart->count_contents(); ?> <br>				
Order Total:<?php echo $cart->show_total(); ?>

 

 

Ay thoughts or ideas would be apprecieated.

Link to comment
Share on other sites

I want to add the subtotal, tax (if applicable), shipping & total to the checkout_payment page.

 

as of now I have tried the following, stolen from checkout_process.php. No luck, just errors.

 

<?php
 if (MODULE_ORDER_TOTAL_INSTALLED) {
$order_total_modules->process();
echo $order_total_modules->output();
 }
?>

I have also tried the following. It worked. I got the total number of items ordered, total cart amount(subtotal). now all I need it to get the shipping, tax and total.

 

Items Ordered:<?php echo $cart->count_contents(); ?> <br>				
Order Total:<?php echo $cart->show_total(); ?>

Ay thoughts or ideas would be apprecieated.

 

I'm not sure if this is what you're looking for but I installed this recently and it works great. You will have to manually add your State taxes.

http://www.oscommerce.com/community/contri...ch,new+york+tax

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...