VirtueMart Forum

VirtueMart 2 + 3 => Virtuemart Development and bug reports => Coding Central => Topic started by: joomlavod on July 03, 2013, 11:53:41 am

Title: billTotal in Cart module
Post by: joomlavod 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.