Plugin Directory

Changeset 1550635


Ignore:
Timestamp:
12/09/2016 02:01:55 PM (9 years ago)
Author:
opentools
Message:

V1.3.7: PayPal support, shipping method variables, fix update credentials

  • Add support for passing order/invoice numbers to PayPal
  • Add list variable [UserRoles] (all WordPress roles of the customer)
  • Add various shipping method variables (list variables)
    • [Shipping] (shipping costs)
    • [ShippingMethods] (user-readable string)
    • [ShippingMethodIDs] (internal, unique IDs for shiping methods, like shipping_by_rules:31)
    • [ShippingMethodTypes] (shipping plugin names)
    • [ShippingInstanceIDs] (unique identifiers for shipping instance when using zones)
  • Fix update credentials when multiple OpenTools plugins are installed
Location:
woocommerce-basic-ordernumbers
Files:
3 edited
14 copied

Legend:

Unmodified
Added
Removed
  • woocommerce-basic-ordernumbers/tags/1.3.7/assets/js/opentools-updatecheck.js

    r1459453 r1550635  
    66    var slug = jQuery(btn).data("slug");
    77    var nonce = jQuery(btn).data("nonce");
    8     var ajaxargs = {
    9         type: "POST",
    10         url: ajaxurl,
    11         data: {
    12             action: 'getUpdateCredentialsRow_'+slug,
    13             slug: slug,
    14             _ajax_nonce: nonce
    15         },
    16         success: function ( json ) {
    17             jQuery(btn).closest('tr').after(json['row']);
    18         },
    19         error: function() {  },
    20         complete: function() {  },
    21     };
    22     jQuery.ajax(ajaxargs);
     8
     9    var credentialRow = jQuery(btn).closest('table').find('tr#'+slug+'-credentials');
     10    if (credentialRow.length > 0) {
     11        jQuery(credentialRow).fadeOut(1000, function() { jQuery(this).remove(); });
     12    } else {
     13        var ajaxargs = {
     14            type: "POST",
     15            url: ajaxurl,
     16            data: {
     17                action: 'getUpdateCredentialsRow_'+slug,
     18                slug: slug,
     19                _ajax_nonce: nonce
     20            },
     21            success: function ( json ) {
     22                jQuery(btn).closest('tr').after(json['row']);
     23            },
     24            error: function() {  },
     25            complete: function() {  },
     26        };
     27        jQuery.ajax(ajaxargs);
     28    }
    2329    return false;
    2430};
  • woocommerce-basic-ordernumbers/tags/1.3.7/readme.txt

    r1459453 r1550635  
    44Tags: WooCommerce, Order numbers, orders
    55Requires at least: 4.0
    6 Tested up to: 4.5
    7 Stable tag: 1.3.6
     6Tested up to: 4.7
     7Stable tag: 1.3.7
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl.html
     
    7979== Changelog ==
    8080
     81= 1.3.7 =
     82* Add support for PayPal payment method
     83* Add variables:
     84  * [UserRoles] (list of all WordPress user rules for the customer)
     85  * [Shipping] (shipping costs)
     86  * [ShippingMethods] (user-readable string)
     87  * [ShippingMethodIDs] (internal, unique IDs for shiping methods, like shipping_by_rules:31)
     88  * [ShippingMethodTypes] (shipping plugin names)
     89  * [ShippingInstanceIDs] (unique identifiers for shipping instance when using zones)
     90
    8191= 1.3.6 =
    8292* Fix order number display for old orders
  • woocommerce-basic-ordernumbers/tags/1.3.7/woocommerce-basic-ordernumbers.php

    r1459453 r1550635  
    44 * Plugin URI: http://open-tools.net/woocommerce/advanced-ordernumbers-for-woocommerce.html
    55 * Description: Configure WooCommerce ordernumbers to have a running counter and arbitrary, fixed text (prefix / postfix).
    6  * Version: 1.3.6
     6 * Version: 1.3.7
    77 * Author: Open Tools
    88 * Author URI: http://open-tools.net
     
    1111 * Network: true
    1212 * WC requires at least: 2.2
    13  * WC tested up to: 2.5
     13 * WC tested up to: 2.6
    1414*/
    1515
  • woocommerce-basic-ordernumbers/trunk/assets/js/opentools-updatecheck.js

    r1459453 r1550635  
    66    var slug = jQuery(btn).data("slug");
    77    var nonce = jQuery(btn).data("nonce");
    8     var ajaxargs = {
    9         type: "POST",
    10         url: ajaxurl,
    11         data: {
    12             action: 'getUpdateCredentialsRow_'+slug,
    13             slug: slug,
    14             _ajax_nonce: nonce
    15         },
    16         success: function ( json ) {
    17             jQuery(btn).closest('tr').after(json['row']);
    18         },
    19         error: function() {  },
    20         complete: function() {  },
    21     };
    22     jQuery.ajax(ajaxargs);
     8
     9    var credentialRow = jQuery(btn).closest('table').find('tr#'+slug+'-credentials');
     10    if (credentialRow.length > 0) {
     11        jQuery(credentialRow).fadeOut(1000, function() { jQuery(this).remove(); });
     12    } else {
     13        var ajaxargs = {
     14            type: "POST",
     15            url: ajaxurl,
     16            data: {
     17                action: 'getUpdateCredentialsRow_'+slug,
     18                slug: slug,
     19                _ajax_nonce: nonce
     20            },
     21            success: function ( json ) {
     22                jQuery(btn).closest('tr').after(json['row']);
     23            },
     24            error: function() {  },
     25            complete: function() {  },
     26        };
     27        jQuery.ajax(ajaxargs);
     28    }
    2329    return false;
    2430};
  • woocommerce-basic-ordernumbers/trunk/readme.txt

    r1459453 r1550635  
    44Tags: WooCommerce, Order numbers, orders
    55Requires at least: 4.0
    6 Tested up to: 4.5
    7 Stable tag: 1.3.6
     6Tested up to: 4.7
     7Stable tag: 1.3.7
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl.html
     
    7979== Changelog ==
    8080
     81= 1.3.7 =
     82* Add support for PayPal payment method
     83* Add variables:
     84  * [UserRoles] (list of all WordPress user rules for the customer)
     85  * [Shipping] (shipping costs)
     86  * [ShippingMethods] (user-readable string)
     87  * [ShippingMethodIDs] (internal, unique IDs for shiping methods, like shipping_by_rules:31)
     88  * [ShippingMethodTypes] (shipping plugin names)
     89  * [ShippingInstanceIDs] (unique identifiers for shipping instance when using zones)
     90
    8191= 1.3.6 =
    8292* Fix order number display for old orders
  • woocommerce-basic-ordernumbers/trunk/woocommerce-basic-ordernumbers.php

    r1459453 r1550635  
    44 * Plugin URI: http://open-tools.net/woocommerce/advanced-ordernumbers-for-woocommerce.html
    55 * Description: Configure WooCommerce ordernumbers to have a running counter and arbitrary, fixed text (prefix / postfix).
    6  * Version: 1.3.6
     6 * Version: 1.3.7
    77 * Author: Open Tools
    88 * Author URI: http://open-tools.net
     
    1111 * Network: true
    1212 * WC requires at least: 2.2
    13  * WC tested up to: 2.5
     13 * WC tested up to: 2.6
    1414*/
    1515
Note: See TracChangeset for help on using the changeset viewer.