When I add an item to the cart i get the message popping up saying that it has been successful but there is an exclimation mark on this message, Everything still works, but is there a way to change this to a tick mark or something as it makes me think there is an error.
The official opencart demo also seems to have this problem (if it is a problem)
The official opencart demo also seems to have this problem (if it is a problem)
Attachments
Added to cart message - Capture.JPG (24.94 KiB) Viewed 1471 times
You actually need to edit the Javascript file
catalog/view/javascript/common.js
Find
Change to
And then also...
catalog/view/theme/dedault/template/product/product.tpl
Find
Change to
job done.
catalog/view/javascript/common.js
Find
Code: Select all
$('#notification').html('<div class="attention" style="display: none;">' + json['success'] + '<img src="catalog/view/theme/default/image/close.png" alt="" class="close" /></div>');
Code: Select all
$('#notification').html('<div class="success" style="display: none;">' + json['success'] + '<img src="catalog/view/theme/default/image/close.png" alt="" class="close" /></div>');
catalog/view/theme/dedault/template/product/product.tpl
Find
Code: Select all
$('#notification').html('<div class="attention" style="display: none;">' + json['success'] + '<img src="catalog/view/theme/default/image/close.png" alt="" class="close" /></div>');
Code: Select all
$('#notification').html('<div class="success" style="display: none;">' + json['success'] + '<img src="catalog/view/theme/default/image/close.png" alt="" class="close" /></div>');
... so sorry. I see now what you're getting at. I think the whole box may be styled incorrectly.
If you successfully add an item to the cart, the source code shows it generates - with the icon and background color you see.
I think it is meant to show with background-color #EAF7D9 (green) and the tick box in the image file - catalog/view/theme/default/image/success.png
Looks like a minor bug to me?
======
EDIT - thanks for the fix jcsmithy! You got there 2 mins before me
If you successfully add an item to the cart, the source code shows it generates
Code: Select all
<div style="attention">
I think it is meant to show
Code: Select all
<div style="success">
Looks like a minor bug to me?
======
EDIT - thanks for the fix jcsmithy! You got there 2 mins before me

Thanks for helping me
but i found that your suggested fix did not properly work for me
i found that I also needed to change the line below it in the common.js
From
To
But thanks for pointing me in the right direction
I also changed the same for when the user adds to wishlist or compare, as it was also showing attention, and not success

i found that I also needed to change the line below it in the common.js
From
Code: Select all
$('.attention').fadeIn('slow');
Code: Select all
$('.success').fadeIn('slow');
I also changed the same for when the user adds to wishlist or compare, as it was also showing attention, and not success
Who is online
Users browsing this forum: Amazon [Bot] and 142 guests