Home Forums Plugin Support Others Dokan plugin child theme

This topic contains 16 replies, has 5 voices, and was last updated by  RevolvedMedia 3 years, 10 months ago.

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • #29269

    Claire
    Member

    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

    #29460

    Sekander Badsha
    Member
    Post count: 2067

    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 ๐Ÿ™‚

    #29479

    Claire
    Member

    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*
    _______________________

    #29918

    Sekander Badsha
    Member
    Post count: 2067

    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?

    #30012

    Sekander Badsha
    Member
    Post count: 2067

    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 ๐Ÿ™‚

    #40041

    RevolvedMedia
    Member
    Post count: 43

    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

    #40072

    Nayem
    Moderator
    Post count: 6480

    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 ๐Ÿ™‚

    #40075

    RevolvedMedia
    Member
    Post count: 43

    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

    #40142

    Nayem
    Moderator
    Post count: 6480

    Hello,

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

    #40152

    RevolvedMedia
    Member
    Post count: 43

    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

    #40323

    RevolvedMedia
    Member
    Post count: 43

    Anything recommendations – I must be missing something simple here?

    #40371

    Nayem
    Moderator
    Post count: 6480

    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 ๐Ÿ™‚

    #40761

    Craig
    Member
    Post count: 12

    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.

    #40770

    RevolvedMedia
    Member
    Post count: 43

    @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 ๐Ÿ™‚

    #41028

    Craig
    Member
    Post count: 12

    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.

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

The topic ‘Dokan plugin child theme’ is closed to new replies.