Commit Graph

5114 Commits

Author SHA1 Message Date
Yash Kapoor 365a701d34
Update class-wc-admin-setup-wizard.php
Added translation.
2019-08-22 16:40:57 +05:30
Mohit Verma c97ca103c1
Update class-wc-admin-menus.php
Fixed escaping in attribute.
2019-08-22 16:21:23 +05:30
Akeda Bagus 62b42893b2
Rename URL param from wccom-helper-nonce to wccom-connect-nonce. 2019-08-17 22:37:02 +07:00
Akeda Bagus aae802f319
Add support to allow in-app purchase installation after connected. 2019-08-17 00:36:28 +07:00
Rodrigo Primo 7cea80a86a
Merge pull request #24291 from woocommerce/prod-shipping-class-alphabetical
Sort shipping classes under products alphabetically
2019-08-08 16:41:30 -03:00
Gerhard 5ea1b72b6a PHPCS fixes 2019-08-05 13:51:46 +02:00
Daniel Bitzer b59e633b15 Fix output escaping for menu titles
Menu title contains HTML
2019-08-05 13:51:45 +02:00
Jesse Pearson 009b0f030d Sort shipping classes under products alphabetically 2019-08-01 13:07:05 -04:00
Claudio Sanches 1e6785f758 Introduced filter to prevent adjust product stock 2019-07-31 17:37:33 -03:00
haszari 8c5eb16c78 shorten in-app-purchase url param keys 2019-07-16 08:30:19 +12:00
Gerhard Potgieter 3958e347cd
Merge pull request #24123 from woocommerce/add/wccom-site-rest-api
Add WCCOM Site REST API
2019-07-15 19:34:14 +02:00
Akeda Bagus f51265e58d
Add @since tag. 2019-07-15 15:42:36 +07:00
Gerhard Potgieter aa706fd68f
Merge pull request #24075 from woocommerce/add/in-app-purchase-params
Add in-app-purchase params to extensions screen & suggestions
2019-07-15 09:18:51 +02:00
haszari dab7cb328a use add_query_arg to determine current page url 2019-07-15 18:07:57 +12:00
haszari f97fa34c01 rename button style param/variable for clarity 2019-07-15 08:50:08 +12:00
Gerhard Potgieter f9697eb03e
Merge pull request #24034 from woocommerce/fix/23508
Fix: check if DB_NAME is defined before using it
2019-07-14 19:54:04 +02:00
Gerhard Potgieter eee56a254f
Merge pull request #23479 from parmarhardip/23381
enhance #23381 Prevent the Cart, checkout and my account page from be…
2019-07-14 19:49:37 +02:00
haszari 8c6a09e7e4 pass current wp-admin path to WCCOM as url param (for "back" link) 2019-07-12 14:50:14 +12:00
haszari 46f2b98bca add in-app-purchase url params to marketplace suggestions buttons 2019-07-12 13:42:35 +12:00
haszari 9652d8f42c add in-app-purchase url params to addons screen cards (in category tabs) 2019-07-12 13:42:35 +12:00
haszari 80f59f3819 fix linter errors (2 phpcbf, 31 manual) 2019-07-12 13:42:34 +12:00
haszari b597ff067a add in-app-purchase url params to addons screen button 2019-07-12 13:42:33 +12:00
haszari 6f29905ece fix phpcs errors (4 phpcbf, 40 manual) 2019-07-12 13:42:33 +12:00
Akeda Bagus d51e843190
Move WCCOM Site related files to `/wccom-site` directory.
Also use queue when installing products so API can respond immediately.
2019-07-11 16:01:53 +07:00
Akeda Bagus c59e1c3553
Fix minor wording issue in error message. 2019-07-11 15:58:06 +07:00
Akeda Bagus 9d047fd912
Make sure to flush cache before checking wccom updates. 2019-07-11 15:58:06 +07:00
Akeda Bagus 18b503dbd6
Add support for theme installation. 2019-07-11 15:58:06 +07:00
tgglv c0d9fc7fc3
Make WP.org plugin support installation method names more precise 2019-07-11 15:58:06 +07:00
tgglv 6eeefd1341
Add WP.org plugin support into Product Activation 2019-07-11 15:58:05 +07:00
tgglv 1fae1d7ba2
Remove redundant line 2019-07-11 15:58:05 +07:00
tgglv 527fbca149
Store product's `installed_path` 2019-07-11 15:58:05 +07:00
tgglv 1dff186076
Add @return types into annotations 2019-07-11 15:58:05 +07:00
tgglv be63fba4cd
Fix typo 2019-07-11 15:58:05 +07:00
tgglv 5bde7b5161
Fix PHP CodeSniffer issues 2019-07-11 15:58:05 +07:00
Akeda Bagus 52a68177a0
Add product info retrieval step before downloading product. 2019-07-11 15:58:04 +07:00
Akeda Bagus 6854f3bdca
Update the state when installation finished. 2019-07-11 15:58:04 +07:00
Akeda Bagus 7ac8232d2c
Make sure to init the upgrader and clean plugins cache before activate. 2019-07-11 15:58:04 +07:00
Akeda Bagus b57f05fde9
Add missing description in docblock. 2019-07-11 15:58:04 +07:00
Akeda Bagus 69a4aa926a
Fix typo in error message. 2019-07-11 15:58:04 +07:00
Akeda Bagus 7adc256344
Move subscription check as part of installation steps. 2019-07-11 15:58:03 +07:00
Akeda Bagus 72ba4ed2e5
Include helper product install class in main helper class. 2019-07-11 15:55:16 +07:00
Akeda Bagus 61b0d974f4
Add reset state. 2019-07-11 15:55:16 +07:00
Akeda Bagus d088aea85d
Initial work of adding product install API on top of helper. 2019-07-11 15:55:11 +07:00
Rodrigo Primo e5857e91f9 Merge branch 'master' into fix/23508 2019-07-10 16:11:07 -03:00
Claudio Sanches c63cd802aa
Merge pull request #23957 from woocommerce/feature/feature-plugin-packages
Include external feature plugins as packages
2019-07-10 15:47:48 -03:00
Claudio Sanches 5b8694e92a
Merge pull request #23915 from woocommerce/fix/23544
[Setup] Make PostCode optional as few countries don't use them
2019-07-10 15:45:32 -03:00
Mike Jolley c928188831 Update from master 2019-07-10 12:57:02 +01:00
aslamshekh 3df0769366 I have done with few changes which is suggested. 2019-07-10 14:52:59 +05:30
aslamshekh 15eaaebdeb Fix-24115, Downloads report not getting 503 any more, If previously downloaded files are removed from product 2019-07-10 12:58:07 +05:30
Gerhard Potgieter 600da8cee2
Merge pull request #24112 from woocommerce/fix/tax-class-initialization
Fix Tax Class table initialization
2019-07-10 08:38:31 +02:00
Claudio Sanches d18c3f8ed1
Merge pull request #24069 from woocommerce/add/coupon-code-generator
Add generate coupon code button
2019-07-09 16:50:24 -03:00
Claudio Sanches 18b876a95c Always load generate code button
Some improvements in the button label and names
2019-07-09 16:46:17 -03:00
Rodrigo Primo 53df16b2b5
Merge pull request #23781 from woocommerce/try/obw-changes
OBW: Switch shipping labels and shipping zones placement
2019-07-09 16:06:38 -03:00
Claudio Sanches 0e5c0eeccd
Merge pull request #23091 from woocommerce/fix/23087
Move settings save functionality to wp_loaded hook
2019-07-09 15:47:41 -03:00
Claudio Sanches 56240c9633 Prevent saving empty tax classes into the database 2019-07-09 15:23:46 -03:00
vedanshujain dd783615cc Use helper method instead of `wp_list_pluck` to avoid notices
In country locales, many times configuration for postcodes may not be defined. In these cases, using `wp_list_pluck` will throw notices.

