Wrong include doesn't load templates

This topic contains 3 reply and 2 voices, and was last updated by Nayem 9 years, 4 months ago
Viewing 3 Posts - 1 through 3 (of 3 total)
Author Posts
December 16, 2014 at 3:00 pm 32374
Nayem 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
December 17, 2014 at 3:52 pm 32436
Nayem Nayem

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 🙂

December 17, 2014 at 6:54 pm 32458
Roberto Roberto

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

December 17, 2014 at 7:03 pm 32459
Nayem Nayem

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 3 Posts - 1 through 3 (of 3 total)