Anas Basalamah

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 109 total)
  • Author
    Posts
  • in reply to: Questions about Emails #46230

    This feature is really important – if you figure it out please share it with us

    thanks

    in reply to: override function #46126

    ok but can you tell me what is the different?

    you just added if exist?

    in reply to: override function #46121

    any news?

    in reply to: override function #45961

    Ok , I customized this function from includes/ template-tags.php now i can control this function from my child theme
    i created a file child-theme/includes/template-tags.php and i post the function inside it
    also i post this inside child theme function.php

    require_once( get_stylesheet_directory() . ‘/includes/template-tags.php’ );

    the function code

    
    if ( !function_exists( 'dokan_header_user_menu' ) ) :
    
    /**
     * User top navigation menu
     *
     * @return void
     */
    function dokan_header_user_menu() {
        ?>
        <ul class="nav navbar-nav navbar-right">
    	
    	        <?php if ( is_user_logged_in() ) { ?>
    
    	            <li><?php wp_loginout( home_url() ); ?></li>
    <?php } ?>
            <li>
                <a href="#" class="dropdown-toggle" data-toggle="dropdown"><?php printf( __( 'Cart %s', 'dokan' ), '<span class="dokan-cart-amount-top">(' . WC()->cart->get_cart_total() . ')</span>' ); ?> <b class="caret"></b></a>
    
                <ul class="dropdown-menu">
                    <li>
                        <div class="widget_shopping_cart_content"></div>
                    </li>
                </ul>
            </li>
    
            <?php if ( is_user_logged_in() ) { ?>
    
                <?php
                global $current_user;
    
                $user_id = $current_user->ID;
                if ( dokan_is_user_seller( $user_id ) ) {
                    ?>
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown"><?php _e( 'Seller Dashboard', 'dokan' ); ?> <b class="caret"></b></a>
    
                        <ul class="dropdown-menu">
                            <li><a href="<?php echo dokan_get_store_url( $user_id ); ?>" target="_blank"><?php _e( 'Visit your store', 'dokan' ); ?> <i class="fa fa-external-link"></i></a></li>
                            <li class="divider"></li>
                            <?php
                            $nav_urls = dokan_get_dashboard_nav();
    
                            foreach ($nav_urls as $key => $item) {
                                printf( '<li><a href="%s">%s  %s</a></li>', $item['url'], $item['icon'], $item['title'] );
                            }
                            ?>
                        </ul>
                    </li>
                <?php } ?>
    
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown"><?php echo esc_html( $current_user->display_name ); ?> <b class="caret"></b></a>
                    <ul class="dropdown-menu">
                        <li><a href="<?php echo dokan_get_page_url( 'my_orders' ); ?>"><?php _e( 'My Orders', 'dokan' ); ?></a></li>
                        <li><a href="<?php echo dokan_get_page_url( 'myaccount', 'woocommerce' ); ?>"><?php _e( 'My Account', 'dokan' ); ?></a></li>
                        <li><a href="<?php echo wc_customer_edit_account_url(); ?>"><?php _e( 'Edit Account', 'dokan' ); ?></a></li>
                        <li class="divider"></li>
                        <li><a href="<?php echo wc_get_endpoint_url( 'edit-address', 'billing', get_permalink( wc_get_page_id( 'myaccount' ) ) ); ?>"><?php _e( 'Billing Address', 'dokan' ); ?></a></li>
                        <li><a href="<?php echo wc_get_endpoint_url( 'edit-address', 'shipping', get_permalink( wc_get_page_id( 'myaccount' ) ) ); ?>"><?php _e( 'Shipping Address', 'dokan' ); ?></a></li>
                    </ul>
                </li>
    
            <?php } else { ?>
                <li><a href="<?php echo dokan_get_page_url( 'myaccount', 'woocommerce' ); ?>"><?php _e( 'Log in', 'dokan' ); ?></a></li>
                <li><a href="<?php echo dokan_get_page_url( 'myaccount', 'woocommerce' ); ?>"><?php _e( 'Sign Up', 'dokan' ); ?></a></li>
            <?php } ?>
        </ul>
        <?php
    }
    
    endif;
    

    now i want to customize function insert_settings_info() in plugin/dokan/classes/template-settings.php
    i tried to do it the same way as the function above but its not working

    is there another way ?

    thanks

    in reply to: Missing translations #45753

    please send me the language file as soon as you fix the problem its urgent to me

    thansk

    in reply to: Missing translations #45708

    also this prove it

    from file order-function.php

    // make sure order status contains “wc-” prefix
    if ( stripos( $new_status, ‘wc-‘ ) === false ) {
    $new_status = ‘wc-‘ . $new_status;
    }

    now tell me how to translate this list?

    its dokan problem now 🙂

    in reply to: Missing translations #45706

    no the problem from dokan

    check out the file plugin/dokan/templates/my-orders.php line 38 you will see that dokan is calling woocomerce for status list

    $statuses = wc_get_order_statuses();

    which is in the woocomerce file woocommerce/includes/wc-order-functions.php

    function wc_get_order_statuses() {
    $order_statuses = array(
    ‘wc-pending' => _x( ‘Pending Payment', ‘Order status', ‘woocommerce' ),
    ‘wc-processing' => _x( ‘Processing', ‘Order status', ‘woocommerce' ),
    ‘wc-on-hold' => _x( ‘On Hold', ‘Order status', ‘woocommerce' ),
    ‘wc-completed' => _x( ‘Completed', ‘Order status', ‘woocommerce' ),
    ‘wc-cancelled' => _x( ‘Cancelled', ‘Order status', ‘woocommerce' ),
    ‘wc-refunded' => _x( ‘Refunded', ‘Order status', ‘woocommerce' ),
    ‘wc-failed' => _x( ‘Failed', ‘Order status', ‘woocommerce' ),
    );
    return apply_filters( ‘wc_order_statuses', $order_statuses );
    }

    now what dokan get is from woocomerce is ‘wc-on-hold' insted of ‘On Hold'

    look again in the photo upward you will see the status is on-hold not On Hold

    how can i fix this !? O_O”

    in reply to: question about order notification #45686
    in reply to: Translation file for subscription plugin #45682

    ok i did translate it in Arabic

    please accept the new translation so i can download it

    thanks

    in reply to: question about order notification #45593

    up

    in reply to: question about order notification #45533

    ok I know

    I just want to make the default status is pending not on-hold

    so after payment admin change to on-hold then the seller receive email

    how to do that?

    in reply to: missing translation #35949

    did you check the missing translation?

    in reply to: some modifications #35336

    its working thanks

    in reply to: some modifications #35213

    ok thanks

    in reply to: some modifications #35211

    I found the solution of question 2

    i change line 4 in the font-awosme.min.css

    content: “\f105”

    change it to

    content: “\f104”

    please help me with question 1

    thanks

Viewing 15 posts - 1 through 15 (of 109 total)