Commit 0934cf7f authored by Tech No Freaky's avatar Tech No Freaky

1.0

* Configurable Min & Max Donation Amount
* Custom Error Messages
* Separate Menu with donation order listings
* Fixed Order Notes And Order Meta Added For All Products
* Fixed Saving Donation Order Id In DB [Before It Stored All Order IDS]
* Minor performance fixes
* Code Clean Up
* Removed Row Action [Quick Edit , Trash & Duplicate] Options For
Donation Product In Product Listing
parent d3e03076
=== WooCommerce Quick Donation === === WooCommerce Quick Donation ===
Contributors: varunms Contributors: varunms
Donate link: http://varunsridharan.in Donate link: http://varunsridharan.in
Tags: Woocommerce,Quick Dontion,quick donation,online donation,wordpress donation,simple donation,donation form,WC donation,Online Payment,Payment,Online,Donate,Monthly Goal Tags: WooCommerce,Quick Dontion,quick donation,online donation,wordpress donation,simple donation,donation form,WC donation,Online Payment,Payment,Online,Donate,Monthly Goal,affiliate, cart, checkout, commerce, configurable, digital, download, downloadable, e-commerce, ecommerce, inventory, reports, sales, sell, shipping, shop, shopping, stock, store, tax, variable, widgets, woothemes, wordpress ecommerce
Requires at least: 3.0 plus WooCommerce 2.x or higher Requires at least: 3.0 plus WooCommerce 2.x or higher
Tested up to: 4.1 + WooCommerce 2.x Tested up to: 4.1 + WooCommerce 2.x
Stable tag: 0.4 Stable tag: 1.0
License: GPLv2 or later License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html License URI: http://www.gnu.org/licenses/gpl-2.0.html
Trurns WooCommerce Into Online Donation. Turns WooCommerce Into Online Donation.
== Description == == Description ==
<h3> What's New In 1.0 </h3>
* Configurable Min & Max Donation Amount
* Custom Error Messages
* Separate Menu with donation order listings
<h3> Feature Will Be Implemented In Next Release </h3>
* Separate Donation Report Page
* Useful Filters
<h3> <blink> Features </blink></h3> <h3> <blink> Features </blink></h3>
* Redirect User After Donation Added To Cart [Cart Page / Checkout Page] * Redirect User After Donation Added To Cart [Cart Page / Checkout Page]
* Select Your Preferred Payment Gateway For Donation * Select Your Preferred Payment Gateway For Donation
* Custom Email Template For Donation Processing * Custom Email Template For Donation Processing
* Custom Email Template For Donation Completed * Custom Email Template For Donation Completed
* Some Minor Bug Fix * Configurable Min & Max Donation Amount
* Custom Error Messages
<h3> What We Will Give In Up Coming Releases </h3>
* Customized Report Page [Need Help]
* Better Email Template
* Target / Goal For The Project
WooCommerce Shopping Cart Donation which makes woocoomerce to use for online donation purpose. WooCommerce Shopping Cart Donation which makes WooComerce to use for online donation purpose.
This plugin will create a new product in the name of **donation**. This plugin will create a new product in the name of **donation**.
...@@ -46,19 +51,38 @@ This Plugin Can called by using the below short code ...@@ -46,19 +51,38 @@ This Plugin Can called by using the below short code
Plugin Settings : ***Woocoomerce Settings => Quick Donation*** Plugin Settings : ***Woocoomerce Settings => Quick Donation***
Email Template Settings : ***Woocommerce Settings => Emails => Donation Processing & Completed*** Email Template Settings : ***WooCommerce Settings => Emails => Donation Processing & Completed***
== Upgrade Notice == == Upgrade Notice ==
We have updated ***donation-form.php*** template. so please replace the template if you have modified We have updated ***donation-form.php*** template. so please replace the template if you have modified
== Installation == == Installation ==
= Minimum Requirements =
* WordPress 3.8 or greater
* PHP version 5.2.4 or greater
* MySQL version 5.0 or greater
= Automatic installation =
Automatic installation is the easiest option as WordPress handles the file transfers itself and you don't need to leave your web browser. To do an automatic install of WooCommerce Quick Donation, log in to your WordPress dashboard, navigate to the Plugins menu and click Add New.
In the search field type "WooCommerce Quick Donation" and click Search Plugins. Once you've found our eCommerce plugin you can view details about it such as the the point release, rating and description. Most importantly of course, you can install it by simply clicking "Install Now"
= Manual installation =
The manual installation method involves downloading our plugin and uploading it to your Web Server via your favourite FTP application. The WordPress codex contains [instructions on how to do this here](http://codex.wordpress.org/Managing_Plugins#Manual_Plugin_Installation).
1. Installing alternatives: 1. Installing alternatives:
* *via Admin Dashboard:* Go to 'Plugins > Add New', search for "WooCommerce Quick Donation", click "install" * *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 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 * *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 2. Activate the plugin through the 'Plugins' menu in WordPress
3. For Settings Look at your `Woocommerce => Settings => WC Quick Donation` 3. For Settings Look at your `WooCommerce => Settings => WC Quick Donation`
...@@ -78,24 +102,42 @@ Project is like [category / division]. for which you donation. multiple can be e ...@@ -78,24 +102,42 @@ Project is like [category / division]. for which you donation. multiple can be e
**Donation Plugin Not Working After Upgrading To 0.2** **Donation Plugin Not Working After Upgrading To 0.2**
As we have updated ***donation-form.php*** template. it may not be working with the old one. so please replace the template if you have modified or contact us. As we have updated ***donation-form.php*** template. it may not be working with the old one. so please replace the template if you have modified or contact us.
**How i can get project name in email template** **How I can get project name in email template**
You can get the name by calling the variable `$project_name` You can get the name by calling the variable `$project_name`
**Where can I request new features**
Please open an issue at <a href="https://github.com/technofreaky/woocomerce-quick-donation/"> GitHub </a> and we will look into it
**I have an idea for your plugin!** **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 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!** **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> Oops. Please User github / WordPress to post bugs. <a href="https://github.com/technofreaky/woocomerce-quick-donation/"> Open an Issue </a>
**WooCommerce Quick Donation is awesome! Can I contribute?**
Yes you can! Join in on our <a href="https://github.com/technofreaky/woocomerce-quick-donation/">GitHub repository :)</a>
== Screenshots == == Screenshots ==
1. Settings Panel 1. General Settings
2. Email Template Settings For Donation Processing 2. Donation Settings
3. Email Template Settings For Donation Completed. 3. Custom Error Message
4. Email Template Settings For Donation Processing
5. Email Template Settings For Donation Completed.
== Changelog == == Changelog ==
= 1.0 =
* Configurable Min & Max Donation Amount
* Custom Error Messages
* Separate Menu with donation order listings
* Fixed Order Notes And Order Meta Added For All Products
* Fixed Saving Donation Order Id In DB [Before It Stored All Order IDS]
* Minor performance fixes
* Code Clean Up
* Removed Row Action [Quick Edit , Trash & Duplicate] Options For Donation Product In Product Listing
= 0.4 = = 0.4 =
* Internal Server Error / php error fixed while adding donation to cart [WP : 4.1 | WC : 2.3.3] * Internal Server Error / php error fixed while adding donation to cart [WP : 4.1 | WC : 2.3.3]
* Added Generator Meta Tag
* Minor Bug Fix * Minor Bug Fix
= 0.3 = = 0.3 =
......
screenshot-1.png

