Home Forums Theme Support Dokan Wrong include doesn't load templates

This topic is: not resolved

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

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

    Roberto
    Member
    Post count: 59

    Hi.

    In the Order-details.php, lines 48 and so on we have include 'order-item-html.php';

    Now, if I don't customize Order-details.php but i do customize oder-item-html.php creating a new one in wp-content/themes/mytheme/dokan/orders my custom file doesn't get loaded because i didn't customize order-details.

    Here like everywhere else instead of “include” there should be a function “dokan_include_template” or something similar that first checks my custom theme, then checks the dokan file.

    Cheers

    #32436

    Nayem
    Moderator
    Post count: 6480

    Hello Roberto,

    Actually i am not clear that what are you looking for?. Can you please describe me in more details?. I am here to hear from you.

    Thank you ๐Ÿ™‚

    #32458

    Roberto
    Member
    Post count: 59

    I'm saying that instead of using the regular include method from php, you should use a custom include function which checks first in the current theme folder, and then in the dokan folder, when including anything.

    Otherwise everytime somebody has to extend a functionality of dokan, he also has to rewrite the include path manually.
    Is it more clear? Thank you for your interest

    #32459

    Nayem
    Moderator
    Post count: 6480

    Hello Roberto,

    Thank you for your great suggestion. I will notify to our developer team about this. Hope they will work with this include method in our next update.

    Thanks again ๐Ÿ™‚

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

The topic ‘Wrong include doesn't load templates’ is closed to new replies.