lundi 28 décembre 2015

Want to show reports on my custom page woo-commerce WordPress

I want to show the default woocommerce reports on my plugin area.For that i wrote some code and now i faces two issues

  1. First i am unable to show the charts as you can on my screenshot.I got Uncaught TypeError: jQuery.plot is not a function
  2. 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 like http://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