hello, maybe you mean this part of VM core file that handles the discount/fee part of the payment/shipping methods:
- Code: Select all
if ($pluginSalesPrice) {
$costDisplay = $currency->priceDisplay( $pluginSalesPrice );
$t = vmText::_( 'COM_VIRTUEMART_PLUGIN_COST_DISPLAY' );
if(strpos($t,'/')!==FALSE){
list($discount, $fee) = explode( '/', vmText::_( 'COM_VIRTUEMART_PLUGIN_COST_DISPLAY' ) );
if($pluginSalesPrice>=0) {
$costDisplay = '<span class="'.$this->_type.'_cost fee"> ('.$fee.' '.$costDisplay.")</span>";
} else if($pluginSalesPrice<0) {
$costDisplay = trim(strip_tags($costDisplay),'-');
$costDisplay = '<span class="'.$this->_type.'_cost discount"> ('.$discount.' '.$costDisplay.")</span>";
}
} else {
$costDisplay = '<span class="'.$this->_type.'_cost fee"> ('.$t.' '.$costDisplay.")</span>";
}
}
as defined in:
administrator\components\com_virtuemart\plugins\vmpsplugin.php
so per the definition above:
1. if the language string COM_VIRTUEMART_PLUGIN_COST_DISPLAY includes "/" first part will be used as discount text and second part as fee text
2. if there is no "/" it considers it to be just the costs/fee
3. you cannot really get rid of the parenthesis since it's within the VM core file
best regards, stan