Plugin Directory

Changeset 1045307


Ignore:
Timestamp:
12/15/2014 10:47:59 PM (11 years ago)
Author:
Rashef
Message:

Fixed typos.

Location:
woocommerce-autocomplete-order/tags/1.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • woocommerce-autocomplete-order/tags/1.0/readme.txt

    r1045306 r1045307  
    44Tags: WooCommerce, order, complete, virtual, autocomplete
    55Requires at least: 3.3
    6 Tested up to: 4.0.1
    7 Stable tag: 1.1
     6Tested up to: 4.0.0
     7Stable tag: 1.0
    88License: GNU General Public License v3.0
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    2121== Installation ==
    2222
    23 1. Ensure you have WooCommerce 2.1 or higher installed and active
    24231. Upload the plugin's folder to the `/wp-content/plugins/` directory
    25241. Activate the plugin through the 'Plugins' menu in WordPress
    26 1. Open WooCommerce > Settings > Woo Extra Options
    27 1. Pick an option from the dropdown within the section named "Autocomplete Orders"
     251. Flag as "Virtual" all the products you want to be unlocked for users upon successful payment without any further (manual) action from you in the backoffice
    2826
    2927== Screenshots ==
     
    3533
    3634= The plugin is not working =
    37 Please verify the following:   
    38     * Ensure that WooCommerce is installed and active     
    39     * Ensure that you picked from the list the mode that fits your needs           
     35Please ensure that you picked the right mode from the list.     
    4036
    4137= Uh-uh, still not working! =
     
    4541Please deactivate my plugin (or select mode "Off"), test with a product marked as "virtual" and "downloadable". If it still doesn't work, then there's something wrong in your WooCommerce configuration or in your payment gateway. If it does work, please write me through the forum!       
    4642
    47 = How can I make it work with WooCommerce Product Bundles? =
    48 If you want to use mode "Virtual Paid Products Only" ensure that the bundle has the flag "Non-bundles Shipping" checked
    49 
    5043== Changelog ==
    5144
    52 = 1.1 =
    53     * Added compatibility with WooCommerce Product Bundles
    54     * Fixed PHP Warning and Notices
    55 
    5645= 1.0 =
     46    * Plugin completely rewritten to comply with WordPress 4.0 and WooCommerce 2.0.     
     47    * Added 3 different modes to ativate the plugin:       
     48        * Virtual Paid Products Only: order for products marked as "Virtual" will be turned to "Completed" upon successfull payment.           
     49        * All Paid Products: orders for any product are turned to "Completed" upon successfull payment.     
     50        * All Products: each and every order is turned to "Completed" irrespective for the payment method and whether or not the payment happened.     
     51    * Added a settings page (in WooCommerce dashboard) to select the mode we want to activate (under WooCommerce > Settings > Woo Extra Options).     
    5752   
    5853= v0.1.2 =
     
    7065== Upgrade notice ==
    7166
     67The plugin has been completely rewritten to meet requirements for WP4 and WooCommerce 2.0.     
     68A new tab has been added to WooCommerce settings in the Dashboard to select in which mode you want the plugin to work:   
     69    * autocomplete only orders for virtual product     
     70    * autocomplete every order once paid     
     71    * autocomplete every order even if not paid     
     72Enjoy!
  • woocommerce-autocomplete-order/tags/1.0/woocommerce-autocomplete-order.php

    r1045306 r1045307  
    44    Plugin URI:
    55    Description: Do you hate WooCommerce for obliging you to manually approve every order placed for non-downloadable goods? This plugin is the answer, since allows to automatically mark orders for **virtual** products as Completed after a successful payment (e.g. with PayPal or Credit Card).
    6     Version: 1.1
     6    Version: 1.0
    77    Author: Mirko Grewing
    88    Author URI: http://www.mirkogrewing.it 
     
    2525         * @copyright 2014 Mirko Grewing
    2626         * @license   http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
    27          * @version   1.1
     27         * @version   1.0
    2828         * @link      http://www.nitelab.org/
    2929         * @since     Class available since Release 0.1
     
    4545            function __construct()
    4646            {
    47                 if (is_admin()) {
    48                     //add settings tab
    49                     add_filter('woocommerce_settings_tabs_array', array($this,'woocommerce_settings_tabs_array'), 50);
    50                     //show settings tab
    51                     add_action('woocommerce_settings_tabs_'.$this->id, array($this,'show_settings_tab'));
    52                     //save settings tab
    53                     add_action('woocommerce_update_options_'.$this->id, array($this,'update_settings_tab'));
    54                     //add tabs select field
    55                     add_action('woocommerce_admin_field_'.$this->id,array($this, 'show_'.$this->id.'_field'), 10);
    56                     //save tabs select field
    57                     add_action('woocommerce_update_option_'.$this->id,array($this, 'save_'.$this->id.'_field'), 10);
    58                 }
     47                //add settings tab
     48                add_filter('woocommerce_settings_tabs_array', array($this,'woocommerce_settings_tabs_array'), 50);
     49                //show settings tab
     50                add_action('woocommerce_settings_tabs_'.$this->id, array($this,'show_settings_tab'));
     51                //save settings tab
     52                add_action('woocommerce_update_options_'.$this->id, array($this,'update_settings_tab'));
     53                //add tabs select field
     54                add_action('woocommerce_admin_field_'.$this->post_type,array($this, 'show_'.$this->post_type.'_field'), 10);
     55                //save tabs select field
     56                add_action('woocommerce_update_option_'.$this->post_type,array($this, 'save_'.$this->post_type.'_field'), 10);
    5957                //ajax search handler
    6058                //add_action('wp_ajax_woocommerce_json_custom_tabs', array($this,'woocommerce_json_custom_tabs'));
     
    106104                    ),
    107105                    'title' => array(
    108                         'name'     => __('Mode', 'wooExtraOptions'),
     106                        'name'     => __( 'Mode', 'wooExtraOptions' ),
    109107                        'type'     => 'select',
    110                         'desc'     => __('Select the type of autocompletion you want to activate.', 'wooExtraOptions'),
     108                        'desc'     => __( 'Select the type of autocompletion you want to activate.', 'wooExtraOptions' ),
    111109                        'desc_tip' => true,
    112110                        'default'  => 'off',
     
    152150                    }
    153151                } elseif ($mode == 'paid') {
    154                     add_filter('woocommerce_payment_complete_order_status', 'autocompletePaidOrders', 10, 2);
     152                    add_filter( 'woocommerce_payment_complete_order_status', 'autocompletePaidOrders', 10, 2 );
    155153                    /**
    156154                     * autocompletePaidOrders
     
    167165                    }
    168166                } elseif ($mode == 'virtual') {
    169                     add_filter('woocommerce_payment_complete_order_status', 'autocompleteVirtualOrders', 10, 2);
     167                    add_filter( 'woocommerce_payment_complete_order_status', 'autocompleteVirtualOrders', 10, 2 );
    170168                    /**
    171169                     * autocompleteVirtualOrders
     
    202200        new MG_Woo_Extra_Options();
    203201    }
    204 } elseif (defined('WOOCOMMERCE_VERSION') && version_compare(WOOCOMMERCE_VERSION, '2.1', '<')) {
    205     wc_add_notice(sprintf(__("This plugin requires WooCommerce 2.1 or higher!", "wooExtraOptions" ), 'error'));
    206202} else {
    207203    /**
Note: See TracChangeset for help on using the changeset viewer.