Rodrigo Primo
36f691e7de
Merge pull request #24615 from yash-webkul/patch-4
...
Added escaping.
2019-09-23 12:20:41 -03:00
Ben S
2888278601
Info no-transform
2019-09-18 17:10:11 +02:00
Ben S
1ee48bb7d4
Prevent browser cache when using back/forward buttons
2019-09-18 16:52:52 +02:00
Ayesh Karunaratne
eec96d367c
Fix a typo in WC Payment Gateway abstract '3rd party gateway size'
2019-09-18 10:22:16 +05:30
Towhidul Islam
0d54a139fc
fixed some typos
2019-09-15 21:41:27 +06:00
Towhidul Islam
780584230a
use `esc_html__` instead of `esc_html`
2019-09-15 21:27:49 +06:00
Nikhil Chaudhary
951c57ada1
Update class-wc-meta-box-product-images.php
...
Added escaping function where required.
2019-09-14 09:13:48 +05:30
Yash Kapoor
df8c0855a4
Added escaping.
2019-09-11 15:37:39 +05:30
Yash Kapoor
5c1a64026a
Fixed escaping function.
2019-09-11 15:12:34 +05:30
Yash Kapoor
e8c6fd272b
Added escaping.
2019-09-11 15:06:00 +05:30
Yash Kapoor
6ed6a753db
Fixed escaping in class-wc-admin-dashboard.php
2019-09-11 15:02:10 +05:30
Yash Kapoor
07ce4b9e1c
Fixed escaping.
2019-09-11 14:53:52 +05:30
Nikhil Chaudhary
fe43184455
Update abstract-wc-legacy-order.php
...
Added escaping
2019-09-10 10:40:16 +05:30
itzmekhokan
5a54c87c55
Fixed issue #24588
2019-09-07 12:23:33 +05:30
Rodrigo Primo
fe2ec80b18
Merge pull request #24546 from woocommerce/fix/24534
...
Fixed markup in Storefront banner
2019-09-06 12:11:03 -03:00
Rodrigo Primo
2ed006585c
Merge pull request #24564 from woocommerce/update/cldr
...
Declare support to Unicode CLDR recommendation
2019-09-06 12:05:14 -03:00
Claudio Sanches
d13d6543f7
Merge pull request #24451 from woocommerce/add/in-app-connect
...
Add support to allow connect and install for in-app purchase flow.
2019-09-03 21:33:39 -03:00
Claudio Sanches
3dec01ce38
Include note about follow Unicode CLDR recommendation
2019-09-03 12:46:44 -03:00
vedanshujain
6f2d64dcb4
Check for max discount to be -ve to prevent overwriting fee.
...
When we refund fee and some other line item whose value is more than fee in a single requst, value of line item will overwrite refund fee.
This is because where we check to make sure that we do not discount more than total possible value (to prevent negative total), we do not account for the fact that sometimes the cart could contain refund items. In those cases max_discount * -1 will always be larges then fees total.
This commit adds a check to make sure that max discount * -1 is indeed negative before overwriting fee total.
2019-09-03 20:45:33 +05:30
itzmekhokan
dcf3d71c79
Fixed issue #24458
2019-09-02 12:40:44 +05:30
Claudio Sanches
0ea56e0bab
Fixed coding standards
2019-08-30 14:33:59 -03:00
Claudio Sanches
49af62ba8b
Allow some HTML markup on addons banner
2019-08-30 14:29:08 -03:00
Claudio Sanches
282d6073ff
Fixed add to cart link for simple products on feed
2019-08-30 14:22:28 -03:00
Claudio Sanches
e814105728
Prefer wc_get_checkout_url() instead of wc_get_page_permalink( 'checkout' )
2019-08-30 13:06:50 -03:00
Claudio Sanches
90a7057a88
Updated docblock
2019-08-30 12:46:52 -03:00
Claudio Sanches
2e53447ea3
Applied new method into WC_Payment_Tokens and updated filter name
2019-08-30 12:43:56 -03:00
Claudio Sanches
e9978cfa77
Fixed coding standards
2019-08-30 12:40:50 -03:00
Claudio Sanches
f32da45b7e
Introduced WC_Payment_Tokens::get_token_class
2019-08-30 12:40:13 -03:00
Rodrigo Primo
b1c9243c1e
Merge pull request #24505 from webdados/patch-2
...
wc_mail returning the same as $mailer->send
2019-08-30 10:08:25 -03:00
Rodrigo Primo
e7b8e3ed7b
Fix typo in order note
...
PR #24501 fixed a typo in a order note string. This commit fix the same
problem in another place where the same string is used.
2019-08-30 10:01:55 -03:00
Nikhil Chaudhary
47e3f9bd3b
Update html-admin-page-status-report.php
...
Added the missing post type count section.
2019-08-30 11:46:04 +05:30
itzmekhokan
a21c18ee9c
Fixed coding standards for this comment.
2019-08-30 07:35:17 +05:30
Claudio Sanches
a7cd0c1fff
Fixed incorrect docs URL for failed order emails
2019-08-29 17:31:10 -03:00
Claudio Sanches
df887bccc8
Merge pull request #24518 from pinalj/master
...
Add new hook for add-order-item
2019-08-29 16:48:13 -03:00
Claudio Sanches
9bb72ecf34
Merge pull request #24529 from nikhil-webkul/patch-2
...
Update class-wc-admin-duplicate-product.php
2019-08-29 16:46:42 -03:00
Marco Almeida
1df96da7f8
Replace wc_get_page_permalink( 'cart' ) with wc_get_cart_url()
2019-08-29 08:49:11 +01:00
Marco Almeida
238e0f2337
Replace wc_get_page_permalink( 'cart' ) with wc_get_cart_url()
2019-08-29 08:47:31 +01:00
Marco Almeida
80c2ecd692
Replace wc_get_page_permalink( 'cart' ) with wc_get_cart_url()
2019-08-29 08:46:25 +01:00
Marco Almeida
4800fda66c
Replace wc_get_page_permalink( 'cart' ) with wc_get_cart_url()
2019-08-29 08:45:41 +01:00
Marco Almeida
7dc5f0d4c1
Replace wc_get_page_permalink( 'cart' ) with wc_get_cart_url()
2019-08-29 08:43:42 +01:00
Pinal
7418ed123f
Hook name changes
...
Updated the hook name as suggested.
2019-08-29 12:42:33 +05:30
Nikhil Chaudhary
f2f0db602b
Update class-wc-admin-duplicate-product.php
...
Add escaping where required.
2019-08-29 12:39:09 +05:30
itzmekhokan
c572d26170
Fixed wordpress coding standard
2019-08-29 10:25:32 +05:30
itzmekhokan
5234b85144
Fixed issue #24430
2019-08-28 22:25:14 +05:30
Claudio Sanches
386e4e6e7a
Merge pull request #24485 from woocommerce/php-7.4
...
Remove call to get_magic_quotes_runtime() as it is deprecated as of PHP 7.4
2019-08-28 12:53:02 -03:00
Claudio Sanches
e545833c0a
Merge pull request #24524 from yash-webkul/patch-22
...
Update html-variation-admin.php
2019-08-28 12:51:58 -03:00
Claudio Sanches
866a48db00
Merge pull request #24523 from yash-webkul/patch-21
...
Update class-wc-admin-addons.php
2019-08-28 12:45:24 -03:00
Claudio Sanches
ec1ba8db9c
Merge pull request #24522 from yash-webkul/patch-20
...
Update html-admin-page-addons.php
2019-08-28 12:45:06 -03:00
Claudio Sanches
0453cca9fd
Merge pull request #24521 from yash-webkul/patch-18
...
Update class-wc-admin-setup-wizard.php
2019-08-28 12:44:29 -03:00
Yash Kapoor
be141f3231
Update html-variation-admin.php
...
Fixed escaping function for attribute value.
2019-08-28 19:43:02 +05:30
Yash Kapoor
84d2fb7df5
Update class-wc-admin-addons.php
...
Fixed escaping function for attribute value.
2019-08-28 19:31:58 +05:30
Yash Kapoor
18208163d6
Update html-admin-page-addons.php
...
Fixed escaping function for attribute value.
2019-08-28 19:26:36 +05:30
Yash Kapoor
83b5450ceb
Update html-admin-page-shipping-zone-methods.php
...
Fixed escaping function for attribute values.
2019-08-28 19:23:01 +05:30
Yash Kapoor
6443515064
Update class-wc-admin-setup-wizard.php
...
Fixed escaping function for attribute values.
2019-08-28 19:16:24 +05:30
Pinal
e47f835f7a
Add new hook for add-order-item
...
Added a new hook for validations in the add_order_item() called in
WC->Orders->Add/Edit Orders.
Allow plugins to perform validations/changes to the order before a
product is added the order.
2019-08-28 17:30:24 +05:30
Marco Almeida
788893bafa
Update wc-core-functions.php
...
Add docblock about @return
2019-08-27 22:33:32 +01:00
Miguel Pinto
60ac27ba3e
Update class-wc-gateway-paypal-response.php
2019-08-27 22:30:33 +01:00
Claudio Sanches
cdd03f5f48
Merge pull request #24478 from marccoup/master
...
Fixed incorrect page setting id
2019-08-27 17:52:18 -03:00
Claudio Sanches
06a341df65
Merge pull request #24474 from mohsinrasool/fix/24461
...
Fix/24461
2019-08-27 17:47:09 -03:00
Claudio Sanches
0ea70c095e
Merge pull request #24464 from yash-webkul/patch-3
...
Update wc-template-functions.php
2019-08-27 17:19:06 -03:00
Claudio Sanches
6f2b91ab8e
Merge pull request #24481 from yash-webkul/patch-17
...
Update html-product-csv-import-form.php
2019-08-27 17:16:40 -03:00
Marco Almeida
14e3d762f7
wc_mail returning the same as $mailer->send
...
When using wc_mail, third-party developers should be able to get the value from $mailer->send so that can take measures if it returns false.
Closes #24504
2019-08-26 19:52:37 +01:00
Mithu A Quayium
fa62be3fa1
Typo fix in line: 428
...
The string "Payment could not captured" in line:428 should be "Payment could not be captured" instead, since it is appropriate grammatically.
2019-08-26 11:32:40 +06:00
Rodrigo Primo
1f69fbcf33
get_magic_quotes_runtime() is deprecated as of PHP 7.4
...
Remove call to get_magic_quotes_runtime() as this function is deprecated
as of PHP 7.4 (see https://wiki.php.net/rfc/deprecations_php_7_4 ). This
part of the code was only needed for PHP <= 5.3 and this version is not
supported anymore by WooCommerce.
2019-08-23 15:58:13 -03:00
Rodrigo Primo
0128a0686b
Merge pull request #24396 from woocommerce/fix-implode-parameter-order
...
Use correct parameter order for implode.
2019-08-23 11:14:50 -03:00
Rodrigo Primo
444dffdda2
Merge pull request #24391 from woocommerce/fix-hex-is-light
...
Fix typo in function_exits check so function can be properly overridden
2019-08-23 11:14:07 -03:00
Rodrigo Primo
d89e0cee84
Merge pull request #24176 from woocommerce/fix/issue-23750
...
Add more specific reason for why products cannot be purchased so plug…
2019-08-23 11:13:31 -03:00
Rodrigo Primo
e09b285a5a
Merge pull request #24460 from woocommerce/fix-braces-notice
...
Use brackets instead of braces to avoid deprecation notice in PHP 7.4
2019-08-23 11:11:55 -03:00
Yash Kapoor
9517cd7877
Update html-product-csv-import-form.php
...
Fixed line indentation issue on line no 52.
2019-08-23 18:22:28 +05:30
Yash Kapoor
ef2d38097d
Update html-product-csv-import-form.php
...
Fixed escaping issue.
2019-08-23 18:04:52 +05:30
Yash Kapoor
9eed3757ae
Update html-product-csv-import-form.php
...
Fixed escaping issue.
2019-08-23 18:03:59 +05:30
Yash Kapoor
c3c91298b5
Update html-product-csv-import-form.php
...
Fixed data-showtext value.
2019-08-23 17:18:01 +05:30
Marc Coupland
bc42517c1a
Fixed incorrect page setting id
2019-08-23 11:16:29 +01:00
Mohsin Rasool
ad21e90ddd
Changed 'action-scheduler' to 'woocommerce'
...
Changed 'action-scheduler' to 'woocommerce'
2019-08-23 01:01:01 +05:00
Mohsin Rasool
85cfcca188
Changing 'action-scheduler' domain to 'woocommerce'
...
Changing 'action-scheduler' domain to 'woocommerce'
2019-08-23 00:59:10 +05:00
Vedanshu Jain
5d1a70bfcc
Merge pull request #24450 from woocommerce/fix/24405
...
Remove Emoji from default additional email content
2019-08-22 21:52:54 +05:30
Rodrigo Primo
6ddbd2f9e1
Merge pull request #24469 from mohit-webkul/patch-2
...
Update html-admin-page-addons.php
2019-08-22 09:55:37 -03:00
Rodrigo Primo
180f260f7f
Merge pull request #24468 from yash-webkul/patch-14
...
Update html-oauth-start.php
2019-08-22 09:52:35 -03:00
Rodrigo Primo
91501175d5
Merge pull request #24466 from mohit-webkul/patch-1
...
Update class-wc-admin-menus.php
2019-08-22 09:50:51 -03:00
Rodrigo Primo
14ca7805f3
Merge pull request #24467 from yash-webkul/patch-13
...
Update class-wc-admin-setup-wizard.php
2019-08-22 09:49:03 -03:00
Yash Kapoor
c3791673ef
Update class-wc-admin-setup-wizard.php
2019-08-22 17:14:34 +05:30
Mohit Verma
71db4b4068
Update html-admin-page-addons.php
...
Added alt tag translation.
2019-08-22 17:01:08 +05:30
Yash Kapoor
478f8eae17
Update html-oauth-start.php
...
Added translation.
2019-08-22 16:47:01 +05:30
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
Yash Kapoor
e4456144f9
Update wc-template-functions.php
2019-08-22 12:35:38 +05:30
Yash Kapoor
bd6c7cfb13
Update wc-template-functions.php
...
Fixed spelling of woocommerce_gallery_thumbnail_size
2019-08-22 12:10:54 +05:30
Yash Kapoor
b6e0c0308b
Update class-wc-shipping.php
...
Fixed spelling of WooCommerce.
2019-08-22 11:57:27 +05:30
David Stone
7a7151bd44
Use brackets s instead of braces to avoid deprecation notice in PHP 7.4
2019-08-21 16:32:23 -06:00
Rodrigo Primo
58618caeb9
Merge pull request #24375 from itzmekhokan/add/woocommerce_shipping_show_shipping_calculator
...
Added a filter for reposition shipping calculator
2019-08-21 17:08:48 -03:00
Rodrigo Primo
524fe5a4d5
Merge pull request #24384 from woocommerce/fix/24368
...
Check if order exists before create downloads hash
2019-08-21 16:56:14 -03:00
Rodrigo Primo
c3262eea3e
Merge pull request #24385 from woocommerce/fix/24356
...
Ensure WC_Product_Data_Store_CPT::is_existing_sku() return boolean
2019-08-21 16:52:13 -03:00
Rodrigo Primo
9c9715ac8d
Merge pull request #24435 from strayobject/fix-show-error-in-myaccount-when-order-missing
...
fix: show error message in myaccount if order does not exist.
2019-08-21 16:29:10 -03:00
Rodrigo Primo
5392463dd2
Merge pull request #24438 from woocommerce/fix/24431
...
Fixed Namibian currency symbol
2019-08-21 16:27:21 -03:00
Rodrigo Primo
fdca2b8323
Merge pull request #24437 from woocommerce/tweak/load-order-twice
...
Prevent load order twice
2019-08-21 16:26:40 -03:00
Rodrigo Primo
bfc469123f
Merge pull request #24441 from woocommerce/fix/24416
...
[Tracker] Prevent PHP warning when order date is empty
2019-08-21 16:14:49 -03:00
Rodrigo Primo
147307f1e6
Merge pull request #24442 from woocommerce/fix-error-log-notice
...
Check if error_get_last() is not null
2019-08-21 15:36:55 -03:00
Claudio Sanches
2c02d21277
Remove Emoji from default additional email content
2019-08-20 11:54:21 -03:00
Daniël van der Linden
0c885b8c24
Fix typo webhopk -> webhook in WC_Webhook
2019-08-20 08:43:50 +02:00
Nico Hauser
5c84557984
Updated filter name
2019-08-20 08:05:19 +02:00
David Stone
1c47315b89
Fix trying to access array offset on a boolean notice
2019-08-19 20:11:43 -06:00
Claudio Sanches
8a278d3d96
Fixed coding standards
2019-08-19 20:42:42 -03:00
Claudio Sanches
6bc080fef0
Prevent PHP warning when date is null
2019-08-19 20:41:30 -03:00
Claudio Sanches
e50953bc24
Fixed Namibian currency symbol
2019-08-19 19:40:19 -03:00
Claudio Sanches
4b45905f18
Prevent load order twice
2019-08-19 18:19:36 -03:00
Michal Zdrojewski
b2e9584a53
fix: show error message in myaccount if order does not exist.
2019-08-19 16:47:17 +01:00
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
Nico Hauser
5291767228
Add new filter in addition to existing action
...
Currently there is no way to change the data fed into the importer. An example use of it is the following filter:
add_filter('woocommerce_product_import_before_process_item', "product_import_before_process_item", 10, 1);
function product_import_before_process_item($data){
//modify the data before importing e.g. prevent inserting an empty name!
foreach($data as $key => $value){
if(isset($data[$key]) && empty($value)){
unset($data[$key]);
}
}
return $data;
}
2019-08-15 22:00:31 +02:00
Jonathan Moore
d88fdb6adf
add $this param to woocommerce_email_additional_content_
...
add $this param to woocommerce_email_additional_content_ filter to be consistent with 'woocommerce_email_subject_' . and 'woocommerce_email_heading_' . filters.
2019-08-14 08:02:04 +01:00
David Stone
d685964df6
Use correct parameter order for implode. Solves deprecation notice in PHP 7.4
2019-08-13 13:03:09 -06:00
David Stone
3a74d03705
Fix typo in function_exits check so function can be properly overridden
2019-08-12 16:55:08 -06:00
Gerhard
5a1615a152
PHPCS fix
2019-08-12 20:26:34 +02:00
Rodrigo Primo
f687412acd
Merge pull request #24353 from woocommerce/fix/24334
...
Avoid PHP notice when getting order item type
2019-08-12 14:11:41 -03:00
Claudio Sanches
66dbb44100
Ensure WC_Product_Data_Store_CPT::is_existing_sku() return boolean
2019-08-12 12:45:43 -03:00
Claudio Sanches
8ef99cf1de
Check if order exists before create downloads hash
2019-08-12 12:18:35 -03:00
Yash Kapoor
5b9b67ace1
Make matched shipping zone notice translatable ( #24366 )
...
* Update class-wc-shipping.php
Added translation.
* Update class-wc-shipping.php
Added translation.
* Update class-wc-shipping.php
Fixed phpcs error.
* Update class-wc-shipping.php
2019-08-12 10:32:44 -03:00
itzmekhokan
148f22ac1d
Added a filter for reposition shipping calculator
2019-08-10 19:22:32 +05:30
Claudio Sanches
1b2b9d528a
Fixed Netherlands postcode formatting ( #24284 )
...
* Fixed Netherlands postcode formatting
Trim all spaces, fixes issues when postcode is empty.
* Always trim spaces
* Updated unit test for test_wc_format_postcode()
2019-08-09 15:00:40 -03:00
Rodrigo Primo
6c263c97b6
Merge pull request #24239 from Chouby/fix/delete_variations_actions
...
Fire related actions when deleting all product variations
2019-08-08 16:47:39 -03: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
Rodrigo Primo
353945f638
Merge pull request #23384 from CasperBraske/CasperBraske-patch-1
...
Moved HTML from widget code to template file
2019-08-08 15:46:45 -03:00
Rodrigo Primo
3039d84736
Merge pull request #24336 from shoheitanaka/patch-16
...
Update address setting for Japanese
2019-08-08 15:27:12 -03:00
Rodrigo Primo
638a5cfef7
Merge pull request #24351 from woocommerce/fix/duplicate-tooltip-text-emails
...
Remove duplicate tooltip text in emails additional content
2019-08-08 10:49:13 -03:00
Rodrigo Primo
b5cf46efde
Merge pull request #24199 from MahdiY/add/get-zone-criteria-filter
...
Add filter hook to get zone criteria
2019-08-08 09:56:49 -03:00
Rodrigo Primo
21418bb28b
Avoid PHP notice when getting order item type
...
This commit changes WC_Order_Item_Data_Store::get_order_item_type() to
avoid a PHP notice ("Notice: Trying to get property 'order_item_type' of
non-object") when there is no entry in the database for the order item
ID passed.
2019-08-07 18:03:26 -03:00
Gerhard
7484bd9199
Remove duplicate tooltip text
2019-08-07 17:49:38 +02:00
Julià Mestieri
d1236021bb
Added selectWoo as dependency of country-select.
2019-08-07 11:21:11 +02:00
Mahdi Yousefi
449a258781
Remove whitespace at end of line
2019-08-07 11:26:28 +04:30
Mahdi Yousefi
c2d05b1fc0
Update class-wc-shipping-zone-data-store.php
2019-08-07 08:34:14 +04:30
Shohei Tanaka
4312dc4834
add space
...
I added space
2019-08-06 21:41:16 +09:00
Gerhard
44421facfe
convert string to lowercase before checking value in wc_string_to_bool
2019-08-06 14:10:31 +02:00
Shohei Tanaka
0aa2f160a9
Update address setting for Japanese
...
Update setting for Japanese Name and postcode and Prefecture.
2019-08-06 20:10:15 +09:00
Rodrigo Primo
bccb7c3283
Merge pull request #24191 from woocommerce/fix/24188
...
Only add the image node to structured data if product has image
2019-08-05 16:45: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
Rodrigo Primo
7c776e1593
Merge pull request #24279 from woocommerce/feature/23582
...
Introduced filter to prevent adjust product stock
2019-08-02 11:58:09 -03:00
Luis
0d80af01dc
Fixing code standards violations
2019-08-02 00:10:11 -03:00
Rodrigo Primo
aa590c8acd
Merge pull request #24283 from woocommerce/fix/24240
...
Make wc_get_endpoint_url() follow WordPress permalink settings
2019-08-01 17:36:26 -03:00
Claudio Sanches
843df9c8b9
Remove %20 from strings when building a form from query strings
2019-08-01 17:24:32 -03:00
Claudio Sanches
d624bb57d5
Fixed coding standards
2019-08-01 15:56:02 -03:00
Claudio Sanches
decea3d28c
Allow sort products by "include" order
2019-08-01 15:55:32 -03:00
Rodrigo Primo
ad6d9ec8fe
Merge pull request #24282 from woocommerce/feature/24243
...
Introduced filter to change default redirect URL in wc_logout_url()
2019-08-01 15:20:09 -03:00
Jesse Pearson
009b0f030d
Sort shipping classes under products alphabetically
2019-08-01 13:07:05 -04:00
Miguel Pinto
ae4eba45ec
Update class-wc-gateway-paypal-response.php
2019-08-01 16:19:17 +01:00
Rodrigo Primo
d33505b33a
Merge pull request #24198 from woocommerce/fix/24190
...
Prevent run wc_load_cart() before before_woocommerce_init
2019-08-01 11:26:37 -03:00
Claudio Sanches
c4afd53749
Make wc_get_endpoint_url() compatible with WordPress use_trailing_slashes settings
2019-07-31 20:57:55 -03:00
Claudio Sanches
52ba85c977
Introduced filter to change default redirect url in wc_logout_url()
2019-07-31 20:35:10 -03:00
Claudio Sanches
1ece5e1310
Introduced woocommerce_sort_fees_callback filter
2019-07-31 18:31:49 -03:00
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
Miguel Pinto
77f4a3e25b
Update class-wc-gateway-paypal-response.php
2019-07-31 09:48:41 +01:00
Miguel Pinto
de978dad28
Update class-wc-gateway-paypal-response.php
2019-07-30 21:31:55 +01:00
Miguel Pinto
d7b54ccb35
Update class-wc-gateway-paypal-response.php
2019-07-30 20:56:43 +01: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
Miguel Pinto
ce4f0edc3a
Avoid duplicated process for IPN and PDT payment
...
Currently, Woocommerce is processing twice the payment when IPN and PDT notifications are enable. This mean that stock is reduced twice.
2019-07-29 09:25:30 +01: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
rspublishing
bb2c929fba
Use in woocommerce_update_product_stock_query
2019-07-25 09:31:37 +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
rmalviya
f22dbd53ff
Parse attribute_id as int not string
...
In legacy API v3 for product attribute terms, the `$attribute_id` is
received as string, but is required as int for proper handling.
Use `absint` to make sure it is a valid int id and hence fix #24160 .
2019-07-19 15:52:06 +05:30
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
Chris Eich
354b248b28
Only count orders created via checkout in held stock qty
...
Plugins may create orders without the meta tag "_created_via"="checkout" for various purposes, e.g. a balance-due order for purchases via deposit, because only the deposit order should reduce stock on checkout. The SUMO Payment Plans plugin does exactly this, but core WC handles such orders inconsistently:
- wc_get_held_stock_quantity() counts their items against held stock, but
- wc_cancel_unpaid_orders() only cancels old orders with a meta tag of "_created_via"="checkout"
This PR fixes that inconsistency, which on my site was preventing a user from adding an in-stock product to her cart, just because a balance-due order for the same product was pending.
Workaround: clear the setting WC > Products > Inventory > Hold Time (default 60 minutes), which inhibits the use of wc_get_held_stock_quantity().
2019-07-15 21:59:02 -07:00
John
052a6c6489
Hide Vietnam's state field
...
When you choose the country 'Vietnam' from a woocommerce website, the state field is hidden. So I added to be hidden in this class too.
2019-07-16 02:23:59 +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
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
rgjchandler
687197f234
Fix #24153 - Added filter to disable password change notification
2019-07-15 16:00:13 +01: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