48f2a4c5ad
* Display channel column in Orders Analytics UI. * Set $data to false to not use cache. For development purpose. * Get channel info from order meta and put into extended_info. * Set channel in order item level. * Replace channel with get_origin_label in extended_info. * Remove unnneeded channel in orders_data. * Display origin instead of channel in table. * Fix lint errors. * Query order meta table based on HPOS. * Remove code for development purpose. * Add changelog. * Fix code comment. * Guard against null values. `_wc_order_attribution_utm_source` can be null when the order is created via web admin. * Set default origin label to "Unknown". This default is the same as found in `output_origin_column` function in plugins/woocommerce/src/Internal/Orders/OrderAttributionController.php. * Support server side report download. This is needed when there are more than 25 records in the Orders Analytics report. * Fix failed test. * Fix lint error. * Simplify code. We loop through $orders_data instead of $order_attributions data. This is because $order_attributions may not have attributions data for some orders. By looping through $orders_data, it would automatically cater for "Unknown" data from get_origin_label function call, and we don't need to specify "Unknown" as default value for origin. * Change "channel" to "attribution" object in controller. This is because we need more than one piece of information, so we need it to be an object with properties like `origin`, `device` etc. Co-authored-by: Kader Ibrahim S <kader.ibrahim.s@a8c.com> * Change `origin` string to `attribution` array in Orders DataStore. Co-authored-by: Kader Ibrahim S <kader.ibrahim.s@a8c.com> * Change origin string to attribution object. * Fix indexing after changing from origin string to attribution object. * Change from origin string to attribution object in table.js. * Simplify code. To make code shorter and easier to read, instead of long horizontal code. * Fix lint errors. * Fix failed test. * Fix lint error. * Fix retrieving origin in CSV export. * Use $wpdb->postmeta; cosmetic change. Co-authored-by: Kader Ibrahim S <kader.ibrahim.s@a8c.com> * Cosmetic change. Co-authored-by: Kader Ibrahim S <kader.ibrahim.s@a8c.com> * Sanitize order IDs by using absint. Co-authored-by: Kader Ibrahim S <kader.ibrahim.s@a8c.com> --------- Co-authored-by: Kader Ibrahim S <kader.ibrahim.s@a8c.com> |
||
---|---|---|
.. | ||
bin | ||
changelog | ||
client | ||
docs | ||
.browserslistrc | ||
.distignore | ||
.eslintignore | ||
.eslintrc.js | ||
.gitattributes | ||
.gitignore | ||
.npmrc | ||
.prettierrc.js | ||
.stylelintignore | ||
README.md | ||
babel.config.js | ||
composer.json | ||
composer.lock | ||
package.json | ||
stylelint.config.js | ||
tsconfig.json | ||
unminify.js | ||
webpack.config.js |
README.md
WooCommerce Admin
This is a javascript-driven, React-based admin interface for WooCommerce.
Development
Please refer to the WooCommerce Admin Development.
End-to-end tests
Please refer to the WooCommerce End to End Tests.
Common Issues
If you're encountering any issue setting things up, chances are we have been there too. Please have a look at our wiki for a list of common problems.