Post by astott2014 » Tue Jan 13, 2015 4:58 pm

How do I remove the pop up success message when I add a product to my cart?

I don't want any popup confirmation, just want it to smoothly go into the cart with any fuss ;D .

Website address removed
Last edited by astott2014 on Sun Jan 18, 2015 7:20 pm, edited 2 times in total.

Active Member

Posts

Joined
Thu Sep 18, 2014 4:39 pm

Post by astott2014 » Wed Jan 14, 2015 7:18 am

Bump :) .

Active Member

Posts

Joined
Thu Sep 18, 2014 4:39 pm


Post by melbagnato » Wed Jan 14, 2015 3:29 pm

What version of OpenCart?

- Mel

http://online.enterpriseconsulting.com.au

Site with OpenCart extensions & code downloads, many new extensions coming soon!
Follow us on twitter for more updates

Image


User avatar
Active Member

Posts

Joined
Wed Jan 13, 2010 1:39 pm
Location - Melbourne

Re:


Post by astott2014 » Thu Jan 15, 2015 11:36 am

melbagnato wrote:What version of OpenCart?

- Mel
Thanks for your reply.

I am using 1.5.6.4.

Active Member

Posts

Joined
Thu Sep 18, 2014 4:39 pm

Post by melbagnato » Thu Jan 15, 2015 1:03 pm

Go to "\catalog\view\theme\default\template\product\product.tpl" and look for this code towards the bottom:

Code: Select all

			if (json['success']) {
				$('#notification').html('<div class="success" style="display: none;">' + json['success'] + '<img src="catalog/view/theme/default/image/close.png" alt="" class="close" /></div>');
					
				$('.success').fadeIn('slow');
					
				$('#cart-total').html(json['total']);
				
				$('html, body').animate({ scrollTop: 0 }, 'slow'); 
			}	
This is the section that creates the notification that you need to comment out/over ride with mod.

- Mel

http://online.enterpriseconsulting.com.au

Site with OpenCart extensions & code downloads, many new extensions coming soon!
Follow us on twitter for more updates

Image


User avatar
Active Member

Posts

Joined
Wed Jan 13, 2010 1:39 pm
Location - Melbourne

Post by astott2014 » Fri Jan 16, 2015 2:57 pm

melbagnato wrote:Go to "\catalog\view\theme\default\template\product\product.tpl" and look for this code towards the bottom:

Code: Select all

			if (json['success']) {
				$('#notification').html('<div class="success" style="display: none;">' + json['success'] + '<img src="catalog/view/theme/default/image/close.png" alt="" class="close" /></div>');
					
				$('.success').fadeIn('slow');
					
				$('#cart-total').html(json['total']);
				
				$('html, body').animate({ scrollTop: 0 }, 'slow'); 
			}	
This is the section that creates the notification that you need to comment out/over ride with mod.

- Mel
When you say comment out/over ride by mod, what do you mean exactly?

I have tried to comment it out, but it still shows. I then tried to delete it, and it still shows. I may be missing the "over ride with mod"?

Active Member

Posts

Joined
Thu Sep 18, 2014 4:39 pm

Post by astott2014 » Sat Jan 17, 2015 10:01 pm

bump O0

Active Member

Posts

Joined
Thu Sep 18, 2014 4:39 pm

Post by pprmkr » Sun Jan 18, 2015 3:55 pm

First edit catalog/view/javascript/common.js

At line 131 find:

Code: Select all

				$('.success').fadeIn('slow');
Change into:

Code: Select all

				// $('.success').fadeIn('slow');
Second edit catalog/view/theme/YOUR_THEME/template/product/product.tpl
At line 406 in default product.tpl, find:

Code: Select all

				$('.success').fadeIn('slow');
Change into:

Code: Select all

				// $('.success').fadeIn('slow');

User avatar
Active Member

Posts

Joined
Sat Jan 08, 2011 11:05 pm
Location - Netherlands

Post by astott2014 » Sun Jan 18, 2015 6:58 pm

pprmkr wrote:First edit catalog/view/javascript/common.js

Second edit catalog/view/theme/YOUR_THEME/template/product/product.tpl
Done exactly what you said, and it still hasn't worked.

The second step you told me to do, the code was on a completely different line if thats helps. It was on line 747.

Bellow is the surrounding code to see if it helps you a little?:

Code: Select all

   if (json['error']['profile']) {
                    $('select[name="profile_id"]').after('<span class="error">' + json['error']['profile'] + '</span>');
                }
			}

			if (json['success']) {
                if (!Journal.showNotification(json['success'], json['image'])) {
				    $('#notification').html('<div class="success" style="display: none;">' + json['success'] + '<img src="catalog/view/theme/default/image/close.png" alt="" class="close" /></div>');
                }

				// $('.success').fadeIn('slow');

				$('#cart-total').html(json['total']);

				$('html, body').animate({ scrollTop: 0 }, 'slow');

                if (json['redirect']) {
                    location = json['redirect'];
                }

Active Member

Posts

Joined
Thu Sep 18, 2014 4:39 pm

Post by astott2014 » Sun Jan 18, 2015 7:08 pm

Not sure if this is relevant, but I have VQMod installed using a custom template, not default.

Active Member

Posts

Joined
Thu Sep 18, 2014 4:39 pm

Post by astott2014 » Sun Jan 18, 2015 7:20 pm

Wait!!, I got it.... It only turned out to be that the custom admin theme has the feature to turn it on or off :o :o .

Thanks to anyone who helped ;D .
Last edited by astott2014 on Mon Jan 19, 2015 1:22 pm, edited 1 time in total.

Active Member

Posts

Joined
Thu Sep 18, 2014 4:39 pm

Post by melbagnato » Sun Jan 18, 2015 11:04 pm

Great to see you solved it. I spent much of the weekend tracking down a Romanian hacker trying to hack my site!

- Mel

http://online.enterpriseconsulting.com.au

Site with OpenCart extensions & code downloads, many new extensions coming soon!
Follow us on twitter for more updates

Image


User avatar
Active Member

Posts

Joined
Wed Jan 13, 2010 1:39 pm
Location - Melbourne

Post by stefg » Mon Nov 25, 2019 2:18 pm

Hi,
how do I remove this message in opencart 3 ?

New member

Posts

Joined
Fri Oct 18, 2019 7:25 pm
Who is online

Users browsing this forum: No registered users and 46 guests