Hi,
I'd like to alter the place where $messageStack is echo-ed. For instance, when you redeem a gift certificate code during check out, which is invalid, the error message appears at the top the screen. Can you alter this position?
Thanks,
Jurjen
Hi,
I'd like to alter the place where $messageStack is echo-ed. For instance, when you redeem a gift certificate code during check out, which is invalid, the error message appears at the top the screen. Can you alter this position?
Thanks,
Jurjen
Yes. You simply open up the template file for the page where you want to move it and move the code that echoes out the stack. It already appears in different places on different pages. Sometimes at the top, sometimes in the body of the page, depending upon which message set is being output.
Kuroi Web Design and Development | Twitter
(Questions answered in the forum only - so that any forum member can benefit - not by personal message)
Ah nice, thanks.
Some messages are easy to alter.
However, I can't get the message altered, which is shown when you add a items to your cart, and display show cart set to "off".
I know this is the code :
In shopping_cart.php...Code:if (DISPLAY_CART == 'false' && $_GET['main_page'] != FILENAME_SHOPPING_CART) { $messageStack->add_session('header', SUCCESS_ADDED_TO_CART_PRODUCT, 'success'); }
The 'header' adds the message to the top of the page, but I'd like to add it to the top of the product listing...
Can you help me out?
Thanks,
Jurjen