Plugin Directory

Changeset 1764100

Timestamp:
11/12/2017 05:44:55 AM (7 years ago)
Author:
sk.shaikat
Message:

update version to 1.5.8.3

Location:
woocommerce-upcoming-product/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • woocommerce-upcoming-product/trunk/readme.txt

    r1761379 r1764100  
    4848
    4949== Change log ==
     50
     51
     52
     53
    5054
    5155= 1.5.8.2 = Oct 06, 2017
  • woocommerce-upcoming-product/trunk/woocommerce-upcoming-product.php

    r1741941 r1764100  
    7979        add_action( 'woocommerce_process_product_meta_bundle', array( $this, 'wup_save_upcoming_options' ), 10 );
    8080
    81        
     81
    8282        add_filter( 'woocommerce_add_to_cart_validation', array( $this, 'wup_stop_adding_to_cart' ), 2, 10 );
    8383
     
    228228    /**
    229229     * Show action links on the plugin screen.
    230      * 
     230     *
    231231     * @since 1.5.6
    232232     *
     
    256256        $woocommerce_loop['name']    = $loop_name;
    257257        $query_args                  = apply_filters( 'woocommerce_shortcode_products_query', $query_args, $atts, $loop_name );
    258        
     258
    259259        $products = new WP_Query( $query_args );
    260260
     
    382382     * - with precision = 2 : 3 days, 4 hours
    383383     * - with precision = 3 : 3 days, 4 hours, 12 minutes
    384      * 
     384     *
    385385     * From: http://www.if-not-true-then-false.com/2010/php-calculate-real-differences-between-two-dates-or-timestamps/
    386386     *
    387387     * @param mixed $time1 a time (string or timestamp)
    388388     * @param mixed $time2 a time (string or timestamp)
    389      * @param integer $precision Optional precision 
     389     * @param integer $precision Optional precision
    390390     * @return string time difference
    391391     */
     
    572572     *
    573573     * @since 1.0
    574      * 
     574     *
    575575     * @param int $post_id
    576576     */
     
    578578        $_upcoming = isset( $_POST['_upcoming'] ) ? $_POST['_upcoming'] : '';
    579579        $_available_on = ( isset( $_POST['_available_on'] ) ) ? wc_clean( $_POST['_available_on'] ) : '';
    580        
     580
    581581        update_post_meta( $post_id, '_upcoming', $_upcoming );
    582582        update_post_meta( $post_id, '_available_on', $_available_on );
     
    587587     *
    588588     * @since 1.5.5
    589      * 
     589     *
    590590     * @param bool true
    591591     * @param int $product_id
     
    642642     *
    643643     * @param obj
    644      * 
     644     *
    645645     * @return obj
    646646     */
     
    687687                        <strong>
    688688                            <?php
    689                             if ( !empty( WC_Admin_Settings::get_option( 'wup_availabel_date_lebel', 'Available from' ) ) ) {
    690                                 $available_date_text = WC_Admin_Settings::get_option( 'wup_availabel_date_lebel', 'Available from' ) . ': ';
     689                            $available_date = WC_Admin_Settings::get_option( 'wup_availabel_date_lebel', 'Available from' );
     690                            if ( !empty( $available_date ) ) {
     691                                $available_date_text = $available_date . ': ';
    691692                                echo $available_date_text;
    692693                            }
    693                             if ( empty( $_available_on ) ) { 
     694                            if ( empty( $_available_on ) ) {
    694695                                $not_available_date_text = WC_Admin_Settings::get_option( 'wup_not_availabel_date_text', 'Date not set yet' );
    695696                                echo $not_available_date_text;
     
    700701                                    echo $this->wup_get_date_diff( current_time('timestamp'), $_available_on );
    701702                                }
    702                             } 
     703                            }
    703704                            ?>
    704705                        </strong>
     
    730731                                echo WC_Admin_Settings::get_option( 'wup_availabel_date_lebel', 'Available from' ) . ': ';
    731732                            }
    732                             if ( empty( $_available_on ) ) { 
     733                            if ( empty( $_available_on ) ) {
    733734                                echo WC_Admin_Settings::get_option( 'wup_not_availabel_date_text', 'Date not set yet' );
    734735                            }else {
     
    738739                                    echo $this->wup_get_date_diff( current_time('timestamp'), $_available_on );
    739740                                }
    740                             } 
     741                            }
    741742                            ?>
    742743                        </strong>
Note: See TracChangeset for help on using the changeset viewer.