diff --git a/plugins/awocoupon/Makefile b/plugins/awocoupon/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..cfa0045c70c3ab85518f6fe98c05f74bd0441ff7 --- /dev/null +++ b/plugins/awocoupon/Makefile @@ -0,0 +1,19 @@ +BASE=awocoupon +PLUGINTYPE=vmshipmentrules +ZIPBASE=opentools_$(PLUGINTYPE) +VERSION=1.0 + +PLUGINFILES=$(BASE).php $(BASE).script.php $(BASE).xml index.html + +TRANSLATIONS=$(call wildcard,language/en*/*.plg_$(PLUGINTYPE)_$(BASE).*ini) +INDEXFILES=language/index.html $(call wildcard,language/**/index.html) +ZIPFILE=plg_$(ZIPBASE)_$(BASE)_v$(VERSION).zip + +all: zip + +zip: $(PLUGINFILES) $(TRANSLATIONS) $(ADVANCEDFILES) $(INDEXFILES) + @echo "Packing all files into distribution file $(ZIPFILE):" + @zip -r $(ZIPFILE) $(PLUGINFILES) $(TRANSLATIONS) $(INDEXFILES) + +clean: + rm -f $(ZIPFILE) diff --git a/plugins/awocoupon/awocoupon.php b/plugins/awocoupon/awocoupon.php new file mode 100644 index 0000000000000000000000000000000000000000..886b25e2d3ac1e68cfcc0d93e8a59b594dd28767 --- /dev/null +++ b/plugins/awocoupon/awocoupon.php @@ -0,0 +1,44 @@ +<?php + +defined ('_JEXEC') or die('Restricted access'); + +/** + * AwoCoupon variables for VM Shipping by Rules + * + * @subpackage Plugins - VmShipmentRules + * @copyright Copyright (C) 2014 Reinhold Kainhofer, office@open-tools.net + * @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://open-tools.net/ + * + */ +if (!class_exists ('VmPlugin')) { + require(JPATH_VM_PLUGINS . DS . 'vmplugin.php'); +} + +/** Extension plugin for the "Shipping by Rules" shipping plugin for VirtueMart + */ +class plgVmShipmentRulesRules_AwoCoupon extends VmPlugin { + /** Trigger to add variables to the cart values + * You can add new variables to the $cartvals array or modify existing ones. They will be directly + * available in all rules. + * Please notice that this function might also be called for only a subset of products of the cart. + */ + function onVmShippingRulesGetCartValues(&$cartvals, $cart, $products, $method, $cart_prices) { + $coupon_discount = 0; + $session = JFactory::getSession(); + $coupon_row = $session->get('coupon', '', 'awocoupon'); + if(!empty($coupon_row)) { + $coupon_row = unserialize($coupon_row); + $coupon_discount = $coupon_row['product_discount'] + $coupon_row['shipping_discount']; + } + $cartvals['awodiscount'] = $coupon_discount; + } +} + +// No closing tag diff --git a/plugins/awocoupon/awocoupon.script.php b/plugins/awocoupon/awocoupon.script.php new file mode 100644 index 0000000000000000000000000000000000000000..24c01a9ece6bbd90a71a3c5695705064011402b5 --- /dev/null +++ b/plugins/awocoupon/awocoupon.script.php @@ -0,0 +1,92 @@ +<?php +defined('_JEXEC') or die('Restricted access'); + +// TODO: Adjust your plugin name: +$pluginname='awocoupon'; +$plugintype='vmshipmentrules'; + +/** + * Installation script for the plugin + * + * @copyright Copyright (C) 2014 Reinhold Kainhofer, office@open-tools.net + * @license GPL v3+, http://www.gnu.org/copyleft/gpl.html + */ + +// TODO: Adjust the class name. It has to be of the form: +// plgVmShipmentYOUR_PLUGIN_NAMEInstallerScript +class plgVmShipmentRulesAwoCouponInstallerScript +{ + /** + * Constructor + * + * @param JAdapterInstance $adapter The object responsible for running this script + */ +// public function __constructor(JAdapterInstance $adapter); + + /** + * Called before any type of action + * + * @param string $route Which action is happening (install|uninstall|discover_install) + * @param JAdapterInstance $adapter The object responsible for running this script + * + * @return boolean True on success + */ +// public function preflight($route, JAdapterInstance $adapter); + + /** + * Called after any type of action + * + * @param string $route Which action is happening (install|uninstall|discover_install) + * @param JAdapterInstance $adapter The object responsible for running this script + * + * @return boolean True on success + */ +// public function postflight($route, JAdapterInstance $adapter); + + /** + * Called on installation + * + * @param JAdapterInstance $adapter The object responsible for running this script + * + * @return boolean True on success + */ + public function install(JAdapterInstance $adapter) + { + // enabling plugin upon installation + $db =& JFactory::getDBO(); + $db->setQuery('update #__extensions set enabled = 1 where type = "plugin" and element = "'.$pluginname.'" and folder = "'.$plugintype.'"'); + $db->query(); + + return True; + } + + /** + * Called on update + * + * @param JAdapterInstance $adapter The object responsible for running this script + * + * @return boolean True on success + */ +// public function update(JAdapterInstance $adapter) +// { +// jimport( 'joomla.filesystem.file' ); +// $file = JPATH_ROOT . DS . "administrator" . DS . "language" . DS . "en-GB" . DS . "en-GB.plg_".$plugintype."_".$pluginname.".sys.ini"; +// if (JFile::exists($file)) JFile::delete($file); +// $file = JPATH_ROOT . DS . "administrator" . DS . "language" . DS . "de-DE" . DS . "de-DE.plg_".$plugintype."_".$pluginname.".sys.ini"; +// if (JFile::exists($file)) JFile::delete($file); +// return true; +// } + + /** + * Called on uninstallation + * + * @param JAdapterInstance $adapter The object responsible for running this script + */ +// public function uninstall(JAdapterInstance $adapter) +// { +// // Remove plugin table +// $db =& JFactory::getDBO(); +// $db->setQuery('DROP TABLE IF EXISTS `#__virtuemart_'.$plugintype.'_plg_'.$pluginname.'`;'); +// $db->query(); +// } +} diff --git a/plugins/awocoupon/awocoupon.xml b/plugins/awocoupon/awocoupon.xml new file mode 100644 index 0000000000000000000000000000000000000000..a7491db2cd414f42990ddac85f1f859e7f29da26 --- /dev/null +++ b/plugins/awocoupon/awocoupon.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<extension version="1.5" type="plugin" group="vmshipmentrules" method="upgrade"> + <name>VMSHIPMENTRULES_AWOCOUPON</name> + <creationDate>2014-11-10</creationDate> + <author>Reinhold Kainhofer, Open Tools</author> + <authorUrl>http://www.open-tools.net</authorUrl> + <copyright>Copyright (C) 2014, Reinhold Kainhofer</copyright> + <license>GPL v3+</license> + <version>1.0</version> + <description>VMSHIPMENTRULES_AWOCOUPON_DESC</description> + <files> + <filename plugin="awocoupon">awocoupon.php</filename> + <folder>language</folder> + </files> + <languages folder="language"> + <language tag="en-GB">en-GB/en-GB.plg_vmshipmentrules_awocoupon.ini</language> + <language tag="en-GB">en-GB/en-GB.plg_vmshipmentrules_awocoupon.sys.ini</language> + </languages> + <scriptfile>awocoupon.script.php</scriptfile> + + <!-- VM 3.x support (fields rather than params): --> + <vmconfig></vmconfig> + + <!-- VM 2.0 support (params rather than fields): --> + <params></params> + +</extension> diff --git a/plugins/awocoupon/index.html b/plugins/awocoupon/index.html new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/plugins/awocoupon/language/en-GB/en-GB.plg_vmshipmentrules_rules_awocoupon.ini b/plugins/awocoupon/language/en-GB/en-GB.plg_vmshipmentrules_rules_awocoupon.ini new file mode 100755 index 0000000000000000000000000000000000000000..36da25d38e8021192246f24049e4a483fcbdc0ef --- /dev/null +++ b/plugins/awocoupon/language/en-GB/en-GB.plg_vmshipmentrules_rules_awocoupon.ini @@ -0,0 +1,6 @@ +; VM Rule-based Shipping plugin: Access to AwoCoupon variables +; Copyright (C) 2014 Reinhold Kainhofer, Open Tools. All rights reserved. +; License http://www.gnu.org/licenses/gpl.html GNU/GPL +; Note : All ini files need to be saved as UTF-8 - No BOM +VMSHIPMENTRULES_AWOCOUPON="AwoCoupon variables for VM Shipping by Rules" +VMSHIPMENTRULES_AWOCOUPON_DESC="This plugin provides access to the AwoCoupon discounts in the Shipping by Rules plugin for VirtueMart." diff --git a/plugins/awocoupon/language/en-GB/en-GB.plg_vmshipmentrules_rules_awocoupon.sys.ini b/plugins/awocoupon/language/en-GB/en-GB.plg_vmshipmentrules_rules_awocoupon.sys.ini new file mode 100755 index 0000000000000000000000000000000000000000..36da25d38e8021192246f24049e4a483fcbdc0ef --- /dev/null +++ b/plugins/awocoupon/language/en-GB/en-GB.plg_vmshipmentrules_rules_awocoupon.sys.ini @@ -0,0 +1,6 @@ +; VM Rule-based Shipping plugin: Access to AwoCoupon variables +; Copyright (C) 2014 Reinhold Kainhofer, Open Tools. All rights reserved. +; License http://www.gnu.org/licenses/gpl.html GNU/GPL +; Note : All ini files need to be saved as UTF-8 - No BOM +VMSHIPMENTRULES_AWOCOUPON="AwoCoupon variables for VM Shipping by Rules" +VMSHIPMENTRULES_AWOCOUPON_DESC="This plugin provides access to the AwoCoupon discounts in the Shipping by Rules plugin for VirtueMart." diff --git a/plugins/awocoupon/language/en-GB/index.html b/plugins/awocoupon/language/en-GB/index.html new file mode 100644 index 0000000000000000000000000000000000000000..2efb97f319a35f6bd80f1751134ed71ec11888eb --- /dev/null +++ b/plugins/awocoupon/language/en-GB/index.html @@ -0,0 +1 @@ +<!DOCTYPE html><title></title> diff --git a/plugins/awocoupon/language/index.html b/plugins/awocoupon/language/index.html new file mode 100644 index 0000000000000000000000000000000000000000..2efb97f319a35f6bd80f1751134ed71ec11888eb --- /dev/null +++ b/plugins/awocoupon/language/index.html @@ -0,0 +1 @@ +<!DOCTYPE html><title></title> diff --git a/plugins/awocoupon/plg_opentools_vmshipmentrules_awocoupon_v1.0.zip b/plugins/awocoupon/plg_opentools_vmshipmentrules_awocoupon_v1.0.zip new file mode 100644 index 0000000000000000000000000000000000000000..ed5ed0583478b367f58854f562f6d28bb46be6f3 Binary files /dev/null and b/plugins/awocoupon/plg_opentools_vmshipmentrules_awocoupon_v1.0.zip differ diff --git a/plugins/template/Makefile b/plugins/template/Makefile new file mode 100644 index 0000000000000000000000000000000000000000..07f453fbe73c76d9a108b0a63a3b8d75042925a4 --- /dev/null +++ b/plugins/template/Makefile @@ -0,0 +1,19 @@ +BASE=YOUR_PLUGIN_NAME +PLUGINTYPE=vmshipmentrules +ZIPBASE=opentools_vmshipmentrules +VERSION=1.0 + +PLUGINFILES=$(BASE).php $(BASE).script.php $(BASE).xml index.html + +TRANSLATIONS=$(call wildcard,language/en*/*.plg_$(PLUGINTYPE)_$(BASE).*ini) +INDEXFILES=language/index.html $(call wildcard,language/**/index.html) +ZIPFILE=plg_$(ZIPBASE)_$(BASE)_v$(VERSION).zip + +all: zip + +zip: $(PLUGINFILES) $(TRANSLATIONS) $(ADVANCEDFILES) $(INDEXFILES) + @echo "Packing all files into distribution file $(ZIPFILE):" + @zip -r $(ZIPFILE) $(PLUGINFILES) $(TRANSLATIONS) $(INDEXFILES) + +clean: + rm -f $(ZIPFILE) diff --git a/plugins/template/YOUR_PLUGIN_NAME.php b/plugins/template/YOUR_PLUGIN_NAME.php new file mode 100644 index 0000000000000000000000000000000000000000..404f88c0f5df6c06cd59c26367c592f245a3aaec --- /dev/null +++ b/plugins/template/YOUR_PLUGIN_NAME.php @@ -0,0 +1,54 @@ +<?php + +defined ('_JEXEC') or die('Restricted access'); + +/** + * Plugin providing Custom variables for VM Shipping by Rules + * + * @subpackage Plugins - VmShipmentRules + * @copyright Copyright (C) 2014 Reinhold Kainhofer, office@open-tools.net + * @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://open-tools.net/ + * + */ +if (!class_exists ('VmPlugin')) { + require(JPATH_VM_PLUGINS . DS . 'vmplugin.php'); +} + +/** Extension plugin for the "Shipping by Rules" shipping plugin for VirtueMart + */ +class plgVmShipmentRulesYOUR_PLUGIN_NAME extends VmPlugin { + /** Trigger to add variables to the cart values + * You can add new variables to the $cartvals array or modify existing ones. They will be directly + * available in all rules. + * Please notice that this function might also be called for only a subset of products of the cart. + */ + function onVmShippingRulesGetCartValues(&$cartvals, $cart, $products, $method, $cart_prices) { + $cartvals['template_example'] = 123456789; + + } + /** Trigger to register custom functions for the Shipping by Rules plugin + * The onVmShippingRulesRegisterCustomFunctions() trigger is expected to return an array of the form: + * array ('functionname1' => 'function_to_be_called', + * 'functionname2' => array($classobject, 'memberfunc')), + * ...); + * The functions referenced here are called with exactly one array argument, that holds + * all function arguments, i.e. the function signature should be + * function function_to_be_called($args) {....} + */ + function onVmShippingRulesRegisterCustomFunctions() { + return array('customTestFunction' => array($this, 'custom_test_function')); + } + + function custom_test_function($args) { + return 'Test return value...'; + } +} + +// No closing tag diff --git a/plugins/template/YOUR_PLUGIN_NAME.script.php b/plugins/template/YOUR_PLUGIN_NAME.script.php new file mode 100644 index 0000000000000000000000000000000000000000..890789d5cdeac939559e148d78354a93d4605fd3 --- /dev/null +++ b/plugins/template/YOUR_PLUGIN_NAME.script.php @@ -0,0 +1,88 @@ +<?php +defined('_JEXEC') or die('Restricted access'); + +/** + * Installation script for the plugin + * + * @copyright Copyright (C) 2014 Reinhold Kainhofer, office@open-tools.net + * @license GPL v3+, http://www.gnu.org/copyleft/gpl.html + */ + +// Adjust the class name. It has to be of the form: +// plgVmShipmentYOUR_PLUGIN_NAMEInstallerScript +class plgVmShipmentRulesYOUR_PLUGIN_NAMEInstallerScript +{ + /** + * Constructor + * + * @param JAdapterInstance $adapter The object responsible for running this script + */ +// public function __constructor(JAdapterInstance $adapter); + + /** + * Called before any type of action + * + * @param string $route Which action is happening (install|uninstall|discover_install) + * @param JAdapterInstance $adapter The object responsible for running this script + * + * @return boolean True on success + */ +// public function preflight($route, JAdapterInstance $adapter); + + /** + * Called after any type of action + * + * @param string $route Which action is happening (install|uninstall|discover_install) + * @param JAdapterInstance $adapter The object responsible for running this script + * + * @return boolean True on success + */ +// public function postflight($route, JAdapterInstance $adapter); + + /** + * Called on installation + * + * @param JAdapterInstance $adapter The object responsible for running this script + * + * @return boolean True on success + */ + public function install(JAdapterInstance $adapter) + { + // enabling plugin upon installation + $db =& JFactory::getDBO(); + $db->setQuery('update #__extensions set enabled = 1 where type = "plugin" and element = "YOUR_PLUGIN_NAME" and folder = "vmshipmentrules"'); + $db->query(); + + return True; + } + + /** + * Called on update + * + * @param JAdapterInstance $adapter The object responsible for running this script + * + * @return boolean True on success + */ +// public function update(JAdapterInstance $adapter) +// { +// jimport( 'joomla.filesystem.file' ); +// $file = JPATH_ROOT . DS . "administrator" . DS . "language" . DS . "en-GB" . DS . "en-GB.plg_vmshipmentrules_YOUR_PLUGIN_NAME.sys.ini"; +// if (JFile::exists($file)) JFile::delete($file); +// $file = JPATH_ROOT . DS . "administrator" . DS . "language" . DS . "de-DE" . DS . "de-DE.plg_vmshipmentrules_YOUR_PLUGIN_NAME.sys.ini"; +// if (JFile::exists($file)) JFile::delete($file); +// return true; +// } + + /** + * Called on uninstallation + * + * @param JAdapterInstance $adapter The object responsible for running this script + */ +// public function uninstall(JAdapterInstance $adapter) +// { +// // Remove plugin table +// $db =& JFactory::getDBO(); +// $db->setQuery('DROP TABLE IF EXISTS `#__virtuemart_vmshipmentrulesles_YOUR_PLUGIN_NAME`;'); +// $db->query(); +// } +} diff --git a/plugins/template/YOUR_PLUGIN_NAME.xml b/plugins/template/YOUR_PLUGIN_NAME.xml new file mode 100644 index 0000000000000000000000000000000000000000..0ffdfa57368199ae643227e3bff9803f2f8d9198 --- /dev/null +++ b/plugins/template/YOUR_PLUGIN_NAME.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<extension version="1.5" type="plugin" group="vmshipmentrules" method="upgrade"> + <name>VMSHIPMENTRULES_TEMPLATE</name> + <creationDate>2014-11-10</creationDate> + <author>Reinhold Kainhofer, Open Tools</author> + <authorUrl>http://www.open-tools.net</authorUrl> + <copyright>Copyright (C) 2014, Reinhold Kainhofer</copyright> + <license>GPL v3+</license> + <version>1.0</version> + <description>VMSHIPMENTRULES_TEMPLATE_DESC</description> + <files> + <filename plugin="YOUR_PLUGIN_NAME">YOUR_PLUGIN_NAME.php</filename> + <folder>language</folder> + </files> + <languages folder="language"> + <language tag="en-GB">en-GB/en-GB.plg_vmshipmentrules_YOUR_PLUGIN_NAME.ini</language> + <language tag="en-GB">en-GB/en-GB.plg_vmshipmentrules_YOUR_PLUGIN_NAME.sys.ini</language> + </languages> + <scriptfile>YOUR_PLUGIN_NAME.script.php</scriptfile> + + <!-- VM 3.x support (fields rather than params): --> + <vmconfig></vmconfig> + + <!-- VM 2.0 support (params rather than fields): --> + <params></params> + +</extension> diff --git a/plugins/template/create_rules_plugin.sh b/plugins/template/create_rules_plugin.sh new file mode 100755 index 0000000000000000000000000000000000000000..415698ba6f54c3949497b126a3f421645b997cc7 --- /dev/null +++ b/plugins/template/create_rules_plugin.sh @@ -0,0 +1,35 @@ +#!/bin/bash + +SRCDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +ARGC=$# +if [ $ARGC -lt 1 ]; then + echo "Usage: $0 YourPluginName" + echo "Create a proper plugin for the Shipping by Rules plugin from the provided template" + exit -1; +fi + +name=$1 +pluginname=${name,,} +pLUGINNAME=${name,} +Pluginname=${name^} +PLUGINNAME=${name^^} + +echo "Plugin name=$name, pluginname=$pluginname, pLUGINNAME=$pLUGINNAME, Pluginname=$Pluginname, PLUGINNAME=$PLUGINNAME" + + +mkdir -p $pluginname/language/en-GB/ + +sed "s/YOUR_PLUGIN_NAME/$Pluginname/g" $SRCDIR/YOUR_PLUGIN_NAME.php > $pluginname/$pluginname.php +sed "s/YOUR_PLUGIN_NAMEInstaller/${Pluginname}Installer/g; s/YOUR_PLUGIN_NAME/$pluginname/g" $SRCDIR/YOUR_PLUGIN_NAME.script.php > $pluginname/$pluginname.script.php +sed "s/YOUR_PLUGIN_NAME/$pluginname/g; s/VMSHIPMENTRULES_TEMPLATE/VMSHIPMENTRULES_$PLUGINNAME/g" $SRCDIR/YOUR_PLUGIN_NAME.xml > $pluginname/$pluginname.xml +sed "s/YOUR_PLUGIN_NAME/$pluginname/g" $SRCDIR/Makefile > $pluginname/Makefile +for i in $SRCDIR/language/en-GB/*.ini; do + sed "s/YOUR_PLUGIN_NAME/$pluginname/g; s/VMSHIPMENTRULES_TEMPLATE/VMSHIPMENTRULES_$PLUGINNAME/g" $i > $pluginname/${i#$SRCDIR} +done +rename "s/YOUR_PLUGIN_NAME/$pluginname/g" $pluginname/language/en-GB/* +for i in `find $SRCDIR/ -name index.html`; do + cp $i $pluginname/${i#$SRCDIR} +done + +echo "Created new plugin '$pluginname' for the Shipping for Rules plugin. Please adjust the plugin's onVmShippingRulesGetCartValues, all copyright statements and the translations" \ No newline at end of file diff --git a/plugins/template/index.html b/plugins/template/index.html new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/plugins/template/language/en-GB/en-GB.plg_vmshipmentrules_YOUR_PLUGIN_NAME.ini b/plugins/template/language/en-GB/en-GB.plg_vmshipmentrules_YOUR_PLUGIN_NAME.ini new file mode 100755 index 0000000000000000000000000000000000000000..7edbd31fa08d5ef76c72035c6457755a9df3e2b2 --- /dev/null +++ b/plugins/template/language/en-GB/en-GB.plg_vmshipmentrules_YOUR_PLUGIN_NAME.ini @@ -0,0 +1,6 @@ +; VM Rule-based Shipping plugin: Template for extension plugins +; Copyright (C) 2014 Reinhold Kainhofer, Open Tools. All rights reserved. +; License http://www.gnu.org/licenses/gpl.html GNU/GPL +; Note : All ini files need to be saved as UTF-8 - No BOM +VMSHIPMENTRULES_TEMPLATE="VM Shipping by Rules Extension Template" +VMSHIPMENTRULES_TEMPLATE_DESC="This plugin is just a demo template that highlights how one can extend the Shipping by Rules plugin with a plugin of type vmshipmentrules. If installed, it does not do anything useful or harmful." diff --git a/plugins/template/language/en-GB/en-GB.plg_vmshipmentrules_YOUR_PLUGIN_NAME.sys.ini b/plugins/template/language/en-GB/en-GB.plg_vmshipmentrules_YOUR_PLUGIN_NAME.sys.ini new file mode 100755 index 0000000000000000000000000000000000000000..7edbd31fa08d5ef76c72035c6457755a9df3e2b2 --- /dev/null +++ b/plugins/template/language/en-GB/en-GB.plg_vmshipmentrules_YOUR_PLUGIN_NAME.sys.ini @@ -0,0 +1,6 @@ +; VM Rule-based Shipping plugin: Template for extension plugins +; Copyright (C) 2014 Reinhold Kainhofer, Open Tools. All rights reserved. +; License http://www.gnu.org/licenses/gpl.html GNU/GPL +; Note : All ini files need to be saved as UTF-8 - No BOM +VMSHIPMENTRULES_TEMPLATE="VM Shipping by Rules Extension Template" +VMSHIPMENTRULES_TEMPLATE_DESC="This plugin is just a demo template that highlights how one can extend the Shipping by Rules plugin with a plugin of type vmshipmentrules. If installed, it does not do anything useful or harmful." diff --git a/plugins/template/language/en-GB/index.html b/plugins/template/language/en-GB/index.html new file mode 100644 index 0000000000000000000000000000000000000000..2efb97f319a35f6bd80f1751134ed71ec11888eb --- /dev/null +++ b/plugins/template/language/en-GB/index.html @@ -0,0 +1 @@ +<!DOCTYPE html><title></title> diff --git a/plugins/template/language/index.html b/plugins/template/language/index.html new file mode 100644 index 0000000000000000000000000000000000000000..2efb97f319a35f6bd80f1751134ed71ec11888eb --- /dev/null +++ b/plugins/template/language/index.html @@ -0,0 +1 @@ +<!DOCTYPE html><title></title>