I have this in the tpl_header file.
PHP Code:
<?php
// Display all header alerts via messageStack:
if ($messageStack->size('header') > 0) {
echo $messageStack->output('header');
}
if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) {
echo htmlspecialchars(urldecode($_GET['error_message']));
}
if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) {
echo htmlspecialchars($_GET['info_message']);
} else {
}
?>
The only time I notice this is getting called is when I successfully tell a friend about a product.
All the other errors/warnings/success's all display in the center column where I want them to. This one when called however, is pushing the whole layout down, thus making the site look like poo. I moved this code into the tpl_product_info_display.php inside the center column under my heading, where I want it.
It's working. But was I just wondering if I am going to run into problems later. I can't seem to find any though.
Bookmarks