Home Forums WC Vendors Pro Support Overwriting Dashboard Overview Template

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #15217
    criticalachievement
    Participant

    Hi!

    I’m having trouble overwriting “overview.php” in /templates/dashboard/reports. I put it under /themes/mytheme/wc-vendors/dashboard/reports, but it’s not overwriting.

    I’ve already overwritten “product-edit.php” in /templates/dashboard. I put under /themes/mytheme/wc-vendors/dashboard, and it works just fine.

    What am I missing?

    #15219
    WC Vendors Support
    Participant

    Aah, it appears there’s an error in the template that will cause it to not load. We’ll have that patched up for next release. But never fear, it’s a really easy fix and you can do it right now.

    Copy over /dashboard/dashboard.php into your template folder. The paths are relative in it, so just by copying this file, your new overview.php will then be detected and used. That should fix it!

    Cheers

    Ben

    #15295
    criticalachievement
    Participant

    Ben,

    I see, but now reports.php won’t load unless I copy that one over too. And I don’t even need to change that one.

    I haven’t tested it, but I suppose it’s possible that the files in the “order” folder won’t work either unless I copy all of those as well, given that they’re also in a subfolder beneath dashboard.php.

    #15296
    WC Vendors Support
    Participant

    Good point. Just copy over reports too then. You dont have to “change” anything to copy them. 🙂

    The stuff in /orders/ should call correctly because we use:

    wc_get_template( 'order_note.php', array( 'time_posted' => $time_posted, 'note_text' => $note_text ), 'wc-vendors/dashboard/order/', $this->base_dir . 'templates/dashboard/order/' );

    ….to fetch the template, where as in the dashboard.php file we did not (oops).

    #15297
    criticalachievement
    Participant

    Ok, I’ll leave as-is for now and try to remember to delete my unmodified dashboard.php and reports.php after you implement the fix.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘WC Vendors Pro Support’ is closed to new topics and replies.