Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Shopping Cart box


mitchk

Recommended Posts

Posted

Hi guys - I'm trying to create a shopping cart box in the right hand column which displays the current amount just like the checkout_confirmation.php page i.e I want it to show :-

 

Sub Total

Carriage

V.A.T

Total

 

now I'm very new to this oscommerce and really can't get my head around it ?

 

I borrowed some code from the checkout_confirmation.php :-

 

require(DIR_WS_CLASSES . 'order.php');

$order = new order;

require(DIR_WS_CLASSES . 'order_total.php');

$order_total_modules = new order_total;

$order_total_modules->process();

 

and then use $order_total_modules->output() to display in my infobox but it only shows the sub-total and the total ?

 

can somebody please tell me how to display the VAT and carriage lines as well while I still have some hair left

 

many thanks in advance.

 

mitch

 

 

- the reason I want it is to continually show exactly how much the customer is spending and a breakdown. I go to many sites only to find that by the time you have registered and then added addresses a few little suprise costings are added - only to be shown at the final confirmation page.... - hope this makes sense

Posted

yeah looked all over mate

 

mitch

 

seems a simple idea but no one seems to have made it

Posted

How will you work out carriage amount when you don't know the shipping address?

How will you work out VAT when you don't know if you need to charge VAT to the buyer?

Posted

carriage is free over £150 - it seems to work it out ok in the checkout_confirmation.php

 

I just sell to the UK so it is always 17.5%

 

 

mitch

Archived

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

×
×
  • Create New...