Commit Graph

3811 Commits

Author SHA1 Message Date
Mike Jolley d13dfa65c6 Remove unused code
Closes #18390
2018-01-09 09:33:16 +00:00
claudiulodro 00372e9bb0 Remove videos from help sections 2018-01-08 10:48:25 -08:00
claudiulodro a0be4eace9 Merge remote-tracking branch 'origin/square-3.3' into HEAD 2018-01-05 11:44:45 -08:00
Paul Maiorana 00da05c437
Update description for Square per their feedback. 2018-01-05 14:31:37 -05:00
Claudiu Lodromanean 70294e977b
Merge pull request #18371 from woocommerce/fix/18314
Preserve seconds when saving order date.
2018-01-05 11:09:22 -08:00
Mike Jolley ae723d83fd Preserve seconds when saving order date. 2018-01-05 14:44:36 +00:00
claudiulodro d2618c2330 Merge remote-tracking branch 'origin/master' into HEAD 2018-01-03 10:13:23 -08:00
claudiulodro 646caf5753 Tweaks for variation reports 2018-01-03 10:09:53 -08:00
Claudiu Lodromanean 14c2180928
Merge pull request #18279 from woocommerce/fix/setup-wizard-service-style-tweak
Setup wizard: adjust styling for service child elements
2018-01-03 09:38:28 -08:00
Paul Dechov e03f0c201f Align service name logos to top, and adjust padding 2018-01-03 10:43:26 -05:00
Mike Jolley e1a82a4127 Add nonce to both panels. Closes #18333 2018-01-03 10:37:07 +00:00
Claudiu Lodromanean e17dcdf81f
Merge pull request #18297 from macbookandrew/improve-blank-state
add button for creating coupons to coupon blank state
2018-01-02 11:45:28 -08:00
Andrew Minion 785641ef3c update link to match rest of codebase 2018-01-02 14:05:47 -05:00
Claudiu Lodromanean de71c92fa0
Merge pull request #18278 from woocommerce/fix/setup-wizard-ppec-api-subject-set-when-unchecked
Setup wizard: don't set PPEC "API Subject" when WCS rerouting is unchecked
2018-01-02 10:39:35 -08:00
Mike Jolley 5aee9f973c Append timestamp to filename 2018-01-02 13:29:23 +00:00
Mike Jolley 46c51bb3a6 Allow filename to be set from javascript 2018-01-02 13:16:43 +00:00
Andrew Minion 40d9efc4b8 add button for creating coupons to coupon blank state
Makes it more user-friendly for someone unfamiliar with WordPress/WooCommerce, and even for those who are familiar and don’t immediately see the typical “Add Coupon” button in the top left corner by the header.
2017-12-27 11:53:20 -05:00
Paul Dechov a87183503f Fix api_subject option being set even when reroute_requests unchecked 2017-12-22 14:57:50 -05:00
claudiulodro 611ca58d09 Change sanitize function 2017-12-22 09:46:57 -08:00
Claudiu Lodromanean 4f94d9dbbc
Merge pull request #18247 from AdamQuadmon/wc-exporter-custom-filters
Add product export row action hook
2017-12-21 06:02:56 -08:00
Luciano Amodio 1b42973b75 Add export ajax query args and filename filter hooks
`woocommerce_export_get_ajax_query_args` let you pass args to ajax actions
`woocommerce_{$this->export_type}_export_get_filename` let you change the filename
2017-12-20 21:20:02 +01:00
Luciano Amodio 865efa3736 Add product export row action hook
having this hook is possible to actually use the woocommerce_product_export_product_query_args filter

