News:

Support the VirtueMart project and become a member

Main Menu

billTotal in Cart module

Started by joomlavod, July 03, 2013, 11:53:41 AM

Previous topic - Next topic

joomlavod

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.