mitchk Posted August 12, 2008 Posted August 12, 2008 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
FIMBLE Posted August 12, 2008 Posted August 12, 2008 HIya, Have you lokoed in the contributions for a solution? Sounds like a good idea of yours here Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
mitchk Posted August 12, 2008 Author Posted August 12, 2008 yeah looked all over mate mitch seems a simple idea but no one seems to have made it
burt Posted August 12, 2008 Posted August 12, 2008 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?
mitchk Posted August 12, 2008 Author Posted August 12, 2008 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.