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

Version 1.0.1: Add php license headers, change domain to open-tools.net

parent 9b069641
No related branches found
No related tags found
No related merge requests found
BASE=donation
PLUGINTYPE=vmcustom
VERSION=1.0
VERSION=1.0.1
PLUGINFILES=$(BASE).php $(BASE).script.php $(BASE).xml index.html
......
<?php
defined('_JEXEC') or die( 'Direct Access to ' . basename( __FILE__ ) . ' is not allowed.' ) ;
/**
* A custom field plugin for downloadable files
* @author Reinhold Kainhofer
* @package VirtueMart
* @subpackage vmcustom
* @copyright Copyright (C) 2013 Reinhold Kainhofer - All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
*
* http://kainhofer.com
*/
/**------------------------------------------------------------------------
# donation.php - VirtueMart 2 plugin for donations
# ------------------------------------------------------------------------
# @author Reinhold Kainhofer, The Open Tools Association
# @copyright Copyright (C) 2013 Reinhold Kainhofer, open-tools.net. All Rights Reserved.
# @license - http://www.gnu.org/licenses/gpl.html GNU/GPL
* @package VirtueMart
* @subpackage vmcustom
# Websites: http://www.open-tools.net/
# Technical Support: Forum - http://www.open-tools.net/forum/index.html
-------------------------------------------------------------------------*/
// no direct access
defined('_JEXEC') or die( 'Direct Access to ' . basename( __FILE__ ) . ' is not allowed.' ) ;
if (!class_exists('vmCustomPlugin')) require(JPATH_VM_PLUGINS . DS . 'vmcustomplugin.php');
// if(!class_exists('VmTable'))require(JPATH_VM_ADMINISTRATOR.DS.'helpers'.DS.'vmtable.php');
......@@ -42,12 +40,6 @@ class plgVmCustomDonation extends vmCustomPlugin {
*/
function plgVmOnProductEdit($field, $product_id, &$row,&$retValue) {
if ($field->custom_element != $this->_name) return '';
// $this->parseCustomParams($field);
// $html = '';
//
// $retValue .= $html;
// $row++;
// return true ;
}
/**
......@@ -151,25 +143,6 @@ class plgVmCustomDonation extends vmCustomPlugin {
function plgVmOnSelfCallFE($type,$name,&$render) {
$render->html = '';
}
// /**
// * Create the database table for this plugin.
// */
// public function getVmPluginCreateTableSQL() {
// return $this->createTableSQL('Downloads for Sale tracking');
// }
//
// function getTableSQLFields() {
// $SQLfields = array(
// 'id' => 'int(1) UNSIGNED NOT NULL AUTO_INCREMENT',
// 'virtuemart_customfield_id' => 'int(11) UNSIGNED NOT NULL DEFAULT 0',
// 'virtuemart_order_item_id' => 'int(11) UNSIGNED NULL DEFAULT 0',
// 'downloaded' => 'int(11) UNSIGNED NOT NULL DEFAULT 0',
// );
// return $SQLfields;
// }
}
......
<?php
/**------------------------------------------------------------------------
# donation.script.php - VirtueMart 2 plugin for donations, installation script
# ------------------------------------------------------------------------
# @author Reinhold Kainhofer, The Open Tools Association
# @copyright Copyright (C) 2013 Reinhold Kainhofer, open-tools.net. All Rights Reserved.
# @license - http://www.gnu.org/licenses/gpl.html GNU/GPL
* @package VirtueMart
* @subpackage vmcustom
# Websites: http://www.open-tools.net/
# Technical Support: Forum - http://www.open-tools.net/forum/index.html
-------------------------------------------------------------------------*/
// no direct access
defined('_JEXEC') or die('Restricted access');
class plgVmCustomDonationInstallerScript
......
......@@ -3,10 +3,10 @@
<name>VMCUSTOM_DONATION</name>
<creationDate>2013-03-02</creationDate>
<author>Reinhold Kainhofer</author>
<authorUrl>http://www.kainhofer.com/</authorUrl>
<authorUrl>http://www.open-tools.net/</authorUrl>
<copyright>Copyright (C) 2013 Reinhold Kainhofer. All rights reserved.</copyright>
<license>http://www.gnu.org/licenses/gpl.html GNU/GPL v3+</license>
<version>1.0.0</version>
<version>1.0.1</version>
<description>VMCUSTOM_DONATION_DESC</description>
<files>
<filename plugin="donation">donation.php</filename>
......
<?php
defined('_JEXEC') or die();
/*------------------------------------------------------------------------
# default.php - template for the donation input box
# ------------------------------------------------------------------------
# author Reinhold Kainhofer, The Open Tools Association
# copyright Copyright (C) 2013 open-tools.net. All Rights Reserved.
# @license - http://www.gnu.org/licenses/gpl.html GNU/GPL
# Websites: http://www.open-tools.net/
# Technical Support: Forum - http://www.open-tools.net/forum/index.html
-------------------------------------------------------------------------*/
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
$class='vmcustom-settext';
//vmdebug('$this',$viewData[0]);
//if ($field->custom_price_by_letter) $class='vmcustom-textinput';?>
<input class="<?php echo $class ?>" type="text" value="" size="4" name="customPlugin[<?php echo $viewData[0]->virtuemart_customfield_id ?>][<?php echo $this->_name?>][customprice]"><?php echo CurrencyDisplay::getInstance ()->getSymbol(); ?><br />
<?php
......
images/donation_-_cart.png

13.6 KiB

images/donation_-_customfield_product.png

22.4 KiB

images/donation_-_customfield_setup.png

83.3 KiB

images/donation_-_productdetails.png

34.4 KiB

......@@ -3,6 +3,6 @@
; License http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL, see LICENSE.php
; Note : All ini files need to be saved as UTF-8 - No BOM
VMCUSTOM_DONATION="VM Spenden Plugin"
VMCUSTOM_DONATION="Spenden für VirtueMart"
VMCUSTOM_DONATION_DESC="VirtueMart Benutzerfeld Erweiterung, die Benutzern einen Spendenbetrag zum Produktpreis hinzufügen oder den Preis des Produktes selbst festlegen lässt."
......@@ -3,5 +3,5 @@
; License http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL, see LICENSE.php
; Note : All ini files need to be saved as UTF-8 - No BOM
VMCUSTOM_DONATION="VM Spenden Plugin"
VMCUSTOM_DONATION="Spenden für VirtueMart"
VMCUSTOM_DONATION_DESC="VirtueMart Benutzerfeld Erweiterung, die Benutzern einen Spendenbetrag zum Produktpreis hinzufügen oder den Preis des Produktes selbst festlegen lässt."
......@@ -3,6 +3,6 @@
; License http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL, see LICENSE.php
; Note : All ini files need to be saved as UTF-8 - No BOM
VMCUSTOM_DONATION="VM Donation Plugin"
VMCUSTOM_DONATION="Donations for VirtueMart"
VMCUSTOM_DONATION_DESC="VirtueMart customfield plugin to let the user add a donation or set the price of a product."
......@@ -3,5 +3,5 @@
; License http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL, see LICENSE.php
; Note : All ini files need to be saved as UTF-8 - No BOM
VMCUSTOM_DONATION="VM Donation Plugin"
VMCUSTOM_DONATION="Donations for VirtueMart"
VMCUSTOM_DONATION_DESC="VirtueMart customfield plugin to let the user add a donation or set the price of a product."
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment