Claudio Sanches
1e6785f758
Introduced filter to prevent adjust product stock
2019-07-31 17:37:33 -03:00
David Stone
83d789ffba
Restore translators comment
2019-07-31 12:58:37 -06:00
Gerhard Potgieter
9709382f31
Merge pull request #24213 from woocommerce/update/3-7-beta-tweaks
...
Deprecate instead of remove
2019-07-29 13:18:26 +02:00
Gerhard
4fa1e7d431
Only remove
2019-07-29 11:53:15 +02:00
Gerhard
978f0ef88d
Add backward compatible functionality to the new table if maybe_remove_tax_class_rates happens to get called.
2019-07-29 10:56:13 +02:00
Frédéric Demarle
0fa582a25f
Coding standards
2019-07-26 13:40:13 +02:00
Frédéric Demarle
e3dd09d021
Fire related actions when deleting all product variations
2019-07-26 11:55:30 +02:00
David Stone
487b38e0ae
Use two different filters instead to avoid unexpected behavior
2019-07-24 16:54:51 -06:00
Gerhard Potgieter
ba517650a1
Merge pull request #24178 from james-allan/deprecate_before_quantity_zero_action
...
Deprecate the `woocommerce_before_cart_item_quantity_zero` action
2019-07-22 14:38:40 +02:00
Gerhard Potgieter
1a3e9a668f
Merge pull request #24173 from woocommerce/fix/order-create-track
...
[Beta fix] Return early if post status is `auto-draft` to prevent fatal.
2019-07-22 14:36:44 +02:00
Gerhard
e586379c3c
Delete woocommerce_tax_classes option after transfering it to the new tax class table.
2019-07-22 14:16:17 +02:00
Gerhard
0e316c238d
Add back WC_Tax::maybe_remove_tax_class_rates removed in #23093 and deprecate it instead.
2019-07-22 14:11:11 +02:00
David Stone
db089c3f9d
Only use default message to avoid showing too much information to user
2019-07-19 15:37:10 -06:00
Claudio Sanches
94d0516ba2
Fixed translator notation
2019-07-19 13:29:38 -03:00
Jaden
83a3c2362a
Fix Missing Translation for Subtotal
2019-07-19 12:53:59 +00:00
MahdiY
040a617cd1
Add filter hook to get zone criteria
2019-07-19 09:35:04 +04:30
Claudio Sanches
488eefd7ec
Don't allow before before_woocommerce_init
2019-07-18 23:43:32 -03:00
Claudio Sanches
fd42c439f9
Prevent run wc_load_cart() before woocommerce_loaded
2019-07-18 23:34:13 -03:00
Rodrigo Primo
0e317ac82e
Only add the image node to structured data if product has image
...
This commit adds a check to verify if a given product has a image before
adding the image node to the structured data output. If there is no
image, the image node should be omitted instead of display with `false`
as its value.
2019-07-18 10:24:42 -03:00
James Allan
dd47170c7d
Deprecate the woocommerce_before_cart_item_quantity_zero action
...
This action was removed in 921cc754b9
.
It will need to be deprecated so third-parties are made aware the new alternative.
2019-07-18 11:18:21 +10:00
David Stone
b2e262f6cc
Add more specific errors for all product type which are unpurchasable
2019-07-16 17:14:02 -06:00
vedanshujain
6ab03e6acd
Return early if post status is `auto-draft` to prevent fatal.
...
While creating an order, if we remove an item after adding, `pre_post_update` hook gets called. Since the order is not created yet, `$order->get_date_created()` will be null, and this will cause a fatal in the event tracker which checks for and tracks edit in order created date.
We now return early when order status is `auto-draft` to prevent these kind of errors.
2019-07-17 00:21:18 +05:30
David Stone
50d9c73809
Add more specific reason for why products cannot be purchased so plugin can custimize these messages
2019-07-16 12:49:50 -06: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
Claudio Sanches
1f77efae4b
Don't use WP_REST_Server::get_raw_data() inside REST API endpoints
2019-07-15 13:30:17 -03:00
Claudio Sanches
eac2d39edf
Better naming for REST API endpoints
2019-07-15 13:19:03 -03:00
Claudio Sanches
3fd0eb7391
Merge branch 'add/wccom-site-rest-api' of github.com:woocommerce/woocommerce into add/wccom-site-rest-api
2019-07-15 13:13:53 -03:00
Claudio Sanches
396bbe4cf5
Fixed doc blocks and coding standards
2019-07-15 13:13:16 -03:00
Akeda Bagus
3f9bbf5a3b
Replace __DIR__ with WC_ABSPATH.
2019-07-15 23:07:34 +07:00
Claudio Sanches
d339a29468
Fixed standards
2019-07-15 12:58:41 -03:00
Claudio Sanches
73f27d030b
Use trailingslashit
2019-07-15 12:57:16 -03:00
Akeda Bagus
c8812a205b
Add helper method get_authorization_header.
...
This to support scenario in which HTTP_AUTHORIZATION being stripped
and use getallheaders as a fallback. This helper method is copied from
class-wc-rest-authentication.php.
2019-07-15 22:47:07 +07:00
Akeda Bagus
47db7588d7
Use hash_equals when checking access_token.
2019-07-15 22:03:31 +07:00
Akeda Bagus
0ffd4db630
Move authentication to WCCOM Site API to wccom-site main class.
2019-07-15 21:59:48 +07:00
Akeda Bagus
20325f2db6
Remove duplicate state download_link in favor of download_url.
2019-07-15 21:41:53 +07:00
Akeda Bagus
0891e0c85f
Remove extra docblock line.
2019-07-15 18:45:50 +07:00
Akeda Bagus
45bf842ea3
Add @ since tag.
2019-07-15 18:44:51 +07:00
Akeda Bagus
284239ee44
Replace SERVER['REQUEST_URI'] in favor of add_query_arg.
2019-07-15 18:28:33 +07:00
Peter Fabian
1e43a2f9e3
Merge pull request #24145 from woocommerce/add/new-cart-hooks
...
New hooks for cart and minicart templates
2019-07-15 12:22:31 +02:00
Peter Fabian
f230452caf
Merge pull request #24146 from woocommerce/fix/get_formatted_shipping_address
...
WC_Order::get_formatted_shipping_address refactor
2019-07-15 11:53:59 +02:00
Peter Fabian
cb9d94ed9b
Merge pull request #24147 from woocommerce/revert-23705-fix/23696
...
Revert "Prevent negative prices on products"
2019-07-15 11:28:25 +02:00
Akeda Bagus
f51265e58d
Add @since tag.
2019-07-15 15:42:36 +07:00
Akeda Bagus
59a5c6d754
Disable few phpcs rules instead of all.
2019-07-15 15:17:40 +07:00
Gerhard Potgieter
043fd478bc
Merge pull request #23687 from rekkitatu/master
...
Delete guest cart session if user logs in, solves #23686
2019-07-15 09:54:39 +02:00
Gerhard Potgieter
7c0d0251ee
Merge pull request #23883 from woocommerce/add/new-edit-order-tracks
...
Track more events on the edit order screen for future design validation.
2019-07-15 09:36:01 +02: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
Gerhard Potgieter
52f1eb4060
Revert "Prevent negative prices on products"
2019-07-15 08:50:11 +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
556a238dfb
Merge pull request #24021 from AndyMardell/feature/allow-notice-type-changes
...
Allow notice type changes when updating cart contents
2019-07-14 21:06:20 +02:00
Gerhard
fe2d46799f
This PR reworks the intention of #23859 which causes failing unit tests due to $this->get_address( 'shipping' ) always returning an array even when no shipping address is present.
2019-07-14 20:34:30 +02:00
Gerhard Potgieter
6693b44a98
Merge pull request #23859 from RistoNiinemets/master
...
Allow filtering formatted shipping address
2019-07-14 20:24:44 +02: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
Gerhard
6e4e818170
Introduce woocommerce_widget_shopping_cart_subtotal function and move minicart template subtotal to use it. New woocommerce_before_cart_collaterals, woocommerce_widget_shopping_cart_total and woocommerce_widget_shopping_cart_after_buttons actions for making the cart and mini cart templates more flexible without having to override it.
2019-07-14 19:27:42 +02:00
Gerhard Potgieter
60b385ea93
Merge pull request #23268 from Spreeuw/patch-8
...
store tax rate percent in tax line items
2019-07-14 18:42:10 +02:00
Tatu
ed7f98a584
Coding standards fix
2019-07-12 23:18:29 +03:00
Tatu
d9254cedb2
Prevent conflict with multiple logged in users
...
Previous code would delete the session of previously logged in user in the rare case that multiple users would be logged in on the same browser. Added check to see if there is user account exists with the old_session_key and if not then the old session is from a guest user which can be deleted from database during logging in. Also returned old_session_key as optional parameter to prevent issues.
2019-07-12 22:53:01 +03:00
Claudio Sanches
77191a97f8
Merge pull request #23705 from woocommerce/fix/23696
...
Prevent negative prices on products
2019-07-12 12:56:34 -03:00
Claudio Sanches
78702ca423
Fixed docblock
2019-07-12 12:56:04 -03:00
Claudio Sanches
60c18ce544
Merge pull request #23067 from woocommerce/pr/23043
...
Allow matching of "any" attributes in find_matching_product_variation…
2019-07-12 12:40:53 -03:00
Claudio Sanches
3b9b186035
Merge pull request #24140 from woocommerce/fix/jetpack-tracks-id
...
Fix namespaced Jetpack tracks_get_identity
2019-07-12 12:35:40 -03:00
Marcin Bot
bd9961703b
Fix namespaced Jetpack tracks_get_identity
2019-07-12 15:35:49 +01:00
Rodrigo Primo
f21723f17a
Merge pull request #23402 from bekarice/tweak/update-paying-customer
...
Tweak: update paying customer information on payment complete
2019-07-12 10:15:21 -03: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
Tatu
c52e7bd75a
Dropped redundant persistent cart check code
...
Changing the not equal check between current_user_id and old_session_key to loose type allowed leaving out persistent cart related check.
2019-07-11 23:40:56 +03:00
Ewout Fernhout
0b69a19401
coding standard
2019-07-11 17:21:56 +02:00
Ewout Fernhout
8b51f55856
remove unused variable
2019-07-11 16:11:14 +02:00
Ewout Fernhout
324ac63376
code readability
2019-07-11 15:56:36 +02:00
Ewout Fernhout
1a7955d8f5
default tax rate percent to null
2019-07-11 15:56:28 +02:00
Ewout Fernhout
40a1f268f1
fix setting rate percent in checkout
2019-07-11 15:56:02 +02:00
Rodrigo Primo
52ecc2f357
Merge pull request #24056 from woocommerce/fix/obw-tracks-events
...
OBW: Fix event recording in OBW
2019-07-11 10:00:22 -03:00
Akeda Bagus
fc7cacb711
Fix coding standard issues.
2019-07-11 19:58:16 +07:00
Ewout Fernhout
6fe857f718
Merge remote-tracking branch 'origin/master' into patch-8
2019-07-11 14:44:39 +02:00
Akeda Bagus
e1743bfadb
Remove extra new line.
2019-07-11 18:22:39 +07:00
Akeda Bagus
40201eb9c3
Register wccom-site rest in main class.
...
With API moved to its own package (see #23957 ), controllers for wccom-
site namespace are now registered in wccom-site main class.
2019-07-11 18:19:08 +07:00
Akeda Bagus
5756766a03
Reset current_step state when installing.
2019-07-11 16:01:53 +07:00
Akeda Bagus
7d07e70958
Adjust products parameter so it can pass installation args.
2019-07-11 16:01:53 +07: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
0f2e22de9a
Add docblock in controller class.
2019-07-11 15:59:10 +07:00
Akeda Bagus
a41b66c602
Rename helper to wccom-site.
2019-07-11 15:59:10 +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
a6e089e47b
Use WP_REST_Server::get_raw_data to get body from the request.
2019-07-11 15:58:03 +07:00
Akeda Bagus
4cf69e350e
Rename filename for helper REST API controller.
2019-07-11 15:55:16 +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
0f5a33d543
Add authentication for helper request.
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
Beka Rice
3c2e3cc9aa
Only set paying customer prop when required
2019-07-10 18:36:43 -04: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
Claudio Sanches
22726bd74d
Merge pull request #24120 from woocommerce/fix/24110
...
add filter for product import image separator
2019-07-10 14:30:34 -03:00
Ron Rennick
71d7f2c1bb
remove trailing space
2019-07-10 14:01:38 -03:00
Gerhard Potgieter
2734b190c1
Merge pull request #23881 from ionutcalara/master
...
Update find matching variation method inner query
2019-07-10 15:53:30 +02:00
Gerhard Potgieter
49adf8169b
Merge pull request #23672 from woocommerce/fix/23366-2
...
Auto generate usernames when a username is blacklisted by WP
2019-07-10 15:44:44 +02:00
Gerhard Potgieter
9ca6dad11e
Merge pull request #23433 from justlevine/master
...
Preserve State field input classes when selecting a Country.
2019-07-10 15:31:39 +02:00
Ron Rennick
64476263b8
add filter for product import image separator
2019-07-10 09:13:05 -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
Gerhard
98c24b1090
Merge branch 'master' into pr/23043
2019-07-10 10:34:52 +02:00
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
08d301779b
Set max index length for slug in tax class table
2019-07-09 17:59:16 -03:00
Andy Mardell
9d4e7f2e12
Rename filters
2019-07-09 21:22:41 +01: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
Claudio Sanches
6e6ca196f9
Merge branch 'master' into fix/23340
2019-07-09 16:32:43 -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
Rodrigo Primo
2827b57060
Merge pull request #23785 from woocommerce/update/14361
...
Use WP 5.0 determine_locale() function
2019-07-09 15:46:47 -03:00
Claudio Sanches
da00ef76cc
Merge pull request #24111 from alerobertson/add/tag-operator-shortcode
...
Add tag_operator to products shortcode
2019-07-09 15:37:43 -03:00
Claudio Sanches
6c0ef10016
Do not save create taxes with empty names
2019-07-09 15:26:07 -03:00
Claudio Sanches
56240c9633
Prevent saving empty tax classes into the database
2019-07-09 15:23:46 -03:00
Claudio Sanches
b178f1be1f
Set initial tax classes
2019-07-09 15:13:02 -03:00
Claudio Sanches
1425b0c3b6
Crate tables before create options
2019-07-09 15:12:34 -03:00
Claudio Sanches
958a970255
Include missing wc_tax_rate_classes in WC_Install::get_tables
2019-07-09 15:02:07 -03:00
Rodrigo Primo
34e5018137
Merge pull request #23262 from woocommerce/fix/23257
...
CSV Import - check if sku or id column exists when updating products from csv
2019-07-09 14:25:03 -03:00
alerobertson
b7ab7b81c9
Add tag_operator to products shortcode
...
Allow user to decide how products are filtered by tag, instead of defaulting to IN
2019-07-09 13:06:35 -04:00
Claudio Sanches
92253ea862
Merge pull request #23773 from woocommerce/fix/23744
...
PayPal pass billing address when shipping address option disabled
2019-07-09 12:48:07 -03:00
Claudio Sanches
32996d2fdd
Merge branch 'master' into pr/23043
2019-07-09 12:39:40 -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
Diego
f95f73c548
Added arguments to filter `woocommerce_ajax_order_item`
2019-07-09 13:31:47 +01:00
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
Gerhard Potgieter
a7b6d7bfa4
Merge pull request #24024 from woocommerce/fix/23917/code
...
Round late when rounding at subtotal to reduce rounding error.
2019-07-09 11:05:40 +02:00
Gerhard Potgieter
013ee83b47
Merge pull request #23189 from woocommerce/tracks/coupons
...
Tracks: Add coupons view events
2019-07-09 11:04:43 +02:00
Gerhard
7038c73ab4
Merge branch 'master' into update/exclude-compiled-assets-from-git
2019-07-09 10:57:40 +02:00
Claudio Sanches
01f5a09d27
Merge pull request #23338 from woocommerce/update/23335
...
More useful actions in during CRUD save events
2019-07-08 18:56:14 -03:00
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