close

Plugin Directory

Changeset 2075290


Ignore:
Timestamp:
04/26/2019 10:55:08 AM (7 years ago)
Author:
sabbir1991
Message:

Deploy v2.9.14

Location:
dokan-lite/trunk
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • dokan-lite/trunk/classes/template-products.php

    r2073700 r2075290  
    298298
    299299                        if ( $date_to ) {
    300                             update_post_meta( $product_id, '_sale_price_dates_to', strtotime( $date_to ) );
     300                            update_post_meta( $product_id, '_sale_price_dates_to', strtotime( '+23 hours', strtotime( $date_to ) ) );
    301301                        } else {
    302302                            update_post_meta( $product_id, '_sale_price_dates_to', '' );
     
    315315                        if ( '' !== $postdata['_sale_price'] && $date_from && strtotime( $date_from ) < strtotime( 'NOW', current_time( 'timestamp' ) ) ) {
    316316                            update_post_meta( $product_id, '_price', wc_format_decimal( $postdata['_sale_price'] ) );
    317                         }
    318 
    319                         if ( $date_to && strtotime( $date_to ) < strtotime( 'NOW', current_time( 'timestamp' ) ) ) {
    320                             update_post_meta( $product_id, '_price', ( $postdata['_regular_price'] === '' ) ? '' : wc_format_decimal( $postdata['_regular_price'] ) );
    321                             update_post_meta( $product_id, '_sale_price_dates_from', '' );
    322                             update_post_meta( $product_id, '_sale_price_dates_to', '' );
    323317                        }
    324318                    }
  • dokan-lite/trunk/dokan.php

    r2073700 r2075290  
    44Plugin URI: https://wordpress.org/plugins/dokan-lite/
    55Description: An e-commerce marketplace plugin for WordPress. Powered by WooCommerce and weDevs.
    6 Version: 2.9.13
     6Version: 2.9.14
    77Author: weDevs, LLC
    88Author URI: https://wedevs.com/
    99Text Domain: dokan-lite
    1010WC requires at least: 3.0
    11 WC tested up to: 3.6.1
     11WC tested up to: 3.6.2
    1212Domain Path: /languages/
    1313License: GPL2
     
    7979     * @var string
    8080     */
    81     public $version = '2.9.13';
     81    public $version = '2.9.14';
    8282
    8383    /**
  • dokan-lite/trunk/includes/class-vendor.php

    r2073700 r2075290  
    406406
    407407        if ( ! $banner_id ) {
    408             return false;
     408            $banner = $this->get_info_part( 'banner' );
     409
     410            if ( $banner ) {
     411                $banner_id = $banner;
     412            } else {
     413                return false;
     414            }
    409415        }
    410416
     
    434440    public function get_avatar() {
    435441        $avatar_id = $this->get_avatar_id();
     442
     443        if ( ! $avatar_id ) {
     444            $avatar_id = $this->get_info_part( 'gravatar' );
     445        }
    436446
    437447        if ( ! $avatar_id && ! empty( $this->data->user_email ) ) {
  • dokan-lite/trunk/includes/functions.php

    r2073700 r2075290  
    20112011    // see if there is a user_avatar meta field
    20122012    $user_avatar = get_user_meta( $user->ID, 'dokan_profile_settings', true );
    2013     $gravatar_id = isset( $user_avatar['gravatar'] ) ? $user_avatar['gravatar'] : 0;
     2013    $gravatar_id = isset( $user_avatar['gravatar_id'] ) ? $user_avatar['gravatar_id'] : 0;
     2014    $gravatar_id = isset( $user_avatar['gravatar'] ) ? $user_avatar['gravatar'] : $gravatar_id;
    20142015
    20152016    if ( empty( $gravatar_id ) ) {
     
    31543155    $today      = strtolower( date( 'l' ) );
    31553156
    3156     if ( ! is_array( $open_days ) && ! isset( $open_days[ $today ] ) ) {
     3157    if ( ! isset( $open_days[ $today ] ) ) {
    31573158        return false;
    31583159    }
    31593160
    31603161    $schedule = $open_days[ $today ];
    3161 
    3162     if ( 'open' === $schedule['status'] ) {
     3162    $status   = isset( $schedule['open'] ) ? $schedule['open'] : $schedule['status'];
     3163
     3164    if ( 'open' === $status ) {
    31633165        if ( empty( $schedule['opening_time'] ) || empty( $schedule['closing_time'] ) ) {
    31643166            return true;
  • dokan-lite/trunk/includes/product-functions.php

    r2073700 r2075290  
    129129
    130130        if ( $date_to ) {
    131             update_post_meta( $product_id, '_sale_price_dates_to', strtotime( $date_to ) );
     131            update_post_meta( $product_id, '_sale_price_dates_to', strtotime( '+ 23 hours', strtotime( $date_to ) ) );
    132132        } else {
    133133            update_post_meta( $product_id, '_sale_price_dates_to', '' );
     
    147147        if ( '' !== $data['_sale_price'] && $date_from && strtotime( $date_from ) < strtotime( 'NOW', current_time( 'timestamp' ) ) ) {
    148148            update_post_meta( $product_id, '_price', wc_format_decimal( $data['_sale_price'] ) );
    149         }
    150 
    151         if ( $date_to && strtotime( $date_to ) < strtotime( 'NOW', current_time( 'timestamp' ) ) ) {
    152             update_post_meta( $product_id, '_price', ( $data['_regular_price'] === '' ) ? '' : wc_format_decimal( $data['_regular_price'] ) );
    153             update_post_meta( $product_id, '_sale_price_dates_from', '' );
    154             update_post_meta( $product_id, '_sale_price_dates_to', '' );
    155149        }
    156150
  • dokan-lite/trunk/includes/wc-functions.php

    r2073700 r2075290  
    247247        // Dates
    248248        update_post_meta( $post_id, '_sale_price_dates_from', $date_from ? strtotime( $date_from ) : '' );
    249         update_post_meta( $post_id, '_sale_price_dates_to', $date_to ? strtotime( $date_to ) : '' );
     249
     250        // error_log( var_export( date('y-m-d H:i:s'), true ) );
     251        update_post_meta( $post_id, '_sale_price_dates_to', $date_to ? strtotime( '+ 23 hours', strtotime( $date_to ) ): '' );
    250252
    251253        if ( $date_to && ! $date_from ) {
     
    261263        } else {
    262264            update_post_meta( $post_id, '_price', '' === $regular_price ? '' : wc_format_decimal( $regular_price ) );
    263         }
    264 
    265         if ( $date_to && strtotime( $date_to ) < strtotime( 'NOW', current_time( 'timestamp' ) ) ) {
    266             update_post_meta( $post_id, '_price', '' === $regular_price ? '' : wc_format_decimal( $regular_price ) );
    267             update_post_meta( $post_id, '_sale_price', '' );
    268             update_post_meta( $post_id, '_sale_price_dates_from', '' );
    269             update_post_meta( $post_id, '_sale_price_dates_to', '' );
    270265        }
    271266    }
  • dokan-lite/trunk/includes/wc-template.php

    r2044318 r2075290  
    324324
    325325add_action( 'dokan_contact_form', 'dokan_add_privacy_policy' );
     326
     327/**
     328 * Unset unnecessary data
     329 *
     330 * @since 2.9.14
     331 */
     332add_action( 'dokan_store_profile_saved', function( $store_id, $settings ) {
     333    $store_info        = dokan_get_store_info( $store_id );
     334    $banner            = isset( $store_info['banner'] ) ? true : false;
     335    $gravatar          = isset( $store_info['gravatar'] ) ? true : false;
     336    $all_times         = isset( $store_info['dokan_store_time'] ) ? $store_info['dokan_store_time'] : false;
     337    $days              = [ 'sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday' ];
     338    $is_status_unsated = false;
     339
     340    if ( $banner ) {
     341        unset( $store_info['banner'] );
     342    }
     343
     344    if ( $gravatar ) {
     345        unset( $store_info['gravatar'] );
     346    }
     347
     348    if ( $all_times ) {
     349        foreach ( $days as $day => $value ) {
     350            if ( isset( $all_times[$day]['open'] ) ) {
     351                $is_status_unsated = true;
     352
     353                unset( $all_times[$day]['open'] );
     354            }
     355        }
     356    }
     357
     358    if ( $banner || $gravatar || $is_status_unsated ) {
     359        update_user_meta( $store_id, 'dokan_profile_settings', $store_info );
     360    }
     361
     362}, 99, 2 );
  • dokan-lite/trunk/languages/dokan-lite.pot

    r2073700 r2075290  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Dokan 2.9.13\n"
     5"Project-Id-Version: Dokan 2.9.14\n"
    66"Report-Msgid-Bugs-To: https://wedevs.com/contact/\n"
    7 "POT-Creation-Date: 2019-04-24 05:04:30+00:00\n"
     7"POT-Creation-Date: 2019-04-26 10:50:11+00:00\n"
    88"MIME-Version: 1.0\n"
    99"Content-Type: text/plain; charset=utf-8\n"
     
    6363msgstr ""
    6464
    65 #: classes/admin-user-profile.php:117 templates/settings/store-form.php:76
     65#: classes/admin-user-profile.php:117 templates/settings/store-form.php:78
    6666msgid "Upload banner"
    6767msgstr ""
     
    380380msgstr ""
    381381
    382 #: classes/seller-setup-wizard.php:179 templates/settings/store-form.php:128
     382#: classes/seller-setup-wizard.php:179 templates/settings/store-form.php:130
    383383msgid "Store Product Per Page"
    384384msgstr ""
     
    409409msgstr ""
    410410
    411 #: classes/seller-setup-wizard.php:224 templates/settings/store-form.php:158
     411#: classes/seller-setup-wizard.php:224 templates/settings/store-form.php:160
    412412msgid "Email"
    413413msgstr ""
    414414
    415 #: classes/seller-setup-wizard.php:228 templates/settings/store-form.php:163
     415#: classes/seller-setup-wizard.php:228 templates/settings/store-form.php:165
    416416msgid "Show email address in store"
    417417msgstr ""
     
    488488msgstr ""
    489489
    490 #: classes/template-products.php:180 includes/product-functions.php:496
     490#: classes/template-products.php:180 includes/product-functions.php:490
    491491msgid "Delete Permanently"
    492492msgstr ""
     
    496496msgstr ""
    497497
    498 #: classes/template-products.php:222 classes/template-products.php:376
     498#: classes/template-products.php:222 classes/template-products.php:370
    499499#: includes/product-functions.php:33
    500500msgid "Please enter product title"
    501501msgstr ""
    502502
    503 #: classes/template-products.php:229 classes/template-products.php:383
     503#: classes/template-products.php:229 classes/template-products.php:377
    504504#: includes/product-functions.php:39
    505505msgid "Please select a category"
    506506msgstr ""
    507507
    508 #: classes/template-products.php:234 classes/template-products.php:388
     508#: classes/template-products.php:234 classes/template-products.php:382
    509509#: includes/product-functions.php:43
    510510msgid "Please select AT LEAST ONE category"
    511511msgstr ""
    512512
    513 #: classes/template-products.php:395
     513#: classes/template-products.php:389
    514514msgid "No product found!"
    515515msgstr ""
    516516
    517 #: classes/template-products.php:399 includes/product-functions.php:67
     517#: classes/template-products.php:393 includes/product-functions.php:67
    518518msgid "I swear this is not your product!"
    519519msgstr ""
     
    850850
    851851#: includes/admin/class-settings.php:279 includes/functions.php:1211
    852 #: templates/settings/store-form.php:205
     852#: templates/settings/store-form.php:207
    853853msgid "Terms and Conditions"
    854854msgstr ""
     
    10271027msgstr ""
    10281028
    1029 #: includes/admin/class-settings.php:460 includes/functions.php:3458
     1029#: includes/admin/class-settings.php:460 includes/functions.php:3460
    10301030msgid ""
    10311031"Your personal data will be used to support your experience throughout this "
     
    29362936msgstr ""
    29372937
    2938 #: includes/class-dokan-privacy.php:174 templates/settings/store-form.php:118
     2938#: includes/class-dokan-privacy.php:174 templates/settings/store-form.php:120
    29392939msgid "Store Name"
    29402940msgstr ""
     
    29642964msgstr ""
    29652965
    2966 #: includes/class-dokan-privacy.php:195 includes/functions.php:2325
     2966#: includes/class-dokan-privacy.php:195 includes/functions.php:2326
    29672967msgid "Facebook"
    29682968msgstr ""
    29692969
    2970 #: includes/class-dokan-privacy.php:196 includes/functions.php:2329
     2970#: includes/class-dokan-privacy.php:196 includes/functions.php:2330
    29712971msgid "Google Plus"
    29722972msgstr ""
    29732973
    2974 #: includes/class-dokan-privacy.php:197 includes/functions.php:2333
     2974#: includes/class-dokan-privacy.php:197 includes/functions.php:2334
    29752975msgid "Twitter"
    29762976msgstr ""
    29772977
    2978 #: includes/class-dokan-privacy.php:198 includes/functions.php:2337
     2978#: includes/class-dokan-privacy.php:198 includes/functions.php:2338
    29792979msgid "Pinterest"
    29802980msgstr ""
     
    29842984msgstr ""
    29852985
    2986 #: includes/class-dokan-privacy.php:200 includes/functions.php:2345
     2986#: includes/class-dokan-privacy.php:200 includes/functions.php:2346
    29872987msgid "Youtube"
    29882988msgstr ""
    29892989
    2990 #: includes/class-dokan-privacy.php:201 includes/functions.php:2349
     2990#: includes/class-dokan-privacy.php:201 includes/functions.php:2350
    29912991msgid "Instagram"
    29922992msgstr ""
    29932993
    2994 #: includes/class-dokan-privacy.php:202 includes/functions.php:2353
     2994#: includes/class-dokan-privacy.php:202 includes/functions.php:2354
    29952995msgid "Flickr"
    29962996msgstr ""
     
    31253125msgstr ""
    31263126
    3127 #: includes/class-vendor.php:698
     3127#: includes/class-vendor.php:708
    31283128msgid "No ratings found yet!"
    31293129msgstr ""
    31303130
    3131 #: includes/class-vendor.php:700
     3131#: includes/class-vendor.php:710
    31323132msgid "%s rating from %d review"
    31333133msgid_plural "%s rating from %d reviews"
     
    31353135msgstr[1] ""
    31363136
    3137 #: includes/class-vendor.php:701
     3137#: includes/class-vendor.php:711
    31383138msgid "Rated %s out of %d"
    31393139msgstr ""
     
    34553455msgstr ""
    34563456
    3457 #: includes/functions.php:2061
     3457#: includes/functions.php:2062
    34583458msgid "- Select a location -"
    34593459msgstr ""
    34603460
    3461 #: includes/functions.php:2065 includes/functions.php:2088
     3461#: includes/functions.php:2066 includes/functions.php:2089
    34623462msgid "Everywhere Else"
    34633463msgstr ""
    34643464
    3465 #: includes/functions.php:2084
     3465#: includes/functions.php:2085
    34663466msgid "- Select a State -"
    34673467msgstr ""
    34683468
    3469 #: includes/functions.php:2106
     3469#: includes/functions.php:2107
    34703470msgid "Ready to ship in..."
    34713471msgstr ""
    34723472
    3473 #: includes/functions.php:2107
     3473#: includes/functions.php:2108
    34743474msgid "1 business day"
    34753475msgstr ""
    34763476
    3477 #: includes/functions.php:2108
     3477#: includes/functions.php:2109
    34783478msgid "1-2 business day"
    34793479msgstr ""
    34803480
    3481 #: includes/functions.php:2109
     3481#: includes/functions.php:2110
    34823482msgid "1-3 business day"
    34833483msgstr ""
    34843484
    3485 #: includes/functions.php:2110
     3485#: includes/functions.php:2111
    34863486msgid "3-5 business day"
    34873487msgstr ""
    34883488
    3489 #: includes/functions.php:2111
     3489#: includes/functions.php:2112
    34903490msgid "1-2 weeks"
    34913491msgstr ""
    34923492
    3493 #: includes/functions.php:2112
     3493#: includes/functions.php:2113
    34943494msgid "2-3 weeks"
    34953495msgstr ""
    34963496
    3497 #: includes/functions.php:2113
     3497#: includes/functions.php:2114
    34983498msgid "3-4 weeks"
    34993499msgstr ""
    35003500
    3501 #: includes/functions.php:2114
     3501#: includes/functions.php:2115
    35023502msgid "4-6 weeks"
    35033503msgstr ""
    35043504
    3505 #: includes/functions.php:2115
     3505#: includes/functions.php:2116
    35063506msgid "6-8 weeks"
    35073507msgstr ""
    35083508
    3509 #: includes/functions.php:2234
     3509#: includes/functions.php:2235
    35103510msgid "All dates"
    35113511msgstr ""
    35123512
    3513 #: includes/functions.php:2249
     3513#: includes/functions.php:2250
    35143514#. translators: 1: month name, 2: 4-digit year
    35153515msgid "%1$s %2$d"
    35163516msgstr ""
    35173517
    3518 #: includes/functions.php:2341
     3518#: includes/functions.php:2342
    35193519msgid "LinkedIn"
    35203520msgstr ""
    35213521
    3522 #: includes/functions.php:2619
     3522#: includes/functions.php:2620
    35233523msgid "Dokan Store Sidebar"
    35243524msgstr ""
    35253525
    3526 #: includes/functions.php:2880
     3526#: includes/functions.php:2881
    35273527msgid "View sales overview"
    35283528msgstr ""
    35293529
    3530 #: includes/functions.php:2881
     3530#: includes/functions.php:2882
    35313531msgid "View sales report chart"
    35323532msgstr ""
    35333533
    3534 #: includes/functions.php:2882
     3534#: includes/functions.php:2883
    35353535msgid "View announcement"
    35363536msgstr ""
    35373537
    3538 #: includes/functions.php:2883
     3538#: includes/functions.php:2884
    35393539msgid "View order report"
    35403540msgstr ""
    35413541
    3542 #: includes/functions.php:2884
     3542#: includes/functions.php:2885
    35433543msgid "View review report"
    35443544msgstr ""
    35453545
    3546 #: includes/functions.php:2885
     3546#: includes/functions.php:2886
    35473547msgid "View product status report"
    35483548msgstr ""
    35493549
    3550 #: includes/functions.php:2888
     3550#: includes/functions.php:2889
    35513551msgid "View overview report"
    35523552msgstr ""
    35533553
    3554 #: includes/functions.php:2889
     3554#: includes/functions.php:2890
    35553555msgid "View daily sales report"
    35563556msgstr ""
    35573557
    3558 #: includes/functions.php:2890
     3558#: includes/functions.php:2891
    35593559msgid "View top selling report"
    35603560msgstr ""
    35613561
    3562 #: includes/functions.php:2891
     3562#: includes/functions.php:2892
    35633563msgid "View top earning report"
    35643564msgstr ""
    35653565
    3566 #: includes/functions.php:2892
     3566#: includes/functions.php:2893
    35673567msgid "View statement report"
    35683568msgstr ""
    35693569
    3570 #: includes/functions.php:2895
     3570#: includes/functions.php:2896
    35713571msgid "View order"
    35723572msgstr ""
    35733573
    3574 #: includes/functions.php:2896
     3574#: includes/functions.php:2897
    35753575msgid "Manage order"
    35763576msgstr ""
    35773577
    3578 #: includes/functions.php:2897
     3578#: includes/functions.php:2898
    35793579msgid "Manage order note"
    35803580msgstr ""
    35813581
    3582 #: includes/functions.php:2898
     3582#: includes/functions.php:2899
    35833583msgid "Manage refund"
    35843584msgstr ""
    35853585
    3586 #: includes/functions.php:2902
     3586#: includes/functions.php:2903
    35873587msgid "Add coupon"
    35883588msgstr ""
    35893589
    3590 #: includes/functions.php:2903
     3590#: includes/functions.php:2904
    35913591msgid "Edit coupon"
    35923592msgstr ""
    35933593
    3594 #: includes/functions.php:2904
     3594#: includes/functions.php:2905
    35953595msgid "Delete coupon"
    35963596msgstr ""
    35973597
    3598 #: includes/functions.php:2907
     3598#: includes/functions.php:2908
    35993599msgid "View reviews"
    36003600msgstr ""
    36013601
    3602 #: includes/functions.php:2908
     3602#: includes/functions.php:2909
    36033603msgid "Manage reviews"
    36043604msgstr ""
    36053605
    3606 #: includes/functions.php:2912
     3606#: includes/functions.php:2913
    36073607msgid "Manage withdraw"
    36083608msgstr ""
    36093609
    3610 #: includes/functions.php:2915
     3610#: includes/functions.php:2916
    36113611msgid "Add product"
    36123612msgstr ""
    36133613
    3614 #: includes/functions.php:2916
     3614#: includes/functions.php:2917
    36153615msgid "Edit product"
    36163616msgstr ""
    36173617
    3618 #: includes/functions.php:2917
     3618#: includes/functions.php:2918
    36193619msgid "Delete product"
    36203620msgstr ""
    36213621
    3622 #: includes/functions.php:2918
     3622#: includes/functions.php:2919
    36233623msgid "View product"
    36243624msgstr ""
    36253625
    3626 #: includes/functions.php:2919
     3626#: includes/functions.php:2920
    36273627msgid "Duplicate product"
    36283628msgstr ""
    36293629
    3630 #: includes/functions.php:2920
     3630#: includes/functions.php:2921
    36313631msgid "Import product"
    36323632msgstr ""
    36333633
    3634 #: includes/functions.php:2921
     3634#: includes/functions.php:2922
    36353635msgid "Export product"
    36363636msgstr ""
    36373637
    3638 #: includes/functions.php:2924
     3638#: includes/functions.php:2925
    36393639msgid "View overview menu"
    36403640msgstr ""
    36413641
    3642 #: includes/functions.php:2925
     3642#: includes/functions.php:2926
    36433643msgid "View product menu"
    36443644msgstr ""
    36453645
    3646 #: includes/functions.php:2926
     3646#: includes/functions.php:2927
    36473647msgid "View order menu"
    36483648msgstr ""
    36493649
    3650 #: includes/functions.php:2927
     3650#: includes/functions.php:2928
    36513651msgid "View coupon menu"
    36523652msgstr ""
    36533653
    3654 #: includes/functions.php:2928
     3654#: includes/functions.php:2929
    36553655msgid "View report menu"
    36563656msgstr ""
    36573657
    3658 #: includes/functions.php:2929
     3658#: includes/functions.php:2930
    36593659msgid "Vuew review menu"
    36603660msgstr ""
    36613661
    3662 #: includes/functions.php:2930
     3662#: includes/functions.php:2931
    36633663msgid "View withdraw menu"
    36643664msgstr ""
    36653665
    3666 #: includes/functions.php:2931
     3666#: includes/functions.php:2932
    36673667msgid "View store settings menu"
    36683668msgstr ""
    36693669
    3670 #: includes/functions.php:2932
     3670#: includes/functions.php:2933
    36713671msgid "View payment settings menu"
    36723672msgstr ""
    36733673
    3674 #: includes/functions.php:2933
     3674#: includes/functions.php:2934
    36753675msgid "View shipping settings menu"
    36763676msgstr ""
    36773677
    3678 #: includes/functions.php:2934
     3678#: includes/functions.php:2935
    36793679msgid "View social settings menu"
    36803680msgstr ""
    36813681
    3682 #: includes/functions.php:2935
     3682#: includes/functions.php:2936
    36833683msgid "View seo settings menu"
    36843684msgstr ""
    36853685
    3686 #: includes/functions.php:3112
     3686#: includes/functions.php:3113
    36873687msgid "Saturday"
    36883688msgstr ""
    36893689
    3690 #: includes/functions.php:3115
     3690#: includes/functions.php:3116
    36913691msgid "Sunday"
    36923692msgstr ""
    36933693
    3694 #: includes/functions.php:3118
     3694#: includes/functions.php:3119
    36953695msgid "Monday"
    36963696msgstr ""
    36973697
    3698 #: includes/functions.php:3121
     3698#: includes/functions.php:3122
    36993699msgid "Tuesday"
    37003700msgstr ""
    37013701
    3702 #: includes/functions.php:3124
     3702#: includes/functions.php:3125
    37033703msgid "Wednesday"
    37043704msgstr ""
    37053705
    3706 #: includes/functions.php:3127
     3706#: includes/functions.php:3128
    37073707msgid "Thursday"
    37083708msgstr ""
    37093709
    3710 #: includes/functions.php:3130
     3710#: includes/functions.php:3131
    37113711msgid "Friday"
    37123712msgstr ""
    37133713
    3714 #: includes/functions.php:3133
     3714#: includes/functions.php:3134
    37153715msgid "Off Day"
    37163716msgstr ""
    37173717
    3718 #: includes/functions.php:3439
     3718#: includes/functions.php:3441
    37193719msgid "privacy policy"
    37203720msgstr ""
    37213721
    3722 #: includes/functions.php:3479
     3722#: includes/functions.php:3481
    37233723msgid "Please Login to Continue"
    37243724msgstr ""
     
    38573857msgstr ""
    38583858
    3859 #: includes/product-functions.php:215
     3859#: includes/product-functions.php:209
    38603860msgid ""
    38613861"Before you can add a variation you need to add some variation attributes on "
     
    38633863msgstr ""
    38643864
    3865 #: includes/product-functions.php:225
     3865#: includes/product-functions.php:219
    38663866msgid "Add variation"
    38673867msgstr ""
    38683868
    3869 #: includes/product-functions.php:226
     3869#: includes/product-functions.php:220
    38703870msgid "Create variations from all attributes"
    38713871msgstr ""
    38723872
    3873 #: includes/product-functions.php:227
     3873#: includes/product-functions.php:221
    38743874msgid "Delete all variations"
    38753875msgstr ""
    38763876
    3877 #: includes/product-functions.php:228 templates/my-orders.php:29
     3877#: includes/product-functions.php:222 templates/my-orders.php:29
    38783878#: templates/orders/listing.php:49 templates/orders/listing.php:77
    38793879#: templates/products/products-listing-row.php:53
     
    38833883msgstr ""
    38843884
     3885#: includes/product-functions.php:223
     3886msgid "Toggle &quot;Enabled&quot;"
     3887msgstr ""
     3888
     3889#: includes/product-functions.php:224
     3890msgid "Toggle &quot;Downloadable&quot;"
     3891msgstr ""
     3892
     3893#: includes/product-functions.php:225
     3894msgid "Toggle &quot;Virtual&quot;"
     3895msgstr ""
     3896
     3897#: includes/product-functions.php:227
     3898msgid "Pricing"
     3899msgstr ""
     3900
     3901#: includes/product-functions.php:228
     3902msgid "Set regular prices"
     3903msgstr ""
     3904
    38853905#: includes/product-functions.php:229
    3886 msgid "Toggle &quot;Enabled&quot;"
     3906msgid "Increase regular prices (fixed amount or percentage)"
    38873907msgstr ""
    38883908
    38893909#: includes/product-functions.php:230
    3890 msgid "Toggle &quot;Downloadable&quot;"
     3910msgid "Decrease regular prices (fixed amount or percentage)"
    38913911msgstr ""
    38923912
    38933913#: includes/product-functions.php:231
    3894 msgid "Toggle &quot;Virtual&quot;"
     3914msgid "Set sale prices"
     3915msgstr ""
     3916
     3917#: includes/product-functions.php:232
     3918msgid "Increase sale prices (fixed amount or percentage)"
    38953919msgstr ""
    38963920
    38973921#: includes/product-functions.php:233
    3898 msgid "Pricing"
     3922msgid "Decrease sale prices (fixed amount or percentage)"
    38993923msgstr ""
    39003924
    39013925#: includes/product-functions.php:234
    3902 msgid "Set regular prices"
    3903 msgstr ""
    3904 
    3905 #: includes/product-functions.php:235
    3906 msgid "Increase regular prices (fixed amount or percentage)"
    3907 msgstr ""
    3908 
    3909 #: includes/product-functions.php:236
    3910 msgid "Decrease regular prices (fixed amount or percentage)"
     3926msgid "Set scheduled sale dates"
     3927msgstr ""
     3928
     3929#: includes/product-functions.php:236 templates/products/inventory.php:3
     3930msgid "Inventory"
    39113931msgstr ""
    39123932
    39133933#: includes/product-functions.php:237
    3914 msgid "Set sale prices"
     3934msgid "Toggle &quot;Manage stock&quot;"
    39153935msgstr ""
    39163936
    39173937#: includes/product-functions.php:238
    3918 msgid "Increase sale prices (fixed amount or percentage)"
    3919 msgstr ""
    3920 
    3921 #: includes/product-functions.php:239
    3922 msgid "Decrease sale prices (fixed amount or percentage)"
    3923 msgstr ""
    3924 
    3925 #: includes/product-functions.php:240
    3926 msgid "Set scheduled sale dates"
    3927 msgstr ""
    3928 
    3929 #: includes/product-functions.php:242 templates/products/inventory.php:3
    3930 msgid "Inventory"
    3931 msgstr ""
    3932 
    3933 #: includes/product-functions.php:243
    3934 msgid "Toggle &quot;Manage stock&quot;"
    3935 msgstr ""
    3936 
    3937 #: includes/product-functions.php:244
    39383938#: templates/products/products-listing-row.php:68
    39393939#: templates/products/products-listing.php:94
     
    39413941msgstr ""
    39423942
     3943#: includes/product-functions.php:240
     3944msgid "Shipping"
     3945msgstr ""
     3946
     3947#: includes/product-functions.php:241
     3948msgid "Length"
     3949msgstr ""
     3950
     3951#: includes/product-functions.php:242
     3952msgid "Width"
     3953msgstr ""
     3954
     3955#: includes/product-functions.php:243
     3956msgid "Height"
     3957msgstr ""
     3958
     3959#: includes/product-functions.php:244
     3960msgid "Weight"
     3961msgstr ""
     3962
    39433963#: includes/product-functions.php:246
    3944 msgid "Shipping"
     3964msgid "Downloadable products"
    39453965msgstr ""
    39463966
    39473967#: includes/product-functions.php:247
    3948 msgid "Length"
     3968msgid "Download limit"
    39493969msgstr ""
    39503970
    39513971#: includes/product-functions.php:248
    3952 msgid "Width"
    3953 msgstr ""
    3954 
    3955 #: includes/product-functions.php:249
    3956 msgid "Height"
    3957 msgstr ""
    3958 
    3959 #: includes/product-functions.php:250
    3960 msgid "Weight"
     3972msgid "Download expiry"
    39613973msgstr ""
    39623974
    39633975#: includes/product-functions.php:252
    3964 msgid "Downloadable products"
    3965 msgstr ""
    3966 
    3967 #: includes/product-functions.php:253
    3968 msgid "Download limit"
    3969 msgstr ""
    3970 
    3971 #: includes/product-functions.php:254
    3972 msgid "Download expiry"
    3973 msgstr ""
    3974 
    3975 #: includes/product-functions.php:258
    39763976msgid "Go"
    39773977msgstr ""
    39783978
    3979 #: includes/product-functions.php:265
     3979#: includes/product-functions.php:259
    39803980msgid ""
    39813981"Default Form Values: These are the attributes that will be pre-selected on "
     
    39833983msgstr ""
    39843984
    3985 #: includes/product-functions.php:283
     3985#: includes/product-functions.php:277
    39863986msgid "No default"
    39873987msgstr ""
    39883988
    3989 #: includes/product-functions.php:323
     3989#: includes/product-functions.php:317
    39903990msgid "Save Variations"
    39913991msgstr ""
    39923992
    3993 #: includes/product-functions.php:324 lib/appsero/src/insights.php:788
     3993#: includes/product-functions.php:318 lib/appsero/src/insights.php:788
    39943994#: templates/my-orders.php:83 templates/orders/details.php:200
    39953995#: templates/products/new-product-single.php:205
     
    40014001msgstr ""
    40024002
    4003 #: includes/product-functions.php:329
     4003#: includes/product-functions.php:323
    40044004msgid "%s item"
    40054005msgid_plural "%s items"
     
    40074007msgstr[1] ""
    40084008
     4009#: includes/product-functions.php:328
     4010msgid "Expand"
     4011msgstr ""
     4012
     4013#: includes/product-functions.php:328 src/admin/components/ColorPicker.vue:31
     4014#: templates/orders/details.php:348 templates/settings/store-form.php:264
     4015msgid "Close"
     4016msgstr ""
     4017
     4018#: includes/product-functions.php:331
     4019msgid "Go to the first page"
     4020msgstr ""
     4021
     4022#: includes/product-functions.php:332
     4023msgid "Go to the previous page"
     4024msgstr ""
     4025
    40094026#: includes/product-functions.php:334
    4010 msgid "Expand"
    4011 msgstr ""
    4012 
    4013 #: includes/product-functions.php:334 src/admin/components/ColorPicker.vue:31
    4014 #: templates/orders/details.php:348 templates/settings/store-form.php:258
    4015 msgid "Close"
    4016 msgstr ""
    4017 
    4018 #: includes/product-functions.php:337
    4019 msgid "Go to the first page"
    4020 msgstr ""
    4021 
    4022 #: includes/product-functions.php:338
    4023 msgid "Go to the previous page"
    4024 msgstr ""
    4025 
    4026 #: includes/product-functions.php:340
    40274027msgid "Select Page"
    40284028msgstr ""
    40294029
    4030 #: includes/product-functions.php:341
     4030#: includes/product-functions.php:335
    40314031msgid "Current page"
    40324032msgstr ""
    40334033
    4034 #: includes/product-functions.php:348
     4034#: includes/product-functions.php:342
    40354035msgid "Go to the next page"
    40364036msgstr ""
    40374037
    4038 #: includes/product-functions.php:349
     4038#: includes/product-functions.php:343
    40394039msgid "Go to the last page"
    40404040msgstr ""
    40414041
    4042 #: includes/product-functions.php:372
     4042#: includes/product-functions.php:366
    40434043msgid "Visible"
    40444044msgstr ""
    40454045
    4046 #: includes/product-functions.php:373
     4046#: includes/product-functions.php:367
    40474047msgid "Catalog"
    40484048msgstr ""
    40494049
    4050 #: includes/product-functions.php:374 templates/products/listing-filter.php:54
     4050#: includes/product-functions.php:368 templates/products/listing-filter.php:54
    40514051msgid "Search"
    40524052msgstr ""
    40534053
    4054 #: includes/product-functions.php:375
     4054#: includes/product-functions.php:369
    40554055#: templates/products/new-product-single.php:116
    40564056msgid "Hidden"
    40574057msgstr ""
    40584058
    4059 #: includes/product-functions.php:488
     4059#: includes/product-functions.php:482
    40604060msgid "Edit"
    40614061msgstr ""
    40624062
    4063 #: includes/product-functions.php:505 templates/my-orders.php:88
     4063#: includes/product-functions.php:499 templates/my-orders.php:88
    40644064#: templates/orders/listing.php:156 templates/sub-orders.php:59
    40654065msgid "View"
     
    40754075
    40764076#: includes/template-tags.php:105 includes/template-tags.php:109
    4077 #: templates/store-lists-loop.php:92
     4077#: templates/store-lists-loop.php:93
    40784078msgid "&larr; Previous"
    40794079msgstr ""
    40804080
    4081 #: includes/template-tags.php:120 templates/store-lists-loop.php:93
     4081#: includes/template-tags.php:120 templates/store-lists-loop.php:94
    40824082msgid "Next &rarr;"
    40834083msgstr ""
     
    41214121
    41224122#: includes/template-tags.php:465 templates/settings/header.php:13
    4123 #: templates/store-lists-loop.php:69
     4123#: templates/store-lists-loop.php:70
    41244124msgid "Visit Store"
    41254125msgstr ""
     
    41374137msgstr ""
    41384138
    4139 #: includes/wc-functions.php:763
     4139#: includes/wc-functions.php:758
    41404140msgid "Your {site_title} order receipt from {order_date}"
    41414141msgstr ""
    41424142
    4143 #: includes/wc-functions.php:764
     4143#: includes/wc-functions.php:759
    41444144msgid "Your {site_title} order from {order_date} is complete"
    41454145msgstr ""
    41464146
    4147 #: includes/wc-functions.php:865 templates/account/vendor-registration.php:9
     4147#: includes/wc-functions.php:860 templates/account/vendor-registration.php:9
    41484148#: templates/global/seller-registration-form.php:15
    41494149msgid "First Name"
    41504150msgstr ""
    41514151
    4152 #: includes/wc-functions.php:866 templates/account/vendor-registration.php:14
     4152#: includes/wc-functions.php:861 templates/account/vendor-registration.php:14
    41534153#: templates/global/seller-registration-form.php:20
    41544154msgid "Last Name"
    41554155msgstr ""
    41564156
    4157 #: includes/wc-functions.php:867 templates/account/vendor-registration.php:27
     4157#: includes/wc-functions.php:862 templates/account/vendor-registration.php:27
    41584158#: templates/dashboard/edit-account.php:65
    41594159msgid "Email address"
    41604160msgstr ""
    41614161
    4162 #: includes/wc-functions.php:872
     4162#: includes/wc-functions.php:867
    41634163msgid "is a required field."
    41644164msgstr ""
    41654165
    4166 #: includes/wc-functions.php:878
     4166#: includes/wc-functions.php:873
    41674167msgid "Please provide a valid email address."
    41684168msgstr ""
    41694169
    4170 #: includes/wc-functions.php:880
     4170#: includes/wc-functions.php:875
    41714171msgid "This email address is already registered."
    41724172msgstr ""
    41734173
     4174#: includes/wc-functions.php:881
     4175msgid "Your current password is incorrect."
     4176msgstr ""
     4177
    41744178#: includes/wc-functions.php:886
    4175 msgid "Your current password is incorrect."
    4176 msgstr ""
    4177 
    4178 #: includes/wc-functions.php:891
    41794179msgid "Please fill out all password fields."
    41804180msgstr ""
    41814181
    4182 #: includes/wc-functions.php:894
     4182#: includes/wc-functions.php:889
    41834183msgid "Please enter your current password."
    41844184msgstr ""
    41854185
    4186 #: includes/wc-functions.php:897
     4186#: includes/wc-functions.php:892
    41874187msgid "Please re-enter your password."
    41884188msgstr ""
    41894189
    4190 #: includes/wc-functions.php:900
     4190#: includes/wc-functions.php:895
    41914191msgid "New passwords do not match."
    41924192msgstr ""
    41934193
    4194 #: includes/wc-functions.php:921
     4194#: includes/wc-functions.php:916
    41954195msgid "Account details changed successfully."
    41964196msgstr ""
    41974197
    4198 #: includes/wc-functions.php:1009
     4198#: includes/wc-functions.php:1004
    41994199msgid "More Products"
    42004200msgstr ""
    42014201
    4202 #: includes/wc-functions.php:1060
     4202#: includes/wc-functions.php:1055
    42034203msgid "No product has been found!"
    42044204msgstr ""
     
    52175217msgstr ""
    52185218
    5219 #: templates/orders/order-tax-html.php:8 templates/store-lists-loop.php:9
     5219#: templates/orders/order-tax-html.php:8 templates/store-lists-loop.php:10
    52205220msgid "N/A"
    52215221msgstr ""
     
    57145714msgstr ""
    57155715
    5716 #: templates/settings/payment.php:39 templates/settings/store-form.php:303
     5716#: templates/settings/payment.php:39 templates/settings/store-form.php:309
    57175717msgid "Update Settings"
    57185718msgstr ""
    57195719
    5720 #: templates/settings/store-form.php:89
     5720#: templates/settings/store-form.php:91
    57215721msgid "Upload a banner for your store. Banner size is (%sx%s) pixels."
    57225722msgstr ""
    57235723
    5724 #: templates/settings/store-form.php:102
     5724#: templates/settings/store-form.php:104
    57255725msgid "Profile Picture"
    57265726msgstr ""
    57275727
    5728 #: templates/settings/store-form.php:112
     5728#: templates/settings/store-form.php:114
    57295729msgid "Upload Photo"
    57305730msgstr ""
    57315731
    5732 #: templates/settings/store-form.php:121
     5732#: templates/settings/store-form.php:123
    57335733msgid "store name"
    57345734msgstr ""
    57355735
    5736 #: templates/settings/store-form.php:151
     5736#: templates/settings/store-form.php:153
    57375737msgid "Phone No"
    57385738msgstr ""
    57395739
    5740 #: templates/settings/store-form.php:153
     5740#: templates/settings/store-form.php:155
    57415741msgid "+123456.."
    57425742msgstr ""
    57435743
    5744 #: templates/settings/store-form.php:170
     5744#: templates/settings/store-form.php:172
    57455745msgid "More products"
    57465746msgstr ""
    57475747
    5748 #: templates/settings/store-form.php:175
     5748#: templates/settings/store-form.php:177
    57495749msgid "Enable tab on product single page view"
    57505750msgstr ""
    57515751
    5752 #: templates/settings/store-form.php:183
     5752#: templates/settings/store-form.php:185
    57535753msgid "Map"
    57545754msgstr ""
    57555755
    5756 #: templates/settings/store-form.php:190
     5756#: templates/settings/store-form.php:192
    57575757msgid "Type an address to find"
    57585758msgstr ""
    57595759
    5760 #: templates/settings/store-form.php:191
     5760#: templates/settings/store-form.php:193
    57615761msgid "Find Address"
    57625762msgstr ""
    57635763
    5764 #: templates/settings/store-form.php:209
     5764#: templates/settings/store-form.php:211
    57655765msgid "Show terms and conditions in store page"
    57665766msgstr ""
    57675767
    5768 #: templates/settings/store-form.php:215
     5768#: templates/settings/store-form.php:217
    57695769msgid "TOC Details"
    57705770msgstr ""
    57715771
    5772 #: templates/settings/store-form.php:234
     5772#: templates/settings/store-form.php:236
    57735773msgid "Store Opening Closing Time"
    57745774msgstr ""
    57755775
    5776 #: templates/settings/store-form.php:241
     5776#: templates/settings/store-form.php:243
    57775777msgid "Show store opening closing time widget in store page"
    57785778msgstr ""
    57795779
    5780 #: templates/settings/store-form.php:261
     5780#: templates/settings/store-form.php:267
    57815781msgid "Open"
    57825782msgstr ""
    57835783
    5784 #: templates/settings/store-form.php:278
     5784#: templates/settings/store-form.php:284
    57855785msgid "Store Open Notice"
    57865786msgstr ""
    57875787
    5788 #: templates/settings/store-form.php:282
     5788#: templates/settings/store-form.php:288
    57895789msgid "Store is open"
    57905790msgstr ""
    57915791
    5792 #: templates/settings/store-form.php:288
     5792#: templates/settings/store-form.php:294
    57935793msgid "Store Close Notice"
    57945794msgstr ""
    57955795
    5796 #: templates/settings/store-form.php:292
     5796#: templates/settings/store-form.php:298
    57975797msgid "Store is closed"
    57985798msgstr ""
     
    58065806msgstr ""
    58075807
    5808 #: templates/store-lists-loop.php:24
     5808#: templates/store-lists-loop.php:25
    58095809msgid "Featured"
    58105810msgstr ""
    58115811
    5812 #: templates/store-lists-loop.php:34
     5812#: templates/store-lists-loop.php:35
    58135813msgid "Rated %s out of 5"
    58145814msgstr ""
    58155815
    5816 #: templates/store-lists-loop.php:119
     5816#: templates/store-lists-loop.php:120
    58175817msgid "No vendor found!"
    58185818msgstr ""
     
    58575857msgstr ""
    58585858
    5859 #: templates/widgets/store-open-close.php:18
     5859#: templates/widgets/store-open-close.php:19
    58605860msgid "<span> %s %s %s </span>"
    58615861msgstr ""
     
    59935993msgstr ""
    59945994
    5995 #: includes/product-functions.php:346
     5995#: includes/product-functions.php:340
    59965996msgctxt "number of pages"
    59975997msgid "of"
  • dokan-lite/trunk/readme.txt

    r2073700 r2075290  
    66Tested up to: 5.1.1
    77WC requires at least: 3.0
    8 WC tested up to: 3.6.1
     8WC tested up to: 3.6.2
    99Requires PHP: 5.6
    1010Stable tag: trunk
     
    275275== Changelog ==
    276276
     277v2.9.14 -> Apr 26, 2019
     278------------------------------------
     279-   **Fix***  Schedule product price not showing correctly
     280-   **Fix***  Backward compatibility for banner and store time
     281
    277282v2.9.13 -> Apr 24, 2019
    278283------------------------------------
  • dokan-lite/trunk/templates/settings/store-form.php

    r2073700 r2075290  
    77?>
    88<?php
    9     $gravatar_id    = isset( $profile_info['gravatar_id'] ) ? $profile_info['gravatar_id'] : 0;
    10     $banner_id      = isset( $profile_info['banner_id'] ) ? $profile_info['banner_id'] : 0;
     9    $gravatar_id    = ! empty( $profile_info['gravatar_id'] ) ? $profile_info['gravatar_id'] : 0;
     10    $gravatar_id    = ! empty( $profile_info['gravatar'] ) ? $profile_info['gravatar'] : $gravatar_id;
     11    $banner_id      = ! empty( $profile_info['banner_id'] ) ? $profile_info['banner_id'] : 0;
     12    $banner_id      = ! empty( $profile_info['banner'] ) ? $profile_info['banner'] : $banner_id;
    1113    $storename      = isset( $profile_info['store_name'] ) ? $profile_info['store_name'] : '';
    1214    $store_ppp      = isset( $profile_info['store_ppp'] ) ? $profile_info['store_ppp'] : '';
     
    249251            <div class="dokan-w6" style="width: auto">
    250252                <?php foreach ( $dokan_days as $key => $day ) : ?>
     253                    <?php
     254                        $status = isset( $all_times[$day]['status'] ) ? $all_times[$day]['status'] : '';
     255                        $status = isset( $all_times[$day]['open'] ) ? $all_times[$day]['open'] : $status;
     256                    ?>
    251257                    <div class="dokan-form-group">
    252258                        <label class="day control-label" for="<?php echo esc_attr( $day ) ?>-opening-time">
     
    255261                        <label for="">
    256262                            <select name="<?php echo esc_attr( $day ) ?>_on_off" class="dokan-on-off dokan-form-control">
    257                                 <option value="close" <?php ! empty( $all_times[$day]['status'] ) ? selected( $all_times[$day]['status'], 'close' ) : '' ?> >
     263                                <option value="close" <?php ! empty( $status ) ? selected( $status, 'close' ) : '' ?> >
    258264                                    <?php esc_html_e( 'Close', 'dokan-lite' ); ?>
    259265                                </option>
    260                                 <option value="open" <?php ! empty( $all_times[$day]['status'] ) ? selected( $all_times[$day]['status'], 'open' ) : '' ?> >
     266                                <option value="open" <?php ! empty( $status ) ? selected( $status, 'open' ) : '' ?> >
    261267                                    <?php esc_html_e( 'Open', 'dokan-lite' ); ?>
    262268                                </option>
    263269                            </select>
    264270                        </label>
    265                         <label for="opening-time" class="time" style="visibility: <?php echo isset( $all_times[$day]['status'] ) && $all_times[$day]['status'] == 'open' ? 'visible' : 'hidden' ?>" >
     271                        <label for="opening-time" class="time" style="visibility: <?php echo isset( $status ) && $status == 'open' ? 'visible' : 'hidden' ?>" >
    266272                            <input type="text" class="dokan-form-control" name="<?php echo esc_attr( strtolower( $day ) ); ?>_opening_time" id="<?php echo esc_attr( $day ) ?>-opening-time" placeholder="<?php echo date_i18n( get_option( 'time_format', 'g:i a' ), current_time( 'timestamp' ) ); ?>" value="<?php echo isset( $all_times[$day]['opening_time'] ) ? esc_attr( $all_times[$day]['opening_time'] ) : '' ?>" >
    267273                        </label>
    268                         <label for="closing-time" class="time" style="visibility: <?php echo isset( $all_times[$day]['status'] ) && $all_times[$day]['status'] == 'open' ? 'visible' : 'hidden' ?>" >
     274                        <label for="closing-time" class="time" style="visibility: <?php echo isset( $status ) && $status == 'open' ? 'visible' : 'hidden' ?>" >
    269275                            <input type="text" class="dokan-form-control" name="<?php echo esc_attr( $day ) ?>_closing_time" id="<?php echo esc_attr( $day ) ?>-closing-time" placeholder="<?php echo date_i18n( get_option( 'time_format', 'g:i a' ), current_time( 'timestamp' ) ); ?>" value="<?php echo isset( $all_times[$day]['closing_time'] ) ? esc_attr( $all_times[$day]['closing_time'] ) : '' ?>">
    270276                        </label>
  • dokan-lite/trunk/templates/store-lists-loop.php

    r1995740 r2075290  
    66                foreach ( $sellers['users'] as $seller ) {
    77                    $store_info      = dokan_get_store_info( $seller->ID );
    8                     $banner_id       = isset( $store_info['banner'] ) ? $store_info['banner'] : 0;
     8                    $banner_id       = ! empty( $store_info['banner_id'] ) ? $store_info['banner_id'] : 0;
     9                    $banner_id       = ! empty( $store_info['banner'] ) ? $store_info['banner'] : $banner_id;
    910                    $store_name      = isset( $store_info['store_name'] ) ? esc_html( $store_info['store_name'] ) : __( 'N/A', 'dokan-lite' );
    1011                    $store_url       = dokan_get_store_url( $seller->ID );
  • dokan-lite/trunk/templates/widgets/store-open-close.php

    r2073700 r2075290  
    1111    <?php foreach( $dokan_store_time as $day => $value ) : ?>
    1212        <?php
    13             $to = ! empty( dokan_get_translated_days( $value['status'] ) ) ? dokan_get_translated_days( $value['status'] ) : '-';
    14             $is_open =  $value['status'] == 'open' ? true : false;
     13            $status = isset( $value['open'] ) ? $value['open'] : $value['status'];
     14            $to = ! empty( dokan_get_translated_days( $status ) ) ? dokan_get_translated_days( $status ) : '-';
     15            $is_open =  $status == 'open' ? true : false;
    1516        ?>
    1617        <div class="open-close-day <?php echo esc_attr( $day ) . '-time' ?>">
Note: See TracChangeset for help on using the changeset viewer.