Home Forums Theme Support Dokan Need help with overriding New Product Single Template

This topic is: resolved

This topic contains 10 replies, has 2 voices, and was last updated by  Simon 3 years, 8 months ago.

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #64626

    Simon
    Member
    Post count: 58

    While I appreciate that WeDevs continues to update Dokan. It's very frustrating that you continue to fundamentally rewrite everything on nearly upgrade.

    First we had a theme, then a plugin and theme, then it's a plugin with free vs. pro, and now the structure of the plugin keeps changing. I'm trying to add/change the look and functionality, but every time I turn around I'm having to reverse engineer your changes.

    The latest being that you've moved the Product Edit templates into a class — Dokan_Template_Products. This is causing me a ton of headaches trying to figure out how to override the templates by ones that I've edited and place in my child theme.

    Could you please help me with getting an edited new-product-single.php file that's in my child theme directory to work?

    #64756

    Nayem
    Moderator
    Post count: 6480

    Hello,

    To override any file you have to create folder with this serial Dokan/templates/products/ and then copy the entire file new-product-single.php file here. Now you can override it easily.

    Thanks.

    #64768

    Simon
    Member
    Post count: 58

    Hi Nayem, I have tried that. I have a child theme, and have created dokan/template/products but the file is not recognized.

    I'm not sure if dokan_get_template_part or one of the other functions were written properly to look in the child theme.

    #64870

    Nayem
    Moderator
    Post count: 6480

    Hello,

    I have to discuss with our developer about this. Please allow me some time.

    Thanks.

    #65283

    Simon
    Member
    Post count: 58

    Hi Nayem,

    Any updates?

    Thanks,
    Simon

    #65801

    Simon
    Member
    Post count: 58

    Hi Nayem,

    Any Updates?

    #65861

    Simon
    Member
    Post count: 58

    Hi Nayem, please do the needful.

    #65992

    Nayem
    Moderator
    Post count: 6480

    Please provide your login details by using this form: http://wedevs.com/provide-login-details/. I will have a look what is going wrong.

    Thank you ๐Ÿ™‚

    #66051

    Simon
    Member
    Post count: 58

    Hi Nayem,

    I have corrected this by putting the template under my child theme at dokan/products/new-product-single.php

    So the full path is /themes/dokan-child/dokan/products/new-product-single.php

    #66065

    Nayem
    Moderator
    Post count: 6480

    Hello,

    Is everything working now?

    #66151

    Simon
    Member
    Post count: 58

    Yes

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

The topic ‘Need help with overriding New Product Single Template’ is closed to new replies.