Commit Graph

3978 Commits

Author SHA1 Message Date
Alexander Minza 519bfadc63 Added support for additional HTML5 input types 2018-01-25 15:14:30 +02:00
Mike Jolley e2d553fb61
Merge pull request #18588 from woocommerce/fix/setup-wizard-copy-and-style-tweaks-for-wc-3-3
Setup wizard: various style and copy tweaks
2018-01-25 12:59:52 +00:00
Paul Dechov 25373cadee Tweak spacing of store setup step towards original static design 2018-01-24 17:21:04 -05:00
Mike Jolley db73de335a Add notice for moved settings 2018-01-24 17:18:28 +00:00
Paul Dechov 98fe2c7c3e Remove newline and whitespace from dropdown option tooltips 2018-01-24 10:31:16 -05:00
Paul Dechov e5d00fa98e Fix payment addons link again 2018-01-23 18:25:44 -05:00
Paul Dechov 7f973c2c79 Tweak Activate step lower heading to reflect listing of features of above 2018-01-23 18:20:47 -05:00
Paul Dechov 591dd9ec2d Clarify 'payments' (in WCS feature list) to 'payment setup' 2018-01-23 18:19:12 -05:00
Paul Dechov 4eb1c182b2 Point PPEC extension link to woocommerce.com instead of wordpress.org 2018-01-23 18:16:33 -05:00
Claudiu Lodromanean 34710ba5f1
Merge pull request #18534 from woocommerce/fix/children-when-swapping-type
Prevent grouped products showing when the type is variable
2018-01-22 11:03:30 -08:00
Mike Jolley 6389f1af9a Merge branch 'fix-18452' 2018-01-22 15:43:32 +00:00
Mike Jolley 02ebd8f2ee Coding standards 2018-01-22 15:43:23 +00:00
Konstantin Kovshenin 9a496e5d88 Helper: Fix some code problems in the connection prompt.
* Use `wc_get_screen_ids()` instead of hard-coding a list.
* Use the `$strict` param in `in_array()`
* Run the WooCommerce string through l10n to make sure we target the correct screen in non-English installs
2018-01-19 20:58:36 +03:00
Mike Jolley f6e0593d47 Prevent grouped products showing when the type is variable 2018-01-19 12:20:27 +00:00
Gerhard Potgieter 4ef8251750
Merge pull request #18491 from woocommerce/update/helper-text
Updates Helper text to be correct
2018-01-19 10:13:15 +02:00
Rodrigo Primo 250b94b0ce
Merge pull request #18524 from woocommerce/fix/18510
Saving taxes should invalidate caches.
2018-01-18 16:55:55 -02:00
Claudiu Lodromanean ee2a562cf0
Merge pull request #18517 from woocommerce/fix/18499
Fix undefined var.
2018-01-18 09:50:53 -08:00
Mike Jolley a110180643 Saving taxes should invalidate caches. 2018-01-18 17:47:26 +00:00
Mike Jolley c618895ece Fix undefined var. Closes #18499 2018-01-18 15:25:27 +00:00
Manos Psychogyiopoulos e77ec2444e Add woocommerce_admin_html_order_preview_item_class filter
For parity with woocommerce_admin_html_order_item_class filter in html-order-item.php view.
2018-01-18 16:57:51 +02:00
Konstantin Kovshenin 3c3077d305 Helper: Prompt a Helper connection only on relevant screens.
Fixes #18452
2018-01-18 12:28:00 +03:00
Gerhard Potgieter f48985095b Update image galery to use CRUD and not directly meta_data calls 2018-01-18 11:10:26 +02:00
Paul Dechov 3dee78ea54 Tweak variable name 2018-01-17 12:43:44 -05:00
Jonathan Belcher 77578c5509
Corrects string to use sprintf properly 2018-01-17 10:35:43 -05:00
Paul Dechov dc884c5e2f Refactor so as to leave 'enabled' setting alone in case gateway was already enabled 2018-01-16 16:15:30 -05:00
Paul Dechov fcf3d368f2 Setup wizard: if selected, activate but disable PPEC gateway by default 2018-01-16 16:14:35 -05:00
Jonathan Belcher dbb0f6f1ef Add links to Sharing and Transferring string 2018-01-16 14:35:30 -05:00
Jonathan Belcher 535e1c5b58
Updates Helper text to be correct 2018-01-15 11:41:32 -05:00
Claudio Sanches dff5fefe73
Merge pull request #18460 from woocommerce/fix/18448
Revert RTL changes in price formatting
2018-01-12 14:28:36 -02:00
Claudiu Lodromanean 544d181538
Merge pull request #18458 from woocommerce/update/storefront-wizard
Update wizard wording
2018-01-12 07:24:42 -08:00
Mike Jolley 7a7995f697 Revert price formatting changes which break in RTL 2018-01-12 14:16:18 +00:00
Mike Jolley 243c664030 Wording update 2018-01-12 12:29:22 +00:00
Mike Jolley 89c888d654 phpcs 2018-01-12 11:33:26 +00:00
Ryan Ray b3af5c808d Updates & renames all dummy data to sample data. 2018-01-11 11:39:51 -05:00
Claudio Sanches 45dfb7d015
Merge pull request #18427 from woocommerce/fix/18426
Correct bulk edit price formatting.
2018-01-11 12:31:45 -02:00
Mike Jolley fbbbc7a8df
Merge pull request #18406 from woocommerce/update/themenotice
Remove unsupported theme notice
2018-01-11 13:46:09 +00:00
Mike Jolley c1fc8c241a Correct bulk edit price formatting. 2018-01-11 11:21:37 +00:00
claudiulodro a3d0d71cdf Deprecate theme notice 2018-01-10 09:52:52 -08:00
claudiulodro d87497962b Revert "Remove unsupported theme notice"
This reverts commit aad3792817.
2018-01-10 09:45:16 -08:00
Claudio Sanches 501f03e306
Merge pull request #18411 from MechielCouvaras/patch-1
Update Klarna copy in Setup Wizard
2018-01-10 11:11:41 -02:00
Mechiel Couvaras 294b2cca74
Update class-wc-admin-setup-wizard.php
Update to Klarna copy as per their specification.
2018-01-10 12:42:47 +02:00
Shiva Poudel 8232d0ba74 Storefront theme as official theme 2018-01-10 15:30:03 +05:45
claudiulodro aad3792817 Remove unsupported theme notice 2018-01-09 13:51:12 -08:00
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
Mike Jolley f2471aea16
Merge pull request #18122 from woocommerce/update/setup-wizard-ppec-settings-description
Setup wizard: omit unnecessary sentence from PPEC settings description
2017-12-13 12:33:00 +00:00
Rodrigo Primo 1b6c5fb9b2
Merge pull request #18098 from woocommerce/update/orders-list-table-phpcs
Fix PHPCS violations on class-wc-admin-list-table-orders.php
2017-12-13 10:21:47 -02:00
Rodrigo Primo e5160b28a9 Manually fix some PHPCS violations 2017-12-13 09:41:34 -02:00
Paul Dechov b1b604b401 Fix stripe being shown in Klarna and Square cases regardless of Stripe support
No difference in practice, since I believe all Klarna and Square countries are supported by Stripe, but for robustness this should be explicitly checked.
2017-12-12 20:39:04 -05:00
Paul Dechov b26a3ca1a2 Fix 'Klarna Payments' name 2017-12-12 20:22:01 -05:00
Paul Dechov 4511c5ae12 Make PPEC opt-out in every case 2017-12-12 20:21:21 -05:00
Paul Dechov 1706c3e152 Refactor 'get_wizard_in_cart_payment_gateways' function
Extract function that returns all possible in-cart gateways, and tighten the logic overall.
2017-12-12 20:20:26 -05:00
Frédéric Demarle 52d7d136d6 Remove useless translators comment 2017-12-12 20:49:10 +01:00
Paul Dechov 080c5b50e7 Omit PayPal Standard unless plugins cannot be installed 2017-12-12 14:04:36 -05:00
Paul Dechov 200c6780e9 Setup wizard: omit unnecessary sentence from PPEC settings description 2017-12-12 13:57:46 -05:00
Mike Jolley a89b8cd707 Update the logo in the wizard 2017-12-12 17:38:10 +00:00
claudiulodro 4af3f9f12f Add class back to paypal in wizard 2017-12-12 08:24:35 -08:00
Caleb Burks 53873857ef Move three display settings to customizer 2017-12-11 22:30:14 -06:00
claudiulodro ba363b6353 Bring up-to-date with master and resolve conflicts 2017-12-11 11:36:00 -08:00
claudiulodro 3b94d0c52b Bring up-to-date with master and resolve conflict 2017-12-11 10:27:05 -08:00
Claudiu Lodromanean c0e0f9c2cb
Merge pull request #18039 from woocommerce/add/setup-wizard-wcs-paypal-express-checkout-settings
Setup wizard: PayPal Express Checkout settings for rerouting via WCS
2017-12-11 08:26:24 -08:00
Rodrigo Primo 5915e6e892 Fix WPCS violations automatically using phpcbf 2017-12-11 14:24:54 -02:00
Paul Dechov 0f84a5eb4b Revise checkbox label 2017-12-11 09:50:27 -05:00
Mike Jolley dd59a9c51c
Merge pull request #18093 from woocommerce/fix/unsupported-php-syntax
Replace PHP >= 5.4 syntax with PHP 5.2 alternative
2017-12-11 14:09:13 +00:00
Rodrigo Primo fc43bde6f8 Replace PHP >= 5.4 syntax with PHP 5.2 alternative
Commit 8f37ea33ed added the following line that works only on PHP >= 5.4 as function array dereferencing is not present in PHP version 5.3 or earlier. This commit fixes it by replacing that line with a alternative that is compatible with PHP >= 5.2.

