Hi Tony,
Didn't get a chance to try your code as I solved it last night by installing the Empty Cart Manager and then editing these two files:
tpl_shopping_cart_default..... changed the new coding to this:
PHP Code:
<!-- BEGIN Empty Cart Manager 1/1 -->
<?php
if (DISPLAY_EMPTY_CART_MANAGER == 0) {
} else {
?>
<br />
<div align=center>
<script type="text/javascript">
document.write('<?php echo REDIRECT_MESSAGE_EMPTY_CART; ?>');
setTimeout( "window.location.href = '<?php echo zen_href_link(FILENAME_DEFAULT, '', 'NONSSL'); ?>'", 3*1000 );
</script>
<noscript></noscript>
</div>
<?php
}
?>
<!-- END Empty Cart Manager 1/1 -->
cart_manager_defines..... customised language code to this:
PHP Code:
if (DISPLAY_EMPTY_CART_MANAGER == 2) {
define('REDIRECT_MESSAGE_EMPTY_CART', 'You are being redirected to our home page<p><img src="http://www.limelites.co.uk/includes/templates/freetemplate2/images/ajax-loader.gif"></p><p><img src="http://www.limelites.co.uk/includes/templates/freetemplate2/images/white.jpg"></p>' );
}
It's a sort of cheating solution that uses a large white .jpg to hide the page temporarily while the ajax.loader is displayed under the text... seems to work well though and I'm happy with it :-)
Another solution that's come to light, might have been to edit the main file I was trying to use to enable the left column again, something like this should work (but has not been tested) - thanks s_t_e_v_e for the following suggestion which knowing you will almost certainly work:
tpl_main_page.php....
PHP Code:
if (in_array($current_page_base,explode(",",'login,checkout,account,create_account')) ) {
$flag_disable_left = true;
}
if (in_array($current_page_base,explode(",",'login,account')) ) {
$flag_disable_footer = true;
}
if (in_array($current_page_base,explode(",",'login')) ) {
$flag_disable_header = true;
}
if ($current_page_base == 'shopping_cart' && $_SESSION['cart']->count_contents() > 0 ) {
$flag_disable_left = true;
}