Plugin Directory

Changeset 963946


Ignore:
Timestamp:
08/11/2014 04:09:09 PM (12 years ago)
Author:
mjbanks
Message:

add filters to customize display of time select both public facing and in admin

Location:
woocommerce-local-pickup-time-select/trunk
Files:
3 added
5 edited

Legend:

Unmodified
Added
Removed
  • woocommerce-local-pickup-time-select/trunk

    • Property svn:ignore set to
      deploy.sh
      README.md
      .git
      .gitignore
  • woocommerce-local-pickup-time-select/trunk/admin/class-local-pickup-time-admin.php

    r912711 r963946  
    5959         * Show Pickup Time in the Order Details in the Admin Screen
    6060         */
    61         add_action( 'woocommerce_admin_order_data_after_billing_address', array( $this, 'show_metabox' ), 10, 1 );
     61        $admin_hooked_location = apply_filters( 'local_pickup_time_admin_location', 'woocommerce_admin_order_data_after_billing_address' );
     62        add_action( $admin_hooked_location, array( $this, 'show_metabox' ), 10, 1 );
    6263
    6364    }
  • woocommerce-local-pickup-time-select/trunk/public/class-local-pickup-time.php

    r912711 r963946  
    6161
    6262        // Add the local pickup time field to the checkout page
    63         add_action( 'woocommerce_after_order_notes', array( $this, 'time_select' ) );
     63        $public_hooked_location = apply_filters( 'local_pickup_time_select_location', 'woocommerce_after_order_notes' );
     64        add_action( $public_hooked_location, array( $this, 'time_select' ) );
    6465
    6566        // Process the checkout
  • woocommerce-local-pickup-time-select/trunk/readme.txt

    r912711 r963946  
    44Tags: woocommcerce, shipping, local pickup, checkout fields, ecommerce, e-commerce, wordpress ecommerce
    55Requires at least: 3.8
    6 Tested up to: 3.9
    7 Stable tag: 1.0.3
     6Tested up to: 3.9.2
     7Stable tag: 1.1.0
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5757Make sure to set your Timezone on the WordPress Admin Settings page.
    5858
     59= How do I change the location of the pickup time select box during checkout? =
     60
     61The location, by default, is hooked to `woocommerce_after_order_notes`. This can be overridden using the `local_pickup_time_select_location` filter. [A list of available hooks can be seen in the WooCommerce documentation](http://docs.woothemes.com/document/hooks/).
     62
     63= How do I change the location of the pickup time shown in the admin Order Details screen? =
     64
     65The location, by default, is hooked to `woocommerce_admin_order_data_after_billing_address`. This can be overridden using the `local_pickup_time_admin_location` filter. [A list of available hooks can be seen in the WooCommerce documentation](http://docs.woothemes.com/document/hooks/).
     66
    5967== Screenshots ==
    6068
     
    6270
    6371== Changelog ==
     72
     73= 1.1.0 =
     74* added `local_pickup_time_select_location` filter to customize location of pickup time select during checkout
     75* added `local_pickup_time_admin_location` filter to customize location of pickup time shown in the admin Order Details screen
    6476
    6577= 1.0.3 =
  • woocommerce-local-pickup-time-select/trunk/woocommerce-local-pickup-time.php

    r912711 r963946  
    1717 * Plugin URI:        http://mattbanks.me
    1818 * Description:       Add an an option to WooCommerce checkout pages for Local Pickup that allows the user to choose a pickup time.
    19  * Version:           1.0.3
     19 * Version:           1.1.0
    2020 * Author:            Matt Banks
    2121 * Author URI:        http://mattbanks.me
Note: See TracChangeset for help on using the changeset viewer.