VirtueMart Forum

VirtueMart 2 + 3 + 4 => 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:

<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

51 $data->billTotal = $lang->_('COM_VIRTUEMART_CART_TOTAL').' : <strong>'. $data->billTotal .'</strong>';

Quote\components\com_virtuemart\controllers\cart.php

165 $data->billTotal = $lang->_('COM_VIRTUEMART_CART_TOTAL').' : <strong>'. $data->billTotal .'</strong>';

this is real  linguistic crutch.

PLEASE fix it like:

$data->billTotal = JText::sprintf('COM_VIRTUEMART_CART_TOTAL_X',$data->billTotal) ;


COM_VIRTUEMART_CART_TOTAL_X="Price : %s"


OR PERFECTLY DO NOT insert some text in $data->billTotal , change only
<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.