According to the standard in the opencard, the basket in the header is displayed as follows: 49 item (s) - 11,124.00. I need to display only the amount: 11,124.00.

I tried to edit the language file ($ _ ['text_items'] = '% s item (s) -% s';), everything was fine until you click on add items to cart. After pressing the button, the inscription becomes the same. How to make sure that only the amount of goods is always displayed? Or how to break it into 2 variables?

    1 answer 1

    To display the order amount instead of the amount + amount you need:

    1. In language/russian/module/cart.php replace the standard text_items with:

     $_['text_items'] = 'Корзина: %s'; 

    1. In controller/module/cart.php find the line with text_items and replace with:

     $this->data['text_items'] = sprintf($this->language>get('text_items'), $this->currency->format($total)); 

    1. In view/...../module/cart.tpl find the div heading and replace it with:

     <div class="heading"> <a title="<?php echo $heading_title; ?>"><span id="cart- total"><?php echo $text_items; ?></span></a> </div>