Good afternoon! I work with OpenCart, and I do not know how to embody my idea. We have 2 fields in the admin area where we enter the words:

<?php echo $price_en; ?> <?php echo $price_ru ?> 

It is necessary that the line

 <?php echo $price_en; ?> - работала в английской версии сайта а строка <?php echo $price_ru; ?> - работала в русской версии сайта 

    1 answer 1

    You can do this: In the catalog/controller/product/product.php add a variable, in which the code of the current language is, to check the condition in the $lng = $this->language->get('code'); And in the product template catalog/view/theme/default/template/product/product.tpl we make the condition:

     <?php if ($lng = 'en') { ?> <?php echo $price_en; ?> <?php } else { ?> <?php echo $price_ru; ?> <?php } ?>