Good morning, we are implementing custom shipping based on certain rules. If an order is over £100 the shipping is free, otherwise it is £6.95.
We have been attempting to run a script each time you add an item to check the total amount on the order so far and update the shipping cost field accordingly. The only issue is, when adding an item it doesn't appear to trigger any of the mainline fields such as netamountnotax, subtotal etc.
We could run a check on all lines and total them up but this would be very slow every time you add an item and may even run out of governance on bigger orders.
We wondered if there were any suggestions on how else we could trigger this script, as ideally it would be when there is a fieldChanged event on the subtotal but we can't seem to do that?