Forum Replies Created

Viewing 15 Topics - 1 through 15 (of 109 total)
Author Posts
June 5, 2015 at 10:49 pm in reply to: Questions about Emails 46230
Anas Basalamah Anas Basalamah

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

thanks

June 4, 2015 at 4:49 pm in reply to: override function 46126
Anas Basalamah Anas Basalamah

ok but can you tell me what is the different?

you just added if exist?

June 4, 2015 at 4:24 pm in reply to: override function 46121
Anas Basalamah Anas Basalamah

any news?

June 2, 2015 at 4:02 pm in reply to: override function 45961
Anas Basalamah Anas Basalamah

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 &nbsp;%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

May 31, 2015 at 5:57 pm in reply to: Missing translations 45753
Anas Basalamah Anas Basalamah

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

thansk

May 31, 2015 at 1:46 am in reply to: Missing translations 45708
Anas Basalamah Anas Basalamah

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 🙂

May 31, 2015 at 1:26 am in reply to: Missing translations 45706
Anas Basalamah Anas Basalamah

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”

May 30, 2015 at 5:15 pm in reply to: question about order notification 45686
Anas Basalamah Anas Basalamah

well i found a way to do it

Change The Orders Default Status By Gateway in WooCommerce

May 30, 2015 at 4:36 pm in reply to: Translation file for subscription plugin 45682
Anas Basalamah Anas Basalamah

ok i did translate it in Arabic

please accept the new translation so i can download it

thanks

May 29, 2015 at 3:59 pm in reply to: question about order notification 45593
Anas Basalamah Anas Basalamah

up

May 28, 2015 at 7:25 pm in reply to: question about order notification 45533
Anas Basalamah Anas Basalamah

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?

February 6, 2015 at 4:17 pm in reply to: missing translation 35949
Anas Basalamah Anas Basalamah

did you check the missing translation?

January 30, 2015 at 12:17 am in reply to: some modifications 35336
Anas Basalamah Anas Basalamah

its working thanks

January 28, 2015 at 6:54 pm in reply to: some modifications 35213
Anas Basalamah Anas Basalamah

ok thanks

January 28, 2015 at 6:42 pm in reply to: some modifications 35211
Anas Basalamah Anas Basalamah

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 Topics - 1 through 15 (of 109 total)