We now use a small helper method to extract post code configuration from country locales.
2019-07-09 18:13:27 +05:30
vedanshujain e2577b3a06 [Setup] Make PostCode optional as few countries don't use them
Some countries like Hong Kong, UAE etc don't use post codes, in which case this commit will make the field optional.
If its not known whether a country uses postcode or not, it will be required.
2019-07-09 14:37:03 +05:30
Claudio Sanches 55692cba87
Merge pull request #23255 from woocommerce/shopify-column-mapping
Mapping for default Shopify fields
2019-07-08 18:53:57 -03:00
Claudio Sanches c1223e3890 Fixed meta: label 2019-07-08 18:52:03 -03:00
Claudio Sanches db06d3dbae Merge branch 'master' into update/22164-tax-rate-class-table 2019-07-08 18:12:23 -03:00
Claudio Sanches b54997d9f5 Merge branch 'fix/23221' of https://github.com/senff/woocommerce into senff-fix/23221 2019-07-08 17:55:07 -03:00
Claudio Sanches adc543f8f1
Merge pull request #24058 from woocommerce/add/wc-admin-obw-recommended
OBW: Add wc-admin to recommended page
2019-07-08 16:56:49 -03:00
Claudio Sanches da99bc8ca0 Merge branch 'master' into feature/feature-plugin-packages 2019-07-08 14:33:21 -03:00
Paul Sealock 8777dc4c01 Revert title to WooCommerce Admin 2019-07-05 16:11:35 +12:00
Paul Sealock 1116e5516d update 'free' usage and wc-admin description 2019-07-05 16:10:10 +12:00
Rodrigo Primo b648647893
Merge pull request #23741 from woocommerce/feature/23728
Allows customize buyer name in orders list screen
2019-07-04 16:23:43 -03:00
Rodrigo Primo 4712f75f67 Merge branch 'master' into fix/23508 2019-07-04 16:13:01 -03:00
Rodrigo Primo 4de12633d6
Merge pull request #24073 from woocommerce/fix/status-helper-disconnected-typo
Fix missing space and closing <strong> tag in WooCommerce.com disconnect message
2019-07-04 16:05:59 -03:00
Rodrigo Primo a26f38f3a1
Merge pull request #23133 from woocommerce/update/23111
If variations are missing prices, show notice
2019-07-04 10:08:41 -03:00
Gerhard Potgieter 12fbfa5677
Merge pull request #22927 from woocommerce/update/22895
Allow "Thanks" wording in emails to be reworded by admin
2019-07-04 12:43:00 +02:00
Daniel Bitzer 20625e9a45 Fix missing space and closing <strong> tag
Strong tag was not being echoed and space was missing after full stop.
2019-07-04 16:57:50 +09:30
Gerhard Potgieter c3a25bb6bf
Merge pull request #23884 from woocommerce/fix/23875
Prevents taxes columns from being removed when the order is no longer editable
2019-07-04 09:25:49 +02:00
Gerhard Potgieter 007fc457a3
Merge pull request #24020 from woocommerce/fix/plural-forms-usage
Correct singular form usage in class-wc-admin-report.php
2019-07-04 09:23:14 +02:00
Gerhard 5d604329fc Reword postfix to suffix 2019-07-04 09:07:02 +02:00
Gerhard 9e2ba43d3b Forgot the 9 2019-07-04 09:05:05 +02:00
Gerhard 164f09e9c7 Remove abiguous characters that are dificult to read. 2019-07-04 09:00:15 +02:00
Gerhard 538edcaac0 Make button text translatable. 2019-07-03 22:57:08 +02:00
Gerhard 24fc4948c0 Add generate coupon code button for quick coupon code generation. 2019-07-03 22:48:30 +02:00
Mark Senff 9c013b132b
Update html-product-attribute.php 2019-07-03 07:30:32 -04:00
Gerhard 8a972ee5c3 Add check for empty string when checking meta_value since checking an empty string in mysql against an int results in a 0 value. 2019-07-03 12:37:28 +02:00
Paul Sealock 01f428d34f install plugin 2019-07-03 13:12:24 +12:00
Paul Sealock b65ce3dd26 OBW: Add wc-admin to recommended page 2019-07-03 13:02:07 +12:00
Peter Fabian 6727fdba62 Updated constants' names to better reflect their usage. 2019-07-02 18:44:43 +02:00
Rodrigo Primo 737f6af5e8 Introduce file type check for tax rate importer 2019-07-02 10:44:21 -03:00
Rodrigo Primo cabf9de71a Added nonce check to CSV importer actions 2019-07-02 10:37:46 -03:00
Rodrigo Primo 18813662dd Fix link to documentation about WordPress and PHP minimum requirements 2019-07-02 09:19:39 -03:00
Rodrigo Primo b08fd05a7d Fix: check if DB_NAME is defined before using it
WooCommerce relies on the constant DB_NAME to display information about the database tables in the system status page. The problem is that this constant is not always defined (e.g., when the plugin HyperDB is used to replace the standard wpdb class). When that is the case, WooCommerce will incorrectly say that its core tables are missing and the following PHP warning will be generated:

