Page 1 of 1

Change Text

Posted: Tue Apr 21, 2015 8:11 pm
by Hotpepper
How can I change the text in the top bar where it says "

Success: You have added a (product) to your shopping cart!

Can I change the colour of the text in the section, which file do I edit

Thanks for your help

???

Re: Change Text

Posted: Wed Apr 22, 2015 6:28 am
by IP_CAM
opencart-2.0.2.0\upload\catalog\language\english\checkout\cart.php

Code: Select all

$_['text_success']             = 'Success: You have added <a href="%s">%s</a> to your <a href="%s">shopping cart</a>!'; 
to change color, you would have to simply add css, to make it look like (untested!):

Code: Select all

$_['text_success']             = '<div style="font-family: Verdana, Arial; font-size: 12pt; color: darkgreen;"><strong>Success:</strong> You have added <a href="%s">%s</a> to your <a href="%s">shopping cart</a>!</div>
so avoiding to rewrite the Stylesheet.css. Try it, can't break much! Adjust font spec's + color according to your needs!
Good Luck
Ernie

Re: Change Text

Posted: Wed Apr 22, 2015 1:35 pm
by Hotpepper
Great that works

Thank you for your help

;D