VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: dnlvsci on February 12, 2012, 18:24:35 PM

Title: Payment info on Cart page
Post by: dnlvsci on February 12, 2012, 18:24:35 PM
Hello!

I read some of people seraching payment info in cart page (included me:P) Now I made it.

I'm using VM 2.0.1f so the line numbers may be different on each other release.


First open the administrator/components/com_virtuemart/plugins/vmpsplugin.php

After go to 692 line and paste this (After  /  protected function renderPluginName($plugin) {$return = '';   /)
$pluginmethod_id = $this->_idName;
in 695 line this
$plugin_info = $this->_psType . '_info';
in 697 line
$info = '';
$document = &JFactory::getDocument();
$document->addScriptDeclaration("
jQuery(document).ready(function($) {
$('div#info_id_" . $plugin->$pluginmethod_id . "').hide();
$('span.click_info_id_" . $plugin->$pluginmethod_id . "').click( function(){
$.facebox( { div: '#info_id_" . $plugin->$pluginmethod_id . "' }, 'my-groovy-style');
});
});
");


in 715 line this
if (!empty($plugin->$plugin_info)) {
$info = '<span class="' . $this->_type . '_info"><span class="click_info_id_' . $plugin->$pluginmethod_id . '" rel="facebox">(Click here for more info)<span class="vm2-modallink"></span></span>
<div id="info_id_' . $plugin->$pluginmethod_id . '">' . $plugin->$plugin_info . '</div></span>';
}


and final in line 719 replace this
$pluginName = $return . '<span class="' . $this->_type . '_name">' . $plugin->$plugin_name . '</span>' . $description ;
to
$pluginName = $return . '<span class="' . $this->_type . '_name">' . $plugin->$plugin_name . '</span>' . $description . $info;

Here is the final result:


[attachment cleanup by admin]
Title: Re: Payment info on Cart page
Post by: servlet on May 19, 2014, 06:47:24 AM
Hello
Is it possible to display bank info in other position, not in cart table