How to change language text?
One of the ways to make your store more unique and interesting is to change some of the text strings that are common for all online stores. This is why in this article we will show you how to change the "Add to Cart" text to something different.
Step 1: Using Language Overrides
You can change any language text on the fly without hacking files and updates won't affect your change in any case. You can search and filter any string with ease. Also, the changes are stored in files which makes no affect to the performance.
This is the easiest way to change anything in texts all over Arastta store, not only the front-end but also the admin panel. You can find the text just by filtering the text and choosing the "Catalog" or "Admin" client.
Step 2: Changing the language file manually
Beware that this method is NOT recommended as the changes will be overwritten when you update Arastta and/or the language packages.
- Access your store's files.
- Navigate to catalog/language/en-GB/default.php.
- Find the following string:
$_['button_cart'] = 'Add to Cart';
- Replace it with:
$_['button_cart'] = 'Get it!';
In the example above, we are changing the phrase with "Get it!", but you can change it to whatever you want it to be. By doing this change, you will modify the string globally and it will not matter what template you are using, as long as the button text is not hardcoded in it.