6ecc3bc442/includes/admin/list-tables/class-wc-admin-list-table-orders.php (L189)
2017-12-11 11:20:42 -02:00
Mike Jolley a65db31443 Update text.
Closes #18078
2017-12-11 13:19:19 +00:00
Caleb Burks 274e5c3aa2 Hide manage stock buttons if inventory is disabled 2017-12-09 23:02:40 -06:00
Mike Jolley 426897ac2d
Merge pull request #18075 from woocommerce/update/extension-screen-styles
Update extension screen styles
2017-12-08 17:28:39 +00:00
Mike Jolley d0db71c6c2 Flex grid for extension list 2017-12-08 13:23:08 +00:00
Mike Jolley 1944bf7191 Remove text type setting 2017-12-08 11:24:21 +00:00
Gerhard Potgieter 0c5a0b06cc
Merge pull request #17926 from woocommerce/add/search-functionality-extensions-page
Adds search functionality to extensions page
2017-12-08 10:48:38 +02:00
Claudio Sanches 0c36ab23cf Updated API settings making clear that is from our legacy REST API 2017-12-07 19:53:40 -02:00
Claudio Sanches 2f6f6112c2 Merge branch 'master' into feature/webhook-crud 2017-12-07 18:21:52 -02:00
Claudio Sanches 2db8fdbf0b Removed legacy custom topic handler 2017-12-07 18:04:45 -02:00
Jonathan Belcher f4d6b6f68f Merge Commit 2017-12-07 12:10:00 -05:00
Jonathan Belcher 3bb55107e8 Fix placeholder comment 2017-12-07 12:04:25 -05:00
Jonathan Belcher 885f869d40 Merge commit 2017-12-07 12:02:55 -05:00
Jonathan Belcher 937cdbf230 Merge commit 2017-12-07 11:50:42 -05:00
Jonathan Belcher 9695bc4183 Small code review changes 2017-12-07 11:47:33 -05:00
Claudiu Lodromanean 804c771296
Merge pull request #17683 from woocommerce/feature/unsupported-theme
Unsupported theme enhancements
2017-12-07 08:05:29 -08:00
Mike Jolley 5e51af9d2c Fix white space in order actions 2017-12-07 15:50:27 +00:00
Mike Jolley acbd4295f9 phpcs 2017-12-07 12:35:13 +00:00
Mike Jolley 91887b918f phpcs 2017-12-07 12:31:30 +00:00
Marcin Bot d0756a4a36 Fixed the undefined index notice 2017-12-07 11:20:04 +00:00
Jonathan Belcher b42004f7b3 Fix escaping 2017-12-06 16:48:30 -05:00
Paul Dechov 1433347eda Remove unused description string for Braintree 2017-12-06 15:36:46 -05:00
Paul Dechov f2cc10922a Add full stops to code comments 2017-12-06 14:53:31 -05:00
Jonathan Belcher c43f4c65be Merge Commit 2017-12-06 12:07:27 -05:00
Jonathan Belcher bbaabb5b80 Remove unused function 2017-12-06 12:03:50 -05:00
Jonathan Belcher b5c1025621 Fixes from code review 2017-12-06 12:02:09 -05:00
Paul Dechov c75f5f54af Show PPEC instead of Braintree in US, and remove Braintree altogether 2017-12-06 10:02:32 -05:00
Paul Dechov 94da7ffbed Default PPEC to enabled 2017-12-06 10:01:55 -05:00
Paul Dechov 28c4dc0fbe Install WCS if PPEC settings set 2017-12-06 09:19:39 -05:00
Paul Dechov eecd0db0f0 Tweak checkbox label 2017-12-06 09:19:08 -05:00
Paul Dechov 4155f02ec8 Make sure PPEC settings are opened if enabled on load 2017-12-06 09:18:06 -05:00
Marcin Bot 0d12b31a13 Updated the Klarna logo 2017-12-06 14:04:28 +00:00
Mike Jolley 67a4339ee0
Merge pull request #18031 from woocommerce/fix/admin-product-warnings
Fixed "PHP Warning: printf(): Too few arguments"
2017-12-06 13:32:26 +00:00
Gerhard Potgieter 6ff40c2821
Merge pull request #18011 from WPprodigy/add-helper-notice
Add admin notice when helper plugin is deactivated
2017-12-06 12:37:34 +02:00
Paul Dechov 6500b11db8 Adjust logo widths to match design and approximately equalize prominence 2017-12-05 19:55:43 -05:00
Paul Dechov 9a3b63036f Address 'Undefined index' notice by checking for set param 2017-12-05 14:56:15 -05:00
Paul Dechov 570a2e9512 Add PPEC settings to wizard, to facilitate rerouting via WCS 2017-12-05 14:53:44 -05:00
Claudio Sanches 79e6821685 Fixed coding standards 2017-12-05 17:11:33 -02:00