Post by deejunit » Wed Jun 08, 2011 5:20 am

Is there an easy way to remove the notification bar from the store front that is showing each time the customer e.g. adds an item to her shopping cart?

New member

Posts

Joined
Sat Jul 21, 2007 5:40 am

Post by deejunit » Tue Jul 19, 2011 6:23 am

Figured this one out myself.

I have removed the notification bar for success messages by simply removing two lines from common.js and my theme's product.tpl:

Change from

Code: Select all

if (json['success']) {
	$('#notification').html('<div class="attention" style="display: none;">' + json['success'] + '<img src="catalog/view/theme/default/image/close.png" alt="" class="close" /></div>');
	$('.attention').fadeIn('slow');
   $('#cart_total').html(json['total']);
To

Code: Select all

if (json['success']) {
   $('#cart_total').html(json['total']);
In common.js you will need to do this for addToCart, addToCompare and addToWishList depending on when you want to not show this notification...

New member

Posts

Joined
Sat Jul 21, 2007 5:40 am
Who is online

Users browsing this forum: No registered users and 23 guests