Forum Replies Created

Viewing 13 Topics - 1 through 13 (of 13 total)
Author Posts
Gabriel Gabriel

I have this problem too.

Will the next update take care of this problem?


Nevermind, I posted the wrong thing and I don’t know how to delete posts.

February 13, 2015 at 7:53 am in reply to: Child Theme 36633
Gabriel Gabriel

Could we just use this to enqueue the child theme? Or do I need to use Simon’s code to dequeue and then enqueue in functions.php in the Dokan child theme?

// Allows child theme to get info from parent theme 
add_action( 'wp_enqueue_scripts', 'enqueue_parent_theme_style' );
function enqueue_parent_theme_style() {
    wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
February 13, 2015 at 7:50 am in reply to: Child Theme 36632
Gabriel Gabriel


What code do I need in my child theme style.css for Simon’s code to dequeue and enqueue functions.php?

In my child theme I have the following for my style.css:

Theme Name:     dokan-child
Description:    Dokan child theme
Author:         admin
Template:       dokan

(optional values you can add: Theme URI, Author URI, Version)

@import url("../dokan/style.css");

I feel like I need the Version, etc…what else do I need to make Simon’s code work?


February 8, 2015 at 12:32 pm in reply to: Plugin causes menu to repeat 36101
Gabriel Gabriel

Hey towhid

I switched to the Dokan theme. The menu doesn’t repeat, but now it won’t go to the “Checkout” page.

The checkout link doesn’t work.

Any advice would be great.


Gabriel Gabriel


I tried to to use the Child theme again and see if I could remove the registration field and then add in new ones like you said.

In my functions.php of my child theme I typed in the following (to try to first remove the function):

remove_action( ‘woocommerce_register_form_start’, ‘dokan_seller_reg_form_fields’ );

This didn’t work.

Can you tell me what I did wrong?

Gabriel Gabriel

Worked perfectly.

Thanks, Nayem!

January 22, 2015 at 8:53 am in reply to: Anyone want to team up? Features we want. 34785
Gabriel Gabriel

Hi Brenda,

I just sent a request to join the FB group.

I was able to change the all users into sellers, get rid of the radio buttons and customize the registration fields.
If you guys want that code, I can give you my notes.

Unfortunately, I was not able to make the changes in the child theme: I had to make them in the parent theme and use that. I kept a list of my changes in a document.

Brenda, can you tell me more about the Stripe plugin? Can I find it in the WordPress plugin directory? Or can I get the code from you?

Thanks, Brenda.


Gabriel Gabriel

Hi Nayem,

Was trying to change the fields that you said. Should I also change the second line?

$role = isset( $_POST[‘role’] ) ? $_POST[‘role’] : ‘customer’;
$role_style = ( $role == ‘customer’ ) ? ‘ style=”display:none”‘ : ”;

Should I change
$role_style = ( $role == ‘customer’ ) ? ‘ style=”display:none”‘ : ”;
So that it says
$role_style = ( $role == ‘seller’ ) ? ‘ style=”display:none”‘ : ”;

Also, if I comment out lines 393-404, will that cause any trouble later on? It seems from the code that Dokan needs that info for Seller info. If I comment that out, will it be missing seller info (first name, last name, address, etc)?

Is there a way that I can have all this information as a part of registration, but above the rest of the registration fields?

Thanks again for all the help, Nayem.


Gabriel Gabriel

Hi Nayem,

Thanks for the offer!

I’m actually trying to teach myself programming so I try to do as much as I can myself. Even if it is just entering code that people give me or that I find online.

Do I just put the codes that you gave me into the child theme functions.php? Or would I have to enter in new code? I’m not too sure about how I would be able to comment out the “customer/seller” fields (lines 393-404) in the registration page through customizing the child theme.

How do you stop the original code from overriding the new child theme code?
I’ve only had some light C and Ruby on Rails training prior to this.

Thanks, Nayem.

Gabriel Gabriel

Hi Nayem, thanks for the help!

Nizam gave me the following code to put in functions.php in my child theme:

add_filter( ‘woocommerce_new_customer_data’, ‘gabe_new_user_data’ );
function gabe_new_user_data( $data ) {
$data[‘role’] = ‘seller’;
return $data;

Would this conflict with the code you gave me?
Also, is there a way to add code to functions.php that would essentially negate lines 393-404?
I heard that if you don’t put changes in functions.php, you lose them when you update the plugin.
Is this true?

Thanks Nayem.

January 5, 2015 at 4:56 am in reply to: Automatically approve sellers 33384
Gabriel Gabriel

Found it!

Thanks so much, Ryan!


December 4, 2014 at 10:37 am in reply to: Stripe for Marketplaces 31766
Gabriel Gabriel


I would like to be notified when this feature is programmed into Dokan. This is something I would really like as well, since I prefer Stripe.


November 18, 2014 at 8:32 am in reply to: Auto-activate Sellers 30663
Gabriel Gabriel

Hi guys,

Can you tell me which Gravity Forms plugin you are using? In the WP plugin directory there seem to be a lot from different companies.

I’m having the same problem: trying to make it so all my users can sell.



Viewing 13 Topics - 1 through 13 (of 13 total)