Home Forums Theme Support Dokan Locate template problem

This topic is: not resolved

This topic contains 3 replies, has 3 voices, and was last updated by  Roberto 4 years, 3 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #30923

    Roberto
    Member
    Post count: 59

    There is a problem with the include_once functions in all the edit/new product pages.

    Basically if the current theme replaces a page (let's say mytheme/dokan/product-edit.php) all the includes point to the same directory (include_once dirname(__FILE__) . ‘/edit/sidebar.php'; ?>) .

    Which means that i have to manually change all the includes in the template files i replace.

    I believe using a function similar to dokan_get_template (‘edit/sidebar.php') would allow an easier replacement of the pages, withouth modifying all of them, or withouth copying all the pages to the theme folder.

    It would be awesome if from the next version the includes would work in a “wp template style” meaning that first the current theme gets checked, if not, then the template from the plugin gets loaded.

    Cheers

    #30950

    Nayem
    Moderator
    Post count: 6480

    Hello Roberto,

    I need to discuss with our developer team about your issue. I will be back to you very soon with their feedback on it.

    Thank you ๐Ÿ™‚

    #30987

    towhid
    Participant
    Post count: 4505

    Hello Roberto,

    We will take care about this in future version.

    Thank You. ๐Ÿ™‚

    #31048

    Roberto
    Member
    Post count: 59

    Cool.
    Thank you guys.

    Cheers

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Locate template problem’ is closed to new replies.