```
add_action('woocommerce_product_export_row', 'export_custom_product');
add_filter( 'woocommerce_product_export_product_query_args', 'export_product_query_args');

// https://github.com/woocommerce/woocommerce/wiki/wc_get_products-and-WC_Product_Query
add_filter( 'woocommerce_product_data_store_cpt_get_products_query', 'handle_custom_query_var', 10, 2 );

function export_custom_product() {
  $args = [
    'show_option_all' =>  'Custom',
    'taxonomy'        =>  'pa_custom',
    'name'            =>  'custom',
    'orderby'         =>  'name',
    'order'           => 'ASC',
    'selected'        =>  isset($_REQUEST['custom']) ? $_REQUEST['custom'] : '',
    'show_count'      =>  true,
    'hide_empty'      =>  true,
    'menu_order'      => false
  ];
  ?>
  <tr>
    <th scope="row">
      <label for="custom">Filter by Custom</label>
    </th>
    <td>
      <?php wp_dropdown_categories($args); ?>
    </td>
  </tr>
  <?php
}

function export_product_query_args($args) {
  $args['custom'] = 'default';

  if ( ! empty( $_POST['form'] ) ) {
    $values = explode('=', $_POST['form']);
    if('custom' === $values[0]) {
      $args['custom'] = wp_unslash( $values[1] );
    }
  }

  return $args;
}

function handle_custom_query_var( $query, $query_vars ) {
  if ( ! empty( $query_vars['custom'] ) ) {
    $query['tax_query'][] = array(
      'taxonomy' => 'pa_ custom',
      'field' => 'id',
      'terms' => esc_attr( $query_vars['custom'] )
    );
  }

  return $query;
}
```
2017-12-20 20:13:10 +01:00
Claudio Sanches f40f3291f8 Fixed file log dates and implement better date formatting
Closes #18232
2017-12-19 15:38:50 -02:00
Claudiu Lodromanean 052fbc73c6
Merge pull request #18212 from WPprodigy/hide-add-coupon
Only show 'Apply coupon' in admin if coupons are enabled
2017-12-18 08:41:12 -08:00
Shiva Poudel 0432b58182 Remove unwanted transient then were not set 2017-12-18 20:03:08 +05:45
Caleb Burks 0d9e55d2ec Hide Apply coupon in admin if coupons are disabled 2017-12-17 22:21:08 -06:00
Mike Jolley fd2c676837
Merge pull request #18184 from woocommerce/fix/18182-storefront-wizard-notice
Storefront in wizard for non WC themes and default themes
2017-12-15 12:51:19 +00:00
Gerhard Potgieter 4ba9af1c2f Change WC::is_active_theme into a global function wc_is_active_theme. Clean up the conditional checks to read better. 2017-12-15 14:32:54 +02:00
Mike Jolley 7c029d18e9
Merge pull request #18186 from woocommerce/fix/no-strict-array-select-settings
Option value comparison when saving select settings
2017-12-15 12:18:26 +00:00
Gerhard Potgieter 89d21a50a4 Convert allowed options to string values for comparison, html options have no data type distiction. 2017-12-15 13:39:05 +02:00
Gerhard Potgieter 30398a65f1 Do not use strict comparison when doing in_array on select settings as wp_unslash on the raw_value will return a string that fails comparison with int values. 2017-12-15 13:21:01 +02:00
Mike Jolley d14d3afc2e
Merge pull request #18162 from WPprodigy/downloads-logging-enhancements
[3.3] New download logging reports enhancements
2017-12-15 11:09:21 +00:00
Caleb Burks 5130740aca Escaping 2017-12-15 04:26:22 -06:00
Gerhard Potgieter 2907725e5c Display storefront theme in wizard when theme does not support woocommerce, or a default theme.
Closes #18182
2017-12-15 10:23:31 +02:00
Claudiu Lodromanean 9cfc587d2e
Merge pull request #18160 from WPprodigy/hide-stock-status-on-variations
[3.3] Hide variation stock status setting conditionally
2017-12-14 09:05:01 -08:00
Mike Jolley e3b61f6203
Merge pull request #18151 from woocommerce/fix/18149
Save offline gateways in wizard
2017-12-14 16:45:20 +00:00
Mike Jolley 1555507756
Merge pull request #18123 from woocommerce/update/setup-wizard-omit-paypal-standard
Setup wizard: Omit PayPal Standard unless plugins cannot be installed
2017-12-14 16:42:03 +00:00
Caleb Burks b8e208269e Adjust download reporting active filters display 2017-12-14 00:13:53 -06:00
Caleb Burks 76a2e5fe87 Capitalization fix 2017-12-13 23:59:20 -06:00
Caleb Burks cb154b5d40 Add button for copying DL link 2017-12-13 23:57:47 -06:00
Caleb Burks 345376bc20 Add customer download report section 2017-12-13 23:29:12 -06:00
Caleb Burks c7f5ee97db Hide variation stock status setting conditionally 2017-12-13 22:38:03 -06:00
claudiulodro cf86647de3 Save offline gateways in wizard 2017-12-13 13:38:33 -08:00
Beka Rice f0a33bfa79 [WC 3.3] Fix fatal if gateway is deactivated 2017-12-13 13:59:07 -05:00
Claudiu Lodromanean 1296d6e087
Merge pull request #18141 from woocommerce/helper-connect-prompt
Helper: Prompt connection to WooCommerce.com for updates/support
2017-12-13 09:43:41 -08:00
Konstantin Kovshenin 1928a9cbf6 Helper: Prompt connection to WooCommerce.com for updates/support
A persistent prompt for users to connect their store to their
WooCommerce.com account, if they happen to have one or more active
extensions provided by WooCommerce.com.

Fixes #17501
2017-12-13 19:34:44 +03:00
Paul Dechov 8f3de46637
Merge branch 'master' into update/setup-wizard-omit-paypal-standard 2017-12-13 09:41:25 -05:00
Paul Dechov d7ae29fe51 Fix UK country code in Square support check 2017-12-13 09:37:15 -05:00
Paul Dechov f4c557a9be Add test verifying that the correct list of payment gateways is returned per country 2017-12-13 09:35:43 -05:00
Mike Jolley 71c9025709 Updates CSS for chevron to work across browsers - input::before is not supported in Firefox. 2017-12-13 14:30:00 +00:00