I'm trying to setup a plugin of type vmshopper, but to no avail. I've been scouring google and can't find anything that seems to help so I wanted to ask if anyone here could spot an issue.
Here's my xml file:
<?xml version="1.0" encoding="UTF-8" ?>
<extension version="2.5" type="plugin" group="vmshopper" >
<name>VM Sync with ConstantContact</name>
<creationDate>November 2013</creationDate>
<author>Jake Newsom</author>
<copyright>Copyright (C) 2013 Jake Newsom</copyright>
<license>http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL</license>
<version>1.0</version>
<description>
Updates ConstantContact records with the new user information whenever the user updates their account with Virtuemart/Joomla.
Works with ConstantContact email lists as well, as long as the editor screen has the necessary inputs.
</description>
<files>
<filename plugin="updatecc">updatecc.php</filename>
</files>
<config>
<fields name="params">
<fieldset name="basic">
<param type="vmjpluginwarning" />
</fieldset>
</fields>
</config>
</extension>
and here's the php file:
<?php
defined('_JEXEC') or die('Restricted access');
if (!class_exists ('vmShopperPlugin')) require(JPATH_VM_PLUGINS . DS . 'vmshopperplugin.php');
class plgVmShopperupdatecc extends vmShopperPlugin{
public function __construct(& $subject, $config){
parent::__construct($subject,$config);
$this->loadLanguage();
}
function plgVmOnUserStore($data){
jimport('joomla.log.log');
JLog::addLogger(array());
JLog::add(var_export($data,true));
return $data;
}
function plgVmAfterUserStore($data){return $data;}
function plgVmOnUpdateOrderBEShopper($_orderID);
}
When I go to edit my account info and click save, it loads a blank white page. But none of the log files are receiving any errors/messages.
EDIT ---
Not too terribly sure what all the exact changes were but this was the php code that finally worked for me if anyone's curious.
<?php
defined('_JEXEC') or die;
if (!class_exists ('vmShopperPlugin')) require(JPATH_VM_PLUGINS . DS . 'vmshopperplugin.php');
class plgVmShopperUpdatecc extends vmShopperPlugin
{
public function __construct(& $subject, $config){
parent::__construct($subject,$config);
}
public function plgVmOnUserStore($data)
{
jimport('joomla.log.log');
JLog::addLogger(array('text_file'=>'jakeslog.php'));
JLog::add(var_export($data,true));
return $data;
}
public function plgVmOnUpdateOrderBEShopper($_orderID){
}
public function plgVmAfterUserStore($data){
return $data;
}
}