Commit 7defe97c authored by Tech No Freaky's avatar Tech No Freaky

Version 0.3

Plugin Activation Issue Fixed.
parent 0e2b0fab
......@@ -4,7 +4,7 @@ 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.2
Stable tag: 0.3
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
......@@ -37,11 +37,9 @@ This Plugin Can called by using the below short code
1. Donation Form Template
`wc-quick-donation/template/donation_form.php`
2. Donation Processing Email Template
`wc-quick-donation/template/donation_processing_html.php`
`wc-quick-donation/template/donation_processing_plain.php`
`wc-quick-donation/template/donation_processing_html.php && wc-quick-donation/template/donation_processing_plain.php`
3. Donation Completed Email Template
`wc-quick-donation/template/donation_completed_html.php`
`wc-quick-donation/template/donation_completed_plain.php`
`wc-quick-donation/template/donation_completed_html.php && wc-quick-donation/template/donation_completed_plain.php`
Plugin Settings : ***Woocoomerce Settings => Quick Donation***
......@@ -93,6 +91,10 @@ Oops. Please User github / WordPress to post bugs. <a href="https://github.com/
3. Email Template Settings For Donation Completed.
== Changelog ==
= 0.3 =
* Plugin Activation Issue Fixed.
= 0.2 =
* Redirect User After Donation Added To Cart [Cart Page / Checkout Page]
* Select Your Preferred Payment Gateway For Donation
......
......@@ -17,7 +17,7 @@
Plugin Name: Woocommerce Quick Donation
Plugin URI: http://varunsridharan.in/
Description: Woocommerce Quick Donation
Version: 0.2
Version: 0.3
Author: Varun Sridharan
Author URI: http://varunsridharan.in/
License: GPL2
......@@ -339,20 +339,20 @@ class wc_quick_donation{
public function install() {
$exist = get_option('wc_quick_donation_product_id');
if($exist){
return true;
} else {
$post_id = $this->create_donation();
$post_id = create_donation();
add_option('wc_quick_donation_product_id',$post_id);
add_option('wc_quick_donation_orders','');
add_site_option( 'wc_quick_donation_product_id', $post_id) ;
}
}
/**
* Creats Donation Product IN WC
* @returns [[Type]] [[Description]]
*/
public function create_donation(){
}
function create_donation(){
$userID = 1;
if(get_current_user_id()){
$userID = get_current_user_id();
......@@ -378,11 +378,8 @@ class wc_quick_donation{
update_post_meta($post_id, '_sold_individually', "yes" );
update_post_meta($post_id, '_sku', 'checkout-donation');
return $post_id;
}
}
/**
* Check if WooCommerce is active
* if yes then call the class
......
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