I want to show the default woocommerce reports on my plugin area.For that i wrote some code and now i faces two issues
- First i am unable to show the charts as you can on my screenshot.I got
Uncaught TypeError: jQuery.plot is not a function
-
Second the links refers to default like
http://localhost/wordpress2/wp-admin/admin.php?page=wc-reports&tab=orders&report=sales_by_category
but i want it should be likehttp://localhost/wordpress2/wp-admin/admin.php?page=custom-page&tab=orders&report=sales_by_category
the link of the current page.So on changing the charts option it shouldn't go to default reports. This is my code (only shared that is relevant).May be someone can help:global $wpdb;
include( WC()->plugin_path() . "/includes/admin/class-wc-admin-reports.php"); echo WC_Admin_Reports::output();
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire