VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: ptrouw on December 23, 2013, 16:15:42 PM

Title: vmpsplugin.php overwrite, how?
Post by: ptrouw on December 23, 2013, 16:15:42 PM
I tried to use overwrite but this doesn't seem to work with /administrator files, as fas as I know.
In this file:
administrator/components/com_virtuemart/plugins/vmpsplugin.php
Line 784:
$costDisplay = '<span class="' . $this->_type . '_cost"> (' . JText::_ ('COM_VIRTUEMART_PLUGIN_COST_DISPLAY') . $costDisplay . ")</span>";

There are brackets used. I don't think they should be hard coded. Payment for shipping costs, are real, why but them between brackets!
Title: Re: vmpsplugin.php overwrite, how?
Post by: Milbo on April 14, 2014, 10:52:35 AM
In the moment you create a plugin, you can overwrite almost any function of the parent class.