53 KB | W: | H:

screenshot-1.png

34.1 KB | W: | H:

screenshot-1.png
screenshot-1.png
screenshot-1.png
screenshot-1.png
  • 2-up
  • Swipe
  • Onion skin
screenshot-2.png

60 KB | W: | H:

screenshot-2.png

36.2 KB | W: | H:

screenshot-2.png
screenshot-2.png
screenshot-2.png
screenshot-2.png
  • 2-up
  • Swipe
  • Onion skin
screenshot-3.png

59.2 KB | W: | H:

screenshot-3.png

48.5 KB | W: | H:

screenshot-3.png
screenshot-3.png
screenshot-3.png
screenshot-3.png
  • 2-up
  • Swipe
  • Onion skin
This diff is collapsed.
This diff is collapsed.
...@@ -5,14 +5,11 @@ class WC_Quick_Donation_Settings extends WC_Settings_Page { ...@@ -5,14 +5,11 @@ class WC_Quick_Donation_Settings extends WC_Settings_Page {
* Constructor * Constructor
*/ */
public function __construct() { public function __construct() {
$this->id = 'wc_quick_donation'; $this->id = 'wc_quick_donation';
add_filter( 'woocommerce_settings_tabs_array', array( $this, 'add_settings_tab' ), 50 ); add_filter( 'woocommerce_settings_tabs_array', array( $this, 'add_settings_tab' ), 50 );
add_action( 'woocommerce_sections_' . $this->id, array( $this, 'output_sections' ) ); add_action( 'woocommerce_sections_' . $this->id, array( $this, 'output_sections' ) );
add_action( 'woocommerce_settings_' . $this->id, array( $this, 'output' ) ); add_action( 'woocommerce_settings_' . $this->id, array( $this, 'output' ) );
add_action( 'woocommerce_settings_save_' . $this->id, array( $this, 'save' ) ); add_action( 'woocommerce_settings_save_' . $this->id, array( $this, 'save' ) );
} }
/** /**
...@@ -29,17 +26,18 @@ class WC_Quick_Donation_Settings extends WC_Settings_Page { ...@@ -29,17 +26,18 @@ class WC_Quick_Donation_Settings extends WC_Settings_Page {
* Get sections * Get sections
* *
* @return array * @return array
*/
public function get_sections() { public function get_sections() {
$sections = array( $sections = array(
'general' => __( 'General Settings', $this->id ) 'general' => __( 'General Settings', $this->id ),
'donation' => __( 'Donation Settings', $this->id ),
'message' => __( 'Message Settings', $this->id )
); );
return apply_filters( 'woocommerce_get_sections_' . $this->id, $sections ); return apply_filters( 'woocommerce_get_sections_' . $this->id, $sections );
} }
*/
/** /**
* Get sections * Get sections
...@@ -47,7 +45,9 @@ class WC_Quick_Donation_Settings extends WC_Settings_Page { ...@@ -47,7 +45,9 @@ class WC_Quick_Donation_Settings extends WC_Settings_Page {
* @return array * @return array
*/ */
public function get_settings( $section = null ) { public function get_settings( $section = null ) {
global $wc_quick_buy; global $wc_quick_donation;
$width = "width:50% !important;";
switch( $section ){ switch( $section ){
case 'general' : case 'general' :
...@@ -59,7 +59,7 @@ class WC_Quick_Donation_Settings extends WC_Settings_Page { ...@@ -59,7 +59,7 @@ class WC_Quick_Donation_Settings extends WC_Settings_Page {
'desc' => 'Just Call <code><strong>[wc_quick_donation]</strong></code> short code any where in your page,post,widgets or template <br/> 'desc' => 'Just Call <code><strong>[wc_quick_donation]</strong></code> short code any where in your page,post,widgets or template <br/>
To Customize the <strong>Donation Form</strong> copy the template file from <code>woocommerce-quick-donation/template/donation_form.php</code> to your <code>theme/woocommerce</code> folder. To Customize the <strong>Donation Form</strong> copy the template file from <code>woocommerce-quick-donation/template/donation_form.php</code> to your <code>theme/woocommerce</code> folder.
', ',
'id' => 'wc_quick_donation_section_title' 'id' => 'wc_quick_donation_general_start'
), ),
'remove_cart_items' => array( 'remove_cart_items' => array(
...@@ -68,6 +68,7 @@ class WC_Quick_Donation_Settings extends WC_Settings_Page { ...@@ -68,6 +68,7 @@ class WC_Quick_Donation_Settings extends WC_Settings_Page {
'id' => 'wc_quick_donation_cart_remove', 'id' => 'wc_quick_donation_cart_remove',
'type' => 'select', 'type' => 'select',
'class' =>'chosen_select', 'class' =>'chosen_select',
'css' => $width,
'options' => array('false' => 'Keep All Items','true'=>'Remove All Items') 'options' => array('false' => 'Keep All Items','true'=>'Remove All Items')
), ),
...@@ -78,6 +79,7 @@ class WC_Quick_Donation_Settings extends WC_Settings_Page { ...@@ -78,6 +79,7 @@ class WC_Quick_Donation_Settings extends WC_Settings_Page {
'id' => 'wc_quick_donation_redirect', 'id' => 'wc_quick_donation_redirect',
'type' => 'select', 'type' => 'select',
'class' =>'chosen_select', 'class' =>'chosen_select',
'css' => $width,
'options' => array('checkout' => 'Checkout Page','cart'=>'Cart Page','false' => 'None') 'options' => array('checkout' => 'Checkout Page','cart'=>'Cart Page','false' => 'None')
), ),
...@@ -88,20 +90,54 @@ class WC_Quick_Donation_Settings extends WC_Settings_Page { ...@@ -88,20 +90,54 @@ class WC_Quick_Donation_Settings extends WC_Settings_Page {
'id' => 'wc_quick_donation_payment_gateway', 'id' => 'wc_quick_donation_payment_gateway',
'type' => 'multiselect', 'type' => 'multiselect',
'class' =>'chosen_select', 'class' =>'chosen_select',
'options' => $wc_quick_buy->get_payments_gateway() 'css' => $width,
'options' => $wc_quick_donation->get_payments_gateway()
),
'section_end' => array(
'type' => 'sectionend',
'id' => 'wc_quick_donation_general_end'
)
);
break;
case 'donation' :
$settings = array(
'section_title' => array(
'name' => 'Donation Releated Settings',
'type' => 'title',
'desc' => '',
'id' => 'wc_quick_donation_donation_start'
), ),
'project_names' => array( 'project_names' => array(
'name' => 'Project Names', 'name' => 'Project Names',
'type' => 'textarea', 'type' => 'textarea',
'desc' => 'Add Names By <code>,</code> Seperated ', 'desc_tip' => 'Add Names By <code>,</code> Seperated ',
'css' => 'width:50%; height: 105px;',
'std' => '', // for woocommerce < 2.0
'id' => 'wc_quick_donation_projects', 'id' => 'wc_quick_donation_projects',
'default' => 'Project1,Project2' 'default' => 'Project1,Project2' // for woocommerce >= 2.0
),
'min_required_donation' => array(
'name' => 'Minium Required Amount',
'type' => 'text',
'desc' => 'Minium Required Amount For Donation. Enter Only Numerical Eg : 100',
'id' => 'wc_quick_donation_min_required_donation',
'default' =>'50'
),
'max_required_donation' => array(
'name' => 'Maximum Allowed Amount',
'type' => 'text',
'desc' => 'Maximum Allowed Amount For Donation. Enter Only Numerical Eg : 1000',
'id' => 'wc_quick_donation_max_required_donation',
'default' =>'1000'
), ),
'order_project_title' => array( 'order_project_title' => array(
'name' => 'Order Project Title', 'name' => 'Order Project Title',
'type' => 'text', 'type' => 'text',
'desc' => 'Title to view in order edit page', 'desc_tip' => 'Title to view in order edit page',
'css' => $width,
'id' => 'wc_quick_donation_project_section_title', 'id' => 'wc_quick_donation_project_section_title',
'default' =>'For Project' 'default' =>'For Project'
...@@ -109,16 +145,79 @@ class WC_Quick_Donation_Settings extends WC_Settings_Page { ...@@ -109,16 +145,79 @@ class WC_Quick_Donation_Settings extends WC_Settings_Page {
'order_notes_title' => array( 'order_notes_title' => array(
'name' => 'Order Notes Title', 'name' => 'Order Notes Title',
'type' => 'text', 'type' => 'text',
'desc' => 'to display project name use <code>Project Name : %s</code>', 'desc_tip' => 'to display project name use <code>Project Name : %s</code>',
'id' => 'wc_quick_donation_order_notes_title', 'id' => 'wc_quick_donation_order_notes_title',
'css' => $width,
'default' =>'Project Name %s' 'default' =>'Project Name %s'
), ),
'section_end' => array( 'section_end' => array(
'type' => 'sectionend', 'type' => 'sectionend',
'id' => 'wc_settings_tab_demo_section_end' 'id' => 'wc_quick_donation_donation_end'
) )
); );
break;
case 'message' :
$settings = array(
'section_title' => array(
'name' => 'Plugin Message Text',
'type' => 'title',
'desc' => '',
'id' => 'wc_quick_donation_message_start'
),
'project_invalid_message' => array(
'name' => 'Invalid / No Project Selected',
'type' => 'textarea',
'desc_tip' => 'Message Displayed When No Project Is Selected | HTML Tags Allowed',
'css' => 'width:75%; height:75px;',
'id' => 'wc_quick_donation_msg_project_invalid',
'default' =>'<h2> No Project Selected </h2>'
),
'donation_amount_empty_message' => array(
'name' => 'Empty Donation Amount',
'type' => 'textarea',
'desc_tip' => 'Message Displayed When No Donation Entered | HTML Tags Allowed',
'css' => 'width:75%; height:75px;',
'id' => 'wc_quick_donation_msg_amount_empty',
'default' =>'<h2> Please Enter A Donation Amount </h2>'
),
'donation_amount_invalid_message' => array(
'name' => 'Invalid Donation Amount',
'type' => 'textarea',
'desc_tip' => 'Message Displayed When Invalid Donation Entered | HTML Tags Allowed',
'desc' => 'Add <code>{donation_amount}</code> For Entered Donation Amount',
'css' => 'width:75%; height:75px;',
'id' => 'wc_quick_donation_msg_amount_invalid',
'default' =>'<h2> Invalid Donation Amount [{donation_amount}] </h2>'
),
'donation_min_required' => array(
'name' => 'Minium Required Donation Amount',
'type' => 'textarea',
'desc_tip' => 'Message Displayed When Donation Amount Is Less than required amount | HTML Tags Allowed',
'desc' => 'Add <code>{donation_amount}</code> For Entered Donation Amount And Add <code>{min_amount}</code> For Minium Required Amount ',
'css' => 'width:75%; height:75px;',
'id' => 'wc_quick_donation_msg_amount_min_required',
'default' =>'<h2> Minium Required is {min_amount} And you have entered is {donation_amount} </h2>'
),
'donation_max_allowed' => array(
'name' => 'Maximum Allowed Donation Amount',
'type' => 'textarea',
'desc_tip' => 'Message Displayed When Donation Amount Is Greater than allowed amount | HTML Tags Allowed',
'desc' => 'Add <code>{donation_amount}</code> For Entered Donation Amount And Add <code>{max_amount}</code> For Maximum Allowed Amount ',
'css' => 'width:75%; height:75px;',
'id' => 'wc_quick_donation_msg_amount_max_allowed',
'default' =>'<h2> Maximum Allowed Is {max_amount} And you have entered is {donation_amount} </h2>'
),
'section_end' => array(
'type' => 'sectionend',
'id' => 'wc_quick_donation_message_end'
)
);
break; break;
} }
......
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