In Magento (v18.104.22.168) I want to replace 'Out of Stock' to 'Sorry sold out' Which file I need to edit please? I want a solution that is not lost after migration.
If you did not change template setting, you should look for it in
app/design/frontend/base/default/template folder. There are some places that you need to change:
- Product view: in
- Product list:
You should also find different places for different types of products as well.
Or I think you can change by editing CSV translation file (
The easiest solution which makes it possible to do things well and allowing to not modify the phtml file is to change the translation file
app/locale/language_ISO/Mage_Catalog.csvIn the line about 465
"Out of Stock","Sorry sold out"
EDIT: If you haven't modified the phtml, check please if you have this piece of code:
<?php echo $this->helper('catalog')->__('Out of stock') ?>
<?php if ($_product->isAvailable()): ?> <p class="availability in-stock"><?php echo $this->__('Availability:') ?> <span><?php echo $this->__('Places Available') ?></span></p> <?php else: ?> <p class="availability out-of-stock"><?php echo $this->__('Availability:') ?> <span><?php echo $this->__('All Booked - Please Contact Us') ?></span></p> <?php endif; ?>
As you are saying you want to migrate then you can use database(inline) translation because database translation will migrate to migento2
so here is the example how you can translate the word in.
please check above tutorial will teach you how to use database(inline) translation.
Thank you all for pointing me in right direction. After some trial I solved it by updating below files.
/app/design/frontend/mytheme/mychildtheme/template/catalog/product Files: list.phtml & view.phtml