```
Use of undefined constant DB_NAME - assumed 'DB_NAME' (this will throw an Error in a future version of PHP)
wp-content/plugins/woocommerce/includes/api/v2/class-wc-rest-system-status-v2-controller.php:708
```

To fix this, this commit checks to see if DB_NAME is defined before using it. When the constant is not set, WooCommerce will display the following message to the users instead of the list of supposedly missing tables:

```
Database information: Unable to retrieve database information. Usually, this is not a problem, and it only means that your install is using a class that replaces the WordPress database class (e.g., HyperDB) and WooCommerce is unable to get database information.
```
2019-06-28 17:57:54 -03:00
Rodrigo Primo f3b0d755fd Correct singular form usage in class-wc-admin-report.php
For more information see https://github.com/woocommerce/woocommerce/issues/24004
2019-06-27 11:03:35 -03:00
Rodrigo Primo 3f2cacb1be Use phpcbf to fix phpcs violations in class-wc-admin-report.php 2019-06-27 10:48:31 -03:00
Gerhard Potgieter 698625ce1d WP & PHP Upgrade Notices (#23975)
This commit introduces a banner that notifies and prompts users to upgrade their WordPress and/or PHP if they are outdated and not part of the minimum required versions going into WooCommerce 3.7.

* Add backward compatible function wp_check_php_version for sites running WP version smaller than 5.1

* Refactor some messaging, move widget to top of WC dashboard widgets, add buttons linking out to WP pages with instructions.

* Add missing variables for adding nag class

* Add styling to dashboard widget

* Rework css to use exclamation instead

* Clean up widget, make sure no widget is registered when dismissed. Add banner that links to widget and make it dismissable.

* Update constant to reflect minimum requirements.

* Don't show banner. Fix undefined variable.

* Remove dashboard widget

* Update banner link to docs site

* Add link to docs page where instructions live for updating

* Change button text

* Add UTM params to docs link

* Moved the msg logic from template to php file.

* Bail out early when PHP and WP versions are ok.

* Added missing translation functiog

* Extracted notice function from reset_admin_notices.

To follow suit with other similar functions in the file.

* Synchronize fetching of WP version.

* Removed unused functions.

* Corrected indent.

* Reduce number of variables and fixed coding standards

* Updated wording of the notice.
2019-06-26 14:09:20 -03:00
Mike Jolley a0a58cfb15 update from master 2019-06-26 15:26:47 +01:00
Claudio Sanches 45f1ac63e0
Merge pull request #23935 from malviyaritesh/fix/23931-sale-tooltip
Change misleading tooltip for product sale meta box
2019-06-24 12:35:04 -03:00
Claudio Sanches c04f7b79f9
Merge pull request #23919 from woocommerce/fix/codex-memory-limit-link
Updated documentation about increasing memory allocated to php
2019-06-24 12:12:11 -03:00
Mike Jolley ed0a4aae1f update shipping saving in setup wizard 2019-06-21 13:59:51 +01:00
Mike Jolley 3a1c401a5b update status report 2019-06-21 13:59:40 +01:00
Mike Jolley 5b105d0c7f Init the API and add to status report 2019-06-21 13:40:53 +01:00
Claudio Sanches 02aafa1948
Merge pull request #23911 from woocommerce/update/23887
Update auto username generation description
2019-06-19 20:22:02 -03:00
Claudio Sanches 569e8a5b8f
Merge pull request #23925 from webdados/patch-2
Display Status > Logs timestamp with the Y-m-d H:i:s format
2019-06-19 19:11:13 -03:00
rmalviya 4190e9fd4b Add missing post_type=product in url
Show Products->Categories active when clicked on "Make Default" link
under any product category and fix #23923.
2019-06-14 12:28:08 +05:30
rmalviya 0e896f82fa Change misleading tooltip for product sale meta box
Clarify the sale start and end time by changing the tooltip for
product sale price dates and fix #23931.
2019-06-14 11:12:54 +05:30