includes/admin/reports/class-wc-report-coupon-usage.php 1 location
|
@@ 340-354 (lines=15) @@
|
| 337 |
|
/** |
| 338 |
|
* Output an export link. |
| 339 |
|
*/ |
| 340 |
|
public function get_export_button() { |
| 341 |
|
$current_range = ! empty( $_GET['range'] ) ? sanitize_text_field( $_GET['range'] ) : '7day'; |
| 342 |
|
?> |
| 343 |
|
<a |
| 344 |
|
href="#" |
| 345 |
|
download="report-<?php echo esc_attr( $current_range ); ?>-<?php echo date_i18n( 'Y-m-d', current_time( 'timestamp' ) ); ?>.csv" |
| 346 |
|
class="export_csv" |
| 347 |
|
data-export="chart" |
| 348 |
|
data-xaxes="<?php esc_attr_e( 'Date', 'woocommerce' ); ?>" |
| 349 |
|
data-groupby="<?php echo $this->chart_groupby; ?>" |
| 350 |
|
> |
| 351 |
|
<?php _e( 'Export CSV', 'woocommerce' ); ?> |
| 352 |
|
</a> |
| 353 |
|
<?php |
| 354 |
|
} |
| 355 |
|
|
| 356 |
|
/** |
| 357 |
|
* Get the main chart. |
includes/admin/reports/class-wc-report-customers.php 1 location
|
@@ 215-230 (lines=16) @@
|
| 212 |
|
/** |
| 213 |
|
* Output an export link. |
| 214 |
|
*/ |
| 215 |
|
public function get_export_button() { |
| 216 |
|
$current_range = ! empty( $_GET['range'] ) ? sanitize_text_field( $_GET['range'] ) : '7day'; |
| 217 |
|
?> |
| 218 |
|
<a |
| 219 |
|
href="#" |
| 220 |
|
download="report-<?php echo esc_attr( $current_range ); ?>-<?php echo date_i18n( 'Y-m-d', current_time( 'timestamp' ) ); ?>.csv" |
| 221 |
|
class="export_csv" |
| 222 |
|
data-export="chart" |
| 223 |
|
data-xaxes="<?php esc_attr_e( 'Date', 'woocommerce' ); ?>" |
| 224 |
|
data-groupby="<?php echo $this->chart_groupby; ?>" |
| 225 |
|
> |
| 226 |
|
<?php _e( 'Export CSV', 'woocommerce' ); ?> |
| 227 |
|
</a> |
| 228 |
|
<?php |
| 229 |
|
} |
| 230 |
|
|
| 231 |
|
/** |
| 232 |
|
* Output the main chart. |
| 233 |
|
*/ |
includes/admin/reports/class-wc-report-sales-by-category.php 1 location
|
@@ 250-265 (lines=16) @@
|
| 247 |
|
/** |
| 248 |
|
* Output an export link. |
| 249 |
|
*/ |
| 250 |
|
public function get_export_button() { |
| 251 |
|
$current_range = ! empty( $_GET['range'] ) ? sanitize_text_field( $_GET['range'] ) : '7day'; |
| 252 |
|
?> |
| 253 |
|
<a |
| 254 |
|
href="#" |
| 255 |
|
download="report-<?php echo esc_attr( $current_range ); ?>-<?php echo date_i18n( 'Y-m-d', current_time( 'timestamp' ) ); ?>.csv" |
| 256 |
|
class="export_csv" |
| 257 |
|
data-export="chart" |
| 258 |
|
data-xaxes="<?php esc_attr_e( 'Date', 'woocommerce' ); ?>" |
| 259 |
|
data-groupby="<?php echo $this->chart_groupby; ?>" |
| 260 |
|
> |
| 261 |
|
<?php _e( 'Export CSV', 'woocommerce' ); ?> |
| 262 |
|
</a> |
| 263 |
|
<?php |
| 264 |
|
} |
| 265 |
|
|
| 266 |
|
/** |
| 267 |
|
* Get the main chart. |
| 268 |
|
* |
includes/admin/reports/class-wc-report-sales-by-date.php 1 location
|
@@ 465-480 (lines=16) @@
|
| 462 |
|
/** |
| 463 |
|
* Output an export link. |
| 464 |
|
*/ |
| 465 |
|
public function get_export_button() { |
| 466 |
|
$current_range = ! empty( $_GET['range'] ) ? sanitize_text_field( $_GET['range'] ) : '7day'; |
| 467 |
|
?> |
| 468 |
|
<a |
| 469 |
|
href="#" |
| 470 |
|
download="report-<?php echo esc_attr( $current_range ); ?>-<?php echo date_i18n( 'Y-m-d', current_time( 'timestamp' ) ); ?>.csv" |
| 471 |
|
class="export_csv" |
| 472 |
|
data-export="chart" |
| 473 |
|
data-xaxes="<?php esc_attr_e( 'Date', 'woocommerce' ); ?>" |
| 474 |
|
data-exclude_series="2" |
| 475 |
|
data-groupby="<?php echo $this->chart_groupby; ?>" |
| 476 |
|
> |
| 477 |
|
<?php _e( 'Export CSV', 'woocommerce' ); ?> |
| 478 |
|
</a> |
| 479 |
|
<?php |
| 480 |
|
} |
| 481 |
|
|
| 482 |
|
/** |
| 483 |
|
* Round our totals correctly. |
includes/admin/reports/class-wc-report-sales-by-product.php 1 location
|
@@ 363-378 (lines=16) @@
|
| 360 |
|
/** |
| 361 |
|
* Output an export link. |
| 362 |
|
*/ |
| 363 |
|
public function get_export_button() { |
| 364 |
|
$current_range = ! empty( $_GET['range'] ) ? sanitize_text_field( $_GET['range'] ) : '7day'; |
| 365 |
|
?> |
| 366 |
|
<a |
| 367 |
|
href="#" |
| 368 |
|
download="report-<?php echo esc_attr( $current_range ); ?>-<?php echo date_i18n( 'Y-m-d', current_time( 'timestamp' ) ); ?>.csv" |
| 369 |
|
class="export_csv" |
| 370 |
|
data-export="chart" |
| 371 |
|
data-xaxes="<?php esc_attr_e( 'Date', 'woocommerce' ); ?>" |
| 372 |
|
data-groupby="<?php echo $this->chart_groupby; ?>" |
| 373 |
|
> |
| 374 |
|
<?php _e( 'Export CSV', 'woocommerce' ); ?> |
| 375 |
|
</a> |
| 376 |
|
<?php |
| 377 |
|
} |
| 378 |
|
|
| 379 |
|
/** |
| 380 |
|
* Get the main chart. |
| 381 |
|
* |