Another quick fix to include in the next version:
Code:
<!-- body_text_eof //-->
<script>
<!--
handleShipping();
function handleShipping() {
if (document.getElementById('update_total_code') != undefined) {
if (document.getElementById('update_total_code').value == 'ot_shipping') {
document.getElementById('update_total_shipping').style.display = 'table-cell';
} else {
document.getElementById('update_total_shipping').style.display = 'none';
}
}
}
if (document.getElementById('update_total_code') != undefined) {
document.getElementById('update_total_code').onchange = function(){handleShipping();};
}
// -->
</script>
Without the 'undefined' check in each case, we end up getting a JS error while trying to edit orders.
Thanks!
Bookmarks