Dokan plugin child theme

This topic contains 16 reply and 5 voices, and was last updated by RevolvedMedia 9 years ago
Viewing 15 Posts - 1 through 15 (of 16 total)
Author Posts
October 28, 2014 at 9:25 pm 29269
RevolvedMedia Hi there, I have been looking on your site regarding child theme for Dokan PLUGIN but can only find info about the THEME. I want to to customise the templates such as store.php and others and have copied these files in my current child theme (ex: /my-child-theme/dokan/templates/store.php) However when I am making modifications to those files nothing happens... Can you please direct me to the right procedure? Thanks! C
October 30, 2014 at 8:14 pm 29460
Sekander Badsha Sekander Badsha

Hello Claire,

Dokan is not a theme now. It is a plugin.

To customize the Dokan templates, you have to make a folder named dokan inside your theme folder and place files in it.

like the store.php file is now located inside “wp-content/plugins/dokan-plugin/templates” folder.
So you have to copy that file and place in “wp-content/themes/yourtheme/dokan/” and do the customization.

That should work for you. If not, please let me know then.

Thank you 🙂

October 30, 2014 at 11:15 pm 29479
Claire Claire

Hi Sekander,

Thanks for that but unfortunately this doesn’t work for me hence why I came
to you in the first place. The only way to reflect the changes at the
moment is to make modification directly in the plugin templates files.

Also for some reason, clicking edit product in the dashboard returns an
error. Any idea why? Can we fix this quickly?

Thanks very much

C

Claire* // creative & managing director*
_______________________

November 7, 2014 at 12:54 pm 29918
Sekander Badsha Sekander Badsha

Hello Claire,

If you can provide your login details, I can check why the modifications from your theme is not overriding.

And I can not tell you anything without seeing the error details. So can you please tell me what error you are getting?

November 8, 2014 at 8:29 pm 30012
Sekander Badsha Sekander Badsha

Hi Claire,

I have logged into your site and added {border-bottom: 1px black solid} in your child themes style.css and check in your sites dashboard page, a black border in each dashboard menu item is added.

So the modification from child theme is working.

And I can see a lot of plugin is installed on your site. So the error in the product page might happen because of plugin conflicts. So to check that please deactivate all your plugins except Dokan and WooCommerce and check if the issue solves or not.

Thank you for having patience 🙂

March 26, 2015 at 12:48 pm 40041
RevolvedMedia RevolvedMedia

We have a parent theme (not dokan theme – yes we’re using the plugin) and a child theme we are modding.

I am noticing this same issue with the following files:

/wp-content/themes/child-theme/dokan/new-product.php
/wp-content/themes/child-theme/dokan/product-edit.php
/wp-content/themes/child-theme/dokan/products-listing.php

I have

/wp-content/themes/child-theme/dokan/store.php and it is in fact over riding correctly

Any ideas? – I hate changing core code for obvious reasons.

Thanks

March 26, 2015 at 9:52 pm 40072
Nayem Nayem

Hello,

If you want to modify any template file then you must have to put that file in the Dokan folder of your child theme. But if you want to modify any other function then you have to do it through your child theme’s function.php file.

Thank you 🙂

March 26, 2015 at 9:59 pm 40075
RevolvedMedia RevolvedMedia

The original files locations I am trying to override are located in:

/plugins/dokan/templates/new-product.php
/plugins/dokan/templates/product-edit.php
/plugins/dokan/templates/products-listing.php

I have placed my modified files in:

/wp-content/themes/child-theme/dokan/new-product.php
/wp-content/themes/child-theme/dokan/product-edit.php
/wp-content/themes/child-theme/dokan/products-listing.php

They are not being overridden, I am having to modify the cod=re files to see the changes.

Any ideas?
Thanks

March 28, 2015 at 12:11 pm 40142
Nayem Nayem

Hello,

Do you want to modify those entire page or single function?.

March 28, 2015 at 1:27 pm 40152
RevolvedMedia RevolvedMedia

I am adding changes to the HTML within the files:

see https://wedevs.com/support/topic/dokan-charge-for-featured-sticky-product-placement/#post-39973

For example: adding an additional column to the product list.

Consider these files changes as all being HTML changes.

===============================================================
I have created a custom plugin for all my functions (I know where to put custom functions – and they are working), I am a WordPress developer and do know my way around wp.
===============================================================

Can you let me know where the Dokan core code is that hooks to use the Dokan child templates – (save me searching for it, maybe I can resolve this issue myself).

Thanks again

March 31, 2015 at 7:25 am 40323
RevolvedMedia RevolvedMedia

Anything recommendations – I must be missing something simple here?

March 31, 2015 at 6:12 pm 40371
Nayem Nayem

Hello ,

You can provide your login and ftp details then our developer will help you to override the file. In the overridden file you can add code by your own.

Please provide your login details by using this form -http://wedevs.com/provide-login-details/.
Thank you 🙂

April 7, 2015 at 1:56 am 40761
Craig Craig

Has there been a workaround for how to modify some of the template files? I’m having the same issues. Some of the template files I can modify in my child theme but others don’t seem to be used. For instance, product-edit.php is not one of the files that I can modify. I’ve put the files in the correct directory(I think) but still with no success. I know my child theme is working however because I have made many other modifications including some of the template files.

April 7, 2015 at 10:27 am 40770
RevolvedMedia RevolvedMedia

@Nayem – sorry I will provide logins as soon as I’m working on this project again.


@Craig
– I’ve had to work on a few other projects for clients so I have nothing new to add yet. (I see your post here as well: https://wedevs.com/support/topic/child-theme-some-templates-are-not-overwritten/)

I will take a copy of the files/folders before support makes the changes – then I can do a compare and post the results, this way everyone will have the answer and a “how-to” guide to follow. I will write detailed instructions as best I can.

I like to help 🙂

April 10, 2015 at 3:15 am 41028
Craig Craig

Guys, so I think I found where the product-edit.php is called and how to get it to work. I was able to get it to work by first adding the product.php(plugins/dokan/templates) into my child theme dokan folder(themes/Dokan-child/dokan) and then when I added the product-edit.php file I could modify it and see the changes. RevolvedMedia, give that a try and see if it works. Hope this helps.

April 11, 2015 at 3:29 am 41068
RevolvedMedia RevolvedMedia

@Craig – Thanks man, I will give this a shot when I’m working it again. 🙂

Viewing 15 Posts - 1 through 15 (of 16 total)