You can add messages such as 'Product has been Added to Cart!', or even add a message in MessageStack, by utilising the following snippet of code...
<?php
//add item to cart
if (tep_session_is_registered('new_products_id_in_cart')) {
...insert your logic here...
}
if (tep_session_is_registered('new_products_id_in_cart')) {
tep_session_unregister('new_products_id_in_cart');
}
?>
You could, for instance, insert in the product info page (just after the call for column left, using MS2.x as an example), like this...
<?php
if (tep_session_is_registered('new_products_id_in_cart')) {
echo '<tr>
<td class="messageStackSuccess">Product Added To Cart</td>
</tr>';
}
if (tep_session_is_registered('new_products_id_in_cart')) {
tep_session_unregister('new_products_id_in_cart');
}
?>
You can even have fun with jQuery and fade the message in when the new page loads to make it even more noticeable!
Edited by frankl, 11 September 2011, 10:18.















