How to override this plugin?
i dont need this:
(https://image.prntscr.com/image/uHMOJOVQSNiJFc4cKiL1oQ.png)
Override instruction not work for this plugin:
https://docs.virtuemart.net/tutorials/templating-layouts/101-how-to-overwrite-plugins.html
He surrounds the text with parentheses and adds a plus sign.
Before my template, in the standard template file of the standard delivery method comes an array
$this->shipments_shipment_rates, which already contains the generated html
<span class="vmshipment"><span class="vmshipment_name">Самовывоз в Нижнем НовгороSPAMе</span><span class="vmshipment_description">ул. Обухова, 11 оф, 101</span><span class="vmshipment_cost fee"> ( +3 000 р)</span></span>
Where was it generated?
I cant found this.
Long searches with debugging did not help me.
Anyone? Please answer if you know:
Which code generates this and transfers to vmshipment plugin?:
<span class="vmshipment_cost fee"> ( +3 000 р)</span>
It is created in:
\administrator\components\com_virtuemart\plugins\vmpsplugin.php
protected function getPluginHtml ($plugin, $selectedPlugin, $pluginSalesPrice) {
Quote from: AH on November 14, 2017, 09:42:42 AM
It is created in:
\administrator\components\com_virtuemart\plugins\vmpsplugin.php
protected function getPluginHtml ($plugin, $selectedPlugin, $pluginSalesPrice) {
Wow! many thanks!
As I see, this is core files. So, override is not possible?
A simple override is not possible.
But you could edit this file - and just reapply the change when you update VM
$costDisplay = '<span class="'.$this->_type.'_cost fee"> '.$fee.' '.$costDisplay."</span>";