Skip to content
Snippets Groups Projects
Commit b9524b6e authored by Reinhold Kainhofer's avatar Reinhold Kainhofer
Browse files

V1.4.2: Fix product display in VM2

parent 64fb39e2
No related branches found
No related tags found
No related merge requests found
BASE=acymailing_subscribe_buyer BASE=acymailing_subscribe_buyer
PLUGINTYPE=vmcustom PLUGINTYPE=vmcustom
VERSION=1.4.1 VERSION=1.4.2
PLUGINFILES=$(BASE).php $(BASE).script.php $(BASE).xml index.html PLUGINFILES=$(BASE).php $(BASE).script.php $(BASE).xml index.html
......
...@@ -210,7 +210,10 @@ class plgVmCustomAcyMailing_subscribe_Buyer extends vmCustomPlugin { ...@@ -210,7 +210,10 @@ class plgVmCustomAcyMailing_subscribe_Buyer extends vmCustomPlugin {
*/ */
// Legacy triggers for VM2: // Legacy triggers for VM2:
function plgVmOnDisplayProductVariantFE($field,&$row,&$group) { function plgVmOnDisplayProductVariantFE($field,&$row,&$group) {
return plgVmOnDisplayProductFE($field, $row, $group); // default return if it's not this plugin
if ($field->custom_element != $this->_name) return '';
$group->display .= $this->displayProduct($field);
return true;
} }
function plgVmOnDisplayProductFE( $product, &$idx,&$field){ function plgVmOnDisplayProductFE( $product, &$idx,&$field){
// default return if it's not this plugin // default return if it's not this plugin
......
...@@ -46,7 +46,7 @@ class plgVmCustomAcyMailing_subscribe_BuyerInstallerScript ...@@ -46,7 +46,7 @@ class plgVmCustomAcyMailing_subscribe_BuyerInstallerScript
public function install(JAdapterInstance $adapter) public function install(JAdapterInstance $adapter)
{ {
// enabling plugin // enabling plugin
$db =& JFactory::getDBO(); $db = JFactory::getDBO();
$db->setQuery('update #__extensions set enabled = 1 where type = "plugin" and element = "acymailing_subscribe_buyer" and folder = "vmcustom"'); $db->setQuery('update #__extensions set enabled = 1 where type = "plugin" and element = "acymailing_subscribe_buyer" and folder = "vmcustom"');
$db->query(); $db->query();
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<authorUrl>http://www.open-tools.net/</authorUrl> <authorUrl>http://www.open-tools.net/</authorUrl>
<copyright>Copyright (C) 2013-2014 Reinhold Kainhofer. All rights reserved.</copyright> <copyright>Copyright (C) 2013-2014 Reinhold Kainhofer. All rights reserved.</copyright>
<license>http://www.gnu.org/licenses/gpl.html GNU/GPL v3+</license> <license>http://www.gnu.org/licenses/gpl.html GNU/GPL v3+</license>
<version>1.4.1</version> <version>1.4.2</version>
<description>VMCUSTOM_ACYBUYER_DESC</description> <description>VMCUSTOM_ACYBUYER_DESC</description>
<files> <files>
<filename plugin="acymailing_subscribe_buyer">acymailing_subscribe_buyer.php</filename> <filename plugin="acymailing_subscribe_buyer">acymailing_subscribe_buyer.php</filename>
......
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment