flat fee only

pjba

No avatar

2006-04-09 01:17

Sorry about this but I can't find the orginal thread.

Can someone please explain how to have a flat fee only without the selection and have this added to the total cost. For V1.2.
The code is slightly differen to solution in the forum and I can't get it to add the deliverly to the total cost.

pjba

No avatar

2006-04-09 11:38

Ok, if no one knows how to automatically calculate flat fee. Could someone please advise how I may add a set amount to the total cost in orders_delivery only.

i.e. is there a way to add set amount to the total from core/orders.php

Thanks

pjba

No avatar

2006-04-09 11:47

Sorry in case it is not clear I would like to turn off courier and have a flat fee automatically calculated in QCv1.2. There is a solution in the forum for a different QC version, but this does not work for QCv1.2.

wizzud

No avatar

2006-04-11 13:05

Add a Courier called, say, Delivery, with the flat fee required
Edit orders_delivery.tpl and ...
- remove <option value="">$lang[choose]</option> from before $sCourierSelect
- set the <tr> that contained the above code to <tr style='display:none;'>

wizzud

No avatar

2006-04-11 13:20

... Oh, and if you're not using Tax and Discount you might also need this bit of javascript inserting immediately after the </form> closing tag ...

<?php
<script type="text/javascript">
ordersCouriers(document.form['iCourier']);
</script>
?>

pjba

No avatar

2006-04-12 19:22

Thanks wizzud, but this doesn't work?
It still doesn't total the amount to include the delivery cost.

Interestingly it does do it in the back end (admin) where you check your orders.

pjba

No avatar

2006-04-14 00:48

Sorry to harp on about this, but can anybody please help?

1. Either have a flat fee automatic total or

2. add a set amount to the total cost via the core/orders.php

wizzud

No avatar

2006-04-14 10:35

Use this script instead of that above ...

<?php
<script type="text/javascript">
ordersCouriers(document.getElementsByName('iCourier')[0]);
</script>
?>

pjba

No avatar

2006-04-20 22:46

Thanks very much wizzud for your help
You have sorted it, now works.

Back to top
about us | contact