Author Topic: billTotal in Cart module  (Read 5233 times)

joomlavod

  • Beginner
  • *
  • Posts: 7
  • VirtueMart Version: 2.0.22a
billTotal in Cart module
« on: July 03, 2013, 11:53:41 AM »
Please fix this duct tape:

in cart module info about products  display like:
Code: [Select]
<div class="total" style="float: right;">
<?php if ($data->totalProduct and $show_price) echo  $data->billTotal?>
</div>

 $data->billTotal; formate in

Quote
\modules\mod_virtuemart_cart\mod_virtuemart_cart.php
Code: [Select]
51 $data->billTotal = $lang->_('COM_VIRTUEMART_CART_TOTAL').' : <strong>'. $data->billTotal .'</strong>';
Quote
\components\com_virtuemart\controllers\cart.php
Code: [Select]
165 $data->billTotal = $lang->_('COM_VIRTUEMART_CART_TOTAL').' : <strong>'. $data->billTotal .'</strong>';
this is real  linguistic crutch.

PLEASE fix it like:
Code: [Select]
$data->billTotal = JText::sprintf('COM_VIRTUEMART_CART_TOTAL_X',$data->billTotal) ;
Code: [Select]
COM_VIRTUEMART_CART_TOTAL_X="Price : %s"

OR PERFECTLY DO NOT insert some text in $data->billTotal , change only
Code: [Select]
<div class="total" style="float: right;">
<?php if ($data->totalProduct and $show_price) echo  JText::sprintf('COM_VIRTUEMART_CART_TOTAL_X',$data->billTotal)  ?>
</div>
its best way.
P.S Sorry for my english.