News:

Support the VirtueMart project and become a member

Main Menu

Place image below the payment name

Started by kesso31, November 06, 2013, 21:06:14 PM

Previous topic - Next topic

kesso31

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.

GJC Web Design

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

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation