In VirtueMart 2.0 nella selezione della modalità di pagamento la voce relativa all'importo aggiuntivo o allo sconto da applicare è sempre le medesima "Costo aggiuntivo" per risolvere il problema si deve editare il file:
\administrator\com_virtuemartad\com_virtuemart\plugins\vmpsplugin.php
Cercando il seguente codice:
$costDisplay = "";
if ($pluginSalesPrice) {
$costDisplay = $currency->priceDisplay ($pluginSalesPrice);
$controllo = $currency->priceDisplay ($pluginSalesPrice);
$costDisplay = '<span class="' . $this->_type . '_cost"> (' . JText::_ ('COM_VIRTUEMART_PLUGIN_COST_DISPLAY2') . $costDisplay . ")</span>";
} else {
$costDisplay = '<span class="' . $this->_type . '_cost"> (' . JText::_ ('COM_VIRTUEMART_PLUGIN_COST_DISPLAY') . $costDisplay . ")</span>";
}
e modificandolo così:
$costDisplay = "";
if ($pluginSalesPrice) {
$costDisplay = $currency->priceDisplay ($pluginSalesPrice);
$controllo = $currency->priceDisplay ($pluginSalesPrice);
$controllo = str_replace("€", "", $controllo);
$controllo = str_replace(",", ".", $controllo);
$controllo = str_replace(" ", "", $controllo);
if ($controllo < 0) {
$costDisplay = '<span class="' . $this->_type . '_cost"> (' . JText::_ ('COM_VIRTUEMART_PLUGIN_COST_DISPLAY2') . $costDisplay . ")</span>";
} else {
$costDisplay = '<span class="' . $this->_type . '_cost"> (' . JText::_ ('COM_VIRTUEMART_PLUGIN_COST_DISPLAY') . $costDisplay . ")</span>";
}
}
Nel file: /language/it-IT/it-IT.com_virtuemart.ini
andremo a inserire:
COM_VIRTUEMART_PLUGIN_COST_DISPLAY2="Sconto: "


