instructions.txt 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. Write WordPress plugin called "studiou-wc-custom-reports" in PHP, that extends WooCommerce plugin.
  2. Plugin will have following features:
  3. 1. Add new page to menu WooCommerce/Reports that shows custom overviews according to order, product, product categories
  4. 2. On new created page named "Custom Reports" will following main controls, that manage current view:
  5. - View - current type of view (data to be shown)
  6. - Date From (date from interval) - initialy set from default
  7. - Date To (date to interval) - initialy set from default
  8. - Included statuses (defines set of statuses include all)
  9. - Items per page
  10. - Paged grid with sortable columns
  11. - Button called "Export" to export shown data to .csv file
  12. 3. Add new page to menu WooCommerce/Reports Settings to show studiou-wc-custom-reports settings
  13. 4. On new created page "Custom Report settings" will be following controls:
  14. - Combo box called "Default shown interval" (shows default interval calculated from now for initial filter) with following values: "Last day", "Last week", "Last month"
  15. - Combo box called "Default property" (shows list of properties to use in filter) contailns list of properties
  16. - Default Included statuses (defines set of statuses include all)
  17. - Button called "Save Settings"
  18. 5. View "Product Categories and Variants Summary"
  19. Query:
  20. - from orders in filter interval (Date From,Date To), that has status defined in filter (Included statuses)
  21. - all products from previous
  22. - all variants from previous that has property defined in Default property
  23. - select aggregate property, sum(price)
  24. Columns:
  25. Product category
  26. Orders count
  27. (dynamic columns by Property values) <value> Count
  28. Total price
  29. 6. Plugin will have following header:
  30. /**
  31. * Plugin Name: QDR - Studiou WC Custom Reports
  32. * Plugin URI: https://www.quadarax.com/plugins/studiou-wc-custom-reports
  33. * Description: Allows view WooCommerce/Reports that shows custom overviews according to order, product, product categories, properties
  34. * Version: 1.0.0
  35. * Requires at least: 6.8.1
  36. * Requires PHP: 8.2
  37. * Author: Dalibor Votruba
  38. * Author URI: https://www.quadarax.com
  39. * License: GPL v2 or later
  40. * License URI: https://www.gnu.org/licenses/gpl-2.0.html
  41. * Text Domain: studiou-wc-custom-reports
  42. * Domain Path: /languages
  43. * WC requires at least: 9.0
  44. * WC tested up to: 9.9
  45. * Woo: 12345:342928dfsfhsf8429842374wdf4234sfd
  46. */