Plugin Directory

Changeset 1658404


Ignore:
Timestamp:
05/16/2017 12:06:43 PM (9 years ago)
Author:
wizcoder
Message:

Release 1.0.4, see readme.txt for the changelog.

Location:
wc-simple-waiting-list
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • wc-simple-waiting-list/tags/1.0.4/public/class-wc-simple-waiting-list-public.php

    r1551763 r1658404  
    118118            $this->current_product = wc_get_product( $post->ID );
    119119
    120             if ( $this->current_product->product_type == 'grouped' ) {
     120            if ( $this->current_product->get_type() == 'grouped' ) {
    121121                return;
    122122            }
    123123
    124             if( $this->current_product->product_type == 'variable' ){
    125                 add_action( 'woocommerce_stock_html', array( $this, 'wc_simple_waiting_list_box_details' ), 20, 3 );
     124            if( $this->current_product->get_type() == 'variable' ){
     125                add_action( 'woocommerce_get_stock_html', array( $this, 'wc_simple_waiting_list_box_details' ), 20, 3 );
    126126            }
    127127            else {
    128                 add_action( 'woocommerce_stock_html', array( $this, 'wc_simple_waiting_list_box_details' ), 20, 2 );
     128                add_action( 'woocommerce_get_stock_html', array( $this, 'wc_simple_waiting_list_box_details' ), 20, 2 );
    129129            }
    130130        }
     
    193193    }
    194194
    195    
    196195
    197196    public function wc_simple_waiting_list_box_details($html, $availability, $_product = false ) {
     
    207206
    208207        $user           = wp_get_current_user();
    209         $product_type   = $_product->product_type;
    210         $product_id     = ( $product_type == 'simple' ) ? $_product->id : $_product->variation_id;
    211        
     208        $product_type   = $_product->get_type();
     209        $product_id     = ( $product_type == 'simple' ) ? $_product->get_id() : $_product->variation_id;
    212210        $box = '<div class="wrap">';
    213        
    214211        $addstyle = "display:none";
    215212        $removestyle = "display:none";
     
    219216            $addstyle = "display:block";
    220217
    221         $box .='<input type="submit" name="remove" id="remove" style="'. $removestyle . '" data-user-email="'.  $user->user_email . '" data-product-id="'. $product_id . '" value="Leave Waiting List">';             
     218        $box .='<input type="submit" name="remove" id="remove" style="'. $removestyle . '" data-user-email="'.  $user->user_email . '" data-product-id="'. $product_id . '" value="Leave Waiting List">';
    222219        if ( ! $user->exists() )
    223220            $box .= '<input type="text" name="emailaddr" id="emailaddr" style="'. $addstyle . '" placeholder="You email address" /><br /><br />';
    224221        $box .= '<input type="submit" name="save" id="save" style="'. $addstyle . '" data-user-email="'. $user->user_email . '" data-product-id="'. $product_id . '" value="Join Waiting List">';
    225         $box .= '</div>'; 
    226         echo $box;                     
     222        $box .= '</div>';
     223        echo $box;
    227224    }
    228225
  • wc-simple-waiting-list/tags/1.0.4/readme.txt

    r1551763 r1658404  
    44Tags: ecommerce
    55Requires at least: 4.5
    6 Tested up to: 4.7
    7 Stable tag: 1.0.3
     6Tested up to: 4.7.4
     7Stable tag: 1.0.4
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
    1010
    11 A woocommerce extension to allow out of stock products to have a waiting list for registered and non-registered users.
     11A woocommerce extension to allow customers to leave their email address on a waiting list for out of stock products.
    1212
    1313== Description ==
    1414
    15 Allows non-registered and registered users to add their email to a waiting list for out-of-stock products. When product is back in stock, an automatic email is send to waiting list. Includes a waiting list page to list all product and the number of people on waiting list and a dashboard widget display the total number of product that have a waiting list
     15Allows customers to leave their email on a waiting list for out-of-stock products. When product is back in stock, an automatic email is send to the customers on the waiting list.
     16
     17[youtube https://youtu.be/w4zklRNPwy4]
     18
     19== FEATURES AND OPTIONS: ==
     20Allows customers to leave their email address without having to register.
     21Dashboard widget displays the total number of products that has a waiting list.
     22Separate page to list all product and the number of people on waiting list.
     23Automatically sends an email to customers as soon as the product arrives in stock.
    1624
    1725
     
    2230
    2331== Frequently Asked Questions ==
    24 .
     32
     33= How to setup? =
     34
     35Just activate the plugin & you are done.
     36
     37= How many waiting list can I have? =
     38
     39Unlimited as many as woocommerce can support
    2540
    2641
     
    3247
    3348== Changelog ==
     49= 1.0.4 - 22/07/2016 =
     50* fix deprecated woocommerce functions.
     51
    3452= 1.0.3 - 22/07/2016 =
    3553* fix error cannot find email class.
  • wc-simple-waiting-list/tags/1.0.4/wc-simple-waiting-list.php

    r1458771 r1658404  
    1717 * Plugin URI:        http://imakeplugins.com/wc-simple-waiting-list/
    1818 * Description:       This is a short description of what the plugin does. It's displayed in the WordPress admin area.
    19  * Version:           1.0.3
     19 * Version:           1.0.4
    2020 * Author:            Bob Ong
    2121 * Author URI:        http://imakeplugins.com
  • wc-simple-waiting-list/trunk/public/class-wc-simple-waiting-list-public.php

    r1551763 r1658404  
    118118            $this->current_product = wc_get_product( $post->ID );
    119119
    120             if ( $this->current_product->product_type == 'grouped' ) {
     120            if ( $this->current_product->get_type() == 'grouped' ) {
    121121                return;
    122122            }
    123123
    124             if( $this->current_product->product_type == 'variable' ){
    125                 add_action( 'woocommerce_stock_html', array( $this, 'wc_simple_waiting_list_box_details' ), 20, 3 );
     124            if( $this->current_product->get_type() == 'variable' ){
     125                add_action( 'woocommerce_get_stock_html', array( $this, 'wc_simple_waiting_list_box_details' ), 20, 3 );
    126126            }
    127127            else {
    128                 add_action( 'woocommerce_stock_html', array( $this, 'wc_simple_waiting_list_box_details' ), 20, 2 );
     128                add_action( 'woocommerce_get_stock_html', array( $this, 'wc_simple_waiting_list_box_details' ), 20, 2 );
    129129            }
    130130        }
     
    193193    }
    194194
    195    
    196195
    197196    public function wc_simple_waiting_list_box_details($html, $availability, $_product = false ) {
     
    207206
    208207        $user           = wp_get_current_user();
    209         $product_type   = $_product->product_type;
    210         $product_id     = ( $product_type == 'simple' ) ? $_product->id : $_product->variation_id;
    211        
     208        $product_type   = $_product->get_type();
     209        $product_id     = ( $product_type == 'simple' ) ? $_product->get_id() : $_product->variation_id;
    212210        $box = '<div class="wrap">';
    213        
    214211        $addstyle = "display:none";
    215212        $removestyle = "display:none";
     
    219216            $addstyle = "display:block";
    220217
    221         $box .='<input type="submit" name="remove" id="remove" style="'. $removestyle . '" data-user-email="'.  $user->user_email . '" data-product-id="'. $product_id . '" value="Leave Waiting List">';             
     218        $box .='<input type="submit" name="remove" id="remove" style="'. $removestyle . '" data-user-email="'.  $user->user_email . '" data-product-id="'. $product_id . '" value="Leave Waiting List">';
    222219        if ( ! $user->exists() )
    223220            $box .= '<input type="text" name="emailaddr" id="emailaddr" style="'. $addstyle . '" placeholder="You email address" /><br /><br />';
    224221        $box .= '<input type="submit" name="save" id="save" style="'. $addstyle . '" data-user-email="'. $user->user_email . '" data-product-id="'. $product_id . '" value="Join Waiting List">';
    225         $box .= '</div>'; 
    226         echo $box;                     
     222        $box .= '</div>';
     223        echo $box;
    227224    }
    228225
  • wc-simple-waiting-list/trunk/readme.txt

    r1551763 r1658404  
    44Tags: ecommerce
    55Requires at least: 4.5
    6 Tested up to: 4.7
    7 Stable tag: 1.0.3
     6Tested up to: 4.7.4
     7Stable tag: 1.0.4
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
    1010
    11 A woocommerce extension to allow out of stock products to have a waiting list for registered and non-registered users.
     11A woocommerce extension to allow customers to leave their email address on a waiting list for out of stock products.
    1212
    1313== Description ==
    1414
    15 Allows non-registered and registered users to add their email to a waiting list for out-of-stock products. When product is back in stock, an automatic email is send to waiting list. Includes a waiting list page to list all product and the number of people on waiting list and a dashboard widget display the total number of product that have a waiting list
     15Allows customers to leave their email on a waiting list for out-of-stock products. When product is back in stock, an automatic email is send to the customers on the waiting list.
     16
     17[youtube https://youtu.be/w4zklRNPwy4]
     18
     19== FEATURES AND OPTIONS: ==
     20Allows customers to leave their email address without having to register.
     21Dashboard widget displays the total number of products that has a waiting list.
     22Separate page to list all product and the number of people on waiting list.
     23Automatically sends an email to customers as soon as the product arrives in stock.
    1624
    1725
     
    2230
    2331== Frequently Asked Questions ==
    24 .
     32
     33= How to setup? =
     34
     35Just activate the plugin & you are done.
     36
     37= How many waiting list can I have? =
     38
     39Unlimited as many as woocommerce can support
    2540
    2641
     
    3247
    3348== Changelog ==
     49= 1.0.4 - 22/07/2016 =
     50* fix deprecated woocommerce functions.
     51
    3452= 1.0.3 - 22/07/2016 =
    3553* fix error cannot find email class.
  • wc-simple-waiting-list/trunk/wc-simple-waiting-list.php

    r1458771 r1658404  
    1717 * Plugin URI:        http://imakeplugins.com/wc-simple-waiting-list/
    1818 * Description:       This is a short description of what the plugin does. It's displayed in the WordPress admin area.
    19  * Version:           1.0.3
     19 * Version:           1.0.4
    2020 * Author:            Bob Ong
    2121 * Author URI:        http://imakeplugins.com
Note: See TracChangeset for help on using the changeset viewer.