VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: kesso31 on November 06, 2013, 21:06:14 PM

Title: Place image below the payment name
Post by: kesso31 on November 06, 2013, 21:06:14 PM
HI, i have one question, how to place image in payments below payment name ...  or where i find the <img> in the code ... I already scan all as much as possible

my site is www.europasky.sk

Thx.
Title: Re: Place image below the payment name
Post by: GJC Web Design on November 06, 2013, 22:29:39 PM
images in images/stories/virtuemart/payment/ will be selectable in the payment plugins

the plugin name and logo is rendered in  administrator/components/com_virtuemart/plugins/vmpsplugin.php ~ line 732

protected function renderPluginName ($plugin) {
$return = '';
$plugin_name = $this->_psType . '_name';
$plugin_desc = $this->_psType . '_desc';
$description = '';
// $params = new JParameter($plugin->$plugin_params);
// $logo = $params->get($this->_psType . '_logos');
$logosFieldName = $this->_psType . '_logos';
$logos = $plugin->$logosFieldName;
if (!empty($logos)) {
$return = $this->displayLogos ($logos) . ' ';
}
if (!empty($plugin->$plugin_desc)) {
$description = '<span class="' . $this->_type . '_description">' . $plugin->$plugin_desc . '</span>';
}
$pluginName = $return . '<span class="' . $this->_type . '_name">' . $plugin->$plugin_name . '</span>' . $description;
return $pluginName;
}


changing the line

$pluginName = $return . '<span class="' . $this->_type . '_name">' . $plugin->$plugin_name . '</span>' . $description;

to

$pluginName = '<span class="' . $this->_type . '_name">' . $plugin->$plugin_name . '</span>' . $description.'<br/>'.$return ;

should do it