Commit 4993e957 authored by Tech No Freaky's avatar Tech No Freaky

= 0.1 =

* Base Version
parent 4e119b80
=== Plugin Name ===
Contributors: varunms
Donate link: http://varunsridharan.in
Tags: Woocommerce,Quick Dontion,Donation,Online Payment,Payment,Online,Donate,Monthly Goal
Requires at least: 3.0 plus WooCommerce 2.x or higher
Tested up to: 4.0.1 + WooCommerce 2.x
Stable tag: 0.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Online Donation Using Woocoomerce. for woocommerce user's
== Description ==
WooCommerce Shopping Cart Donation which makes woocoomerce to use for online donation purpose.
This plugin will create a new product in the name of *donation*.
This Plugin Can called by using the below shortcode
`[wc_quick_donation]`
This Plugin Template Can Be Found Under [You Can Modify The Template Buy Copying To Your Theme's Folder]
`wc-quick-donation/template/donation_form.php`
This Plugin Settings Can Be Found Under
`Woocoomerce Settings => Quick Donation`
== Installation ==
1. Installing alternatives:
* *via Admin Dashboard:* Go to 'Plugins > Add New', search for "WooCommerce Quick Donation", click "install"
* *OR via direct ZIP upload:* Upload the ZIP package via 'Plugins > Add New > Upload' in your WP Admin
* *OR via FTP upload:* Upload `woocommerce-quick-donation` folder to the `/wp-content/plugins/` directory
2. Activate the plugin through the 'Plugins' menu in WordPress
3. For Settings Look at your `Woocommerce => Settings => WC Quick Donation`
== Frequently Asked Questions ==
**How To Call / Use This Plugin ?**
This Plugin Can Be Called Using `[wc_quick_donation]`
**Can I Modify The Donation Form ?**
Yes. Its Possible By Copying To Your Theme's Folder `wp-content/plugins/wc-quick-donation/template/donation_form.php`
**What Is The Use Of Project Field ?**
Project is like [category / division]. for which you donation. muiltiple can be entered by `,` seperated eg : `Project 1,Project 2`
**I have an idea for your plugin!**
That\\'s great. We are always open to your input, and we would like to add anything we think will be useful to a lot of people. Please send your comment/idea to varunsridharan23@gmail.com
**I found a bug!**
Oops. Please User github / WordPress to post bugs. <a href="https://github.com/technofreaky/woocomerce-quick-donation/"> Open an Issue </a>
== Screenshots ==
1. Settings Panel
== Changelog ==
= 0.1 =
* Base Version
\ No newline at end of file
<?php
/**
* Single Product Image
*
* @author Varun Sridharan
* @package WC Quick Donation/Templates
* @version 0.1
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
global $donate;
?>
<form method="post">
<table>
<tr class="donation-block">
<td colspan="6">
<div class="donation">
<p class="message"><strong>Add a donation to your order:</strong></p>
<?php do_action('wc_qd_show_projects_list'); ?>
<div class="input text">
<label>Donation (&pound;):</label>
<input type="text" name="jc-donation" value="<?php echo $donate; ?>"/>
</div>
<div class="submit_btn">
<input type="submit" name="donate-btn" value="Add Donation"/>
</div>
</div>
</td>
</tr>
</table>
</form>
\ No newline at end of file
<?php
/* Copyright 2014 Varun Sridharan (email : varunsridharan23@gmail.com)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
if ( !defined( 'WP_UNINSTALL_PLUGIN' ) )
exit();
$options = array('wc_quick_donation_redirect','wc_quick_donation_cart_remove','wc_quick_donation_projects','wc_quick_donation_project_section_title','wc_quick_donation_order_notes_title');
foreach($options as $option_name){
delete_option( $option_name );
delete_site_option( $option_name );
}
?>
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment