Home Forums Plugin Support Others Dokan – Three problems

This topic contains 5 replies, has 2 voices, and was last updated by  Nayem 4 years ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #43570

    Tomasz
    Member
    Post count: 10

    Hey Support,

    At the beginning i must say Thank You Very Much for your fast and good support.

    I have 3 more problems.

    1. I want to change order of Auction Tab in the Dashboard. It is possible?

    Order

    2. How to translate “Auction” for type of product in the Dashboard? Can't find this line on theme code and Simple Auctions code.

    Translate

    3. How to translate Timepicker? I have found function for Polish language for this script, but i dont know where to paste it or how use it.

    (function($) {
            $.timepicker.regional['pl'] = {
                    timeOnlyTitle: 'Wybierz godzinę',
                    timeText: 'Czas',
                    hourText: 'Godzina',
                    minuteText: 'Minuta',
                    secondText: 'Sekunda',
                    millisecText: 'Milisekunda',
                    timezoneText: 'Strefa czasowa',
                    currentText: 'Teraz',
                    closeText: 'Gotowe',
                    timeFormat: 'hh:mm tt',
                    amNames: ['AM', 'A'],
                    pmNames: ['PM', 'P'],
                    ampm: false
            };
            $.timepicker.setDefaults($.timepicker.regional['pl']);
    })(jQuery);

    Translate2

    I will be grateful for help me as fast as possible.

    Thank you!

    #43579

    Nayem
    Moderator
    Post count: 6480

    Hello,

    1. Can you please tell me the specific menu you want to rearrange?. Then i can help you for that. Otherwise i have provided those code- you can rearrange the menu by changing the position-

    add_filter( 'dokan_get_dashboard_nav', 'dokan_nav_menu' );
    
    function dokan_nav_menu($urls){
    
     $urls = array(
         'auction' => array(
                    'title' => __( 'Auction', 'dokan_b2b' ),
                    'icon'  => '<i class="fa fa-gavel"></i>',
                    'url'   => dokan_get_navigation_url('auction')
                ),
          'withdraw' => array(
                'title' => __( 'Withdraw', 'dokan'),
                'icon'  => '<i class="fa fa-upload"></i>',
                'url'   => dokan_get_navigation_url( 'withdraw' )
            ),
            'product' => array(
                'title' => __( 'Products', 'dokan'),
                'icon'  => '<i class="fa fa-briefcase"></i>',
                'url'   => dokan_get_navigation_url( 'products' )
            ),
    
               'dashboard' => array(
                'title' => __( 'Dashboard', 'dokan'),
                'icon'  => '<i class="fa fa-tachometer"></i>',
                'url'   => dokan_get_navigation_url()
            ),
            'order' => array(
                'title' => __( 'Orders', 'dokan'),
                'icon'  => '<i class="fa fa-shopping-cart"></i>',
                'url'   => dokan_get_navigation_url( 'orders' )
            ),
            
            'coupon' => array(
                'title' => __( 'Coupons', 'dokan'),
                'icon'  => '<i class="fa fa-gift"></i>',
                'url'   => dokan_get_navigation_url( 'coupons' )
            ),
            'report' => array(
                'title' => __( 'Reports', 'dokan'),
                'icon'  => '<i class="fa fa-line-chart"></i>',
                'url'   => dokan_get_navigation_url( 'reports' )
            ),
            'reviews' => array(
                'title' => __( 'Reviews', 'dokan'),
                'icon'  => '<i class="fa fa-comments-o"></i>',
                'url'   => dokan_get_navigation_url( 'reviews' )
            ),
           
        );
    
       return $urls;
    }
    ?>

    You have to put those code in the function.php file of your child theme.

    2. This string is coming from WooCommerce simple auction plugin. So you have to translate that plugin.

    3. Time picker stings are coming from java script. So it is very complicated to translate by Pot file. If you want to translate those then you may require a developer.

    Thanks.

    #43588

    Tomasz
    Member
    Post count: 10

    Thank you.

    It works, but in your code there is no Shipping tab…

    Im looking for answer from you.

    #43595

    Nayem
    Moderator
    Post count: 6480

    oh sorry i have missed that. You can insert these code before return $urls;

    $dokan_shipping_option = get_option( 'woocommerce_dokan_product_shipping_settings' );
        $enable_shipping = ( isset( $dokan_shipping_option['enabled'] ) ) ? $dokan_shipping_option['enabled'] : 'yes';
    
        if ( $enable_shipping == 'yes' ) {
            $urls['shipping'] = array(
                'title' => __( 'Shipping', 'dokan'),
                'icon'  => '<i class="fa fa-truck"></i>',
                'url'   => dokan_get_navigation_url( 'shipping' )
            );
    }
    #43602

    Tomasz
    Member
    Post count: 10

    Thank you very much.

    At point 2. There is no this phrase on PoEdit in Simple Auction language file.

    At point 3. I can edit Java Script files. This script is builded only from one JS file.

    (function($) {
            $.timepicker.regional['pl'] = {
                    timeOnlyTitle: 'Wybierz godzinę',
                    timeText: 'Czas',
                    hourText: 'Godzina',
                    minuteText: 'Minuta',
                    secondText: 'Sekunda',
                    millisecText: 'Milisekunda',
                    timezoneText: 'Strefa czasowa',
                    currentText: 'Teraz',
                    closeText: 'Gotowe',
                    timeFormat: 'hh:mm tt',
                    amNames: ['AM', 'A'],
                    pmNames: ['PM', 'P'],
                    ampm: false
            };
            $.timepicker.setDefaults($.timepicker.regional['pl']);
    })(jQuery);

    And this code is written translate for this file, i mean – simpleauctions/js/jquery-ui-timepicker-addon.js,
    but i don't know where to paste it because paste into jquery-ui-timepicker-addon.js doesn't affect on language. Any ideas?

    Thank you

    #43685

    Nayem
    Moderator
    Post count: 6480
    This reply has been marked as private.
Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Dokan – Three problems’ is closed to new replies.