Commit Graph

18463 Commits

Author SHA1 Message Date
Gerhard Potgieter afd7e72c03
Merge pull request #23690 from woocommerce/update/obw-stripe
Update OWB Payment Gateway structure
2019-05-16 18:26:29 +02:00
Gerhard 0eef8654f6 payapal enabled setting defaults to false 2019-05-16 16:08:46 +02:00
Gerhard 99b183e5bb Refactor paypal and stripe combined logic, add fallback to specified settings when previously saved settings were detected by no option present for the enabled setting. 2019-05-16 15:35:29 +02:00
Gerhard b0a831b64f OWB: Check PayPal by default when Stripe not available. 2019-05-16 15:26:58 +02:00
Gerhard Potgieter 945330c219
Merge pull request #23634 from woocommerce/fix/23626
Update PayPal capture_payment method triggers
2019-05-16 15:17:58 +02:00
Gerhard Potgieter 173b706ccb
Merge pull request #23734 from woocommerce/fix/23676-2
Dashboard stock queries should only include published products
2019-05-16 15:16:18 +02:00
Rodrigo Primo a247e08ad0 Fix query used to get the number of low stock products in the dashboard
This commits changes the query used to get the number of low stock
products in the WooCommerce Status widget in the admin dashboard. This
query should only count published products and ignore products with
other statuses to match the behavior used in the low stock report.
2019-05-16 09:45:44 -03:00
Gerhard Potgieter 10abe6d4be
Merge pull request #23731 from djboris88/fix/wc-order-wrong-param-type-phpdocs
get_formatted_line_subtotal takes Item object instead of an array
2019-05-16 14:43:30 +02:00
Rodrigo Primo 6e976c7f0c Remove unnecessary conditions from out of stock query
In the query to get the number of out of stock products for the admin
dashboard widget, it is not necessary to use `1=1` and also not
necessary to use `posts.post_type IN ( 'product', 'product_variation' )`
as only products are added to wp_wc_product_meta_lookup.
2019-05-16 09:41:52 -03:00
Gerhard Potgieter 58a04d42e5
Merge pull request #23697 from sokolby/patch-1
Add Filter for wc_prices_include_tax() function return
2019-05-16 14:37:50 +02:00
Gerhard Potgieter 9f0e1a6e64
Merge pull request #23534 from woocommerce/fix/233880-alt
Revise update stock logic
2019-05-16 14:15:13 +02:00
Gerhard Potgieter d8f145c2ca
Merge pull request #23714 from woocommerce/fix/23692
Add back backward compatibility for coupon expiry_date meta field
2019-05-16 14:10:03 +02:00
Gerhard Potgieter 2cfc7b64c1
Merge pull request #23713 from woocommerce/fix/webhooks-object-caching
Use WC_Cache_Helper::get_cache_prefix for webhook count cache
2019-05-16 14:07:27 +02:00
Gerhard Potgieter f76cf57ce8
Merge pull request #23546 from woocommerce/fix/23533
Version template caching
2019-05-16 14:01:25 +02:00
Boris Djemrovski c45e06a130 get_formatted_line_subtotal takes Item object instead of an array 2019-05-16 12:04:34 +02:00
Peter Fabian 207042f7df Put back the manage stock check for lookup table. 2019-05-16 10:57:42 +02:00
Rodrigo Primo 33ee11dd62
Merge pull request #23638 from woocommerce/update/23632
woocommerce_product_post_type_link_parent_category_only filter
2019-05-15 15:59:12 -03:00
Peter Fabian 9f0fb0b404 Foxed the use to correct stock quantity parameter. 2019-05-15 16:18:24 +02:00
Peter Fabian 1d29b36c4c Removed comments that are no longer relevant. 2019-05-15 15:46:53 +02:00
Gerhard Potgieter 30ce9ff6a3
Merge pull request #23689 from woocommerce/add/get_used_coupon_codes
Deprecate get_used_coupons in favor of get_coupon_codes
2019-05-15 15:34:40 +02:00
Peter Fabian af7950910c Removed the transaction and locking code.
NOWAIT is not supported on MySQL server 5.5,

SELECT ... FOR UPDATE can leave lingering locks on InnoDB ("When InnoDB performs a complete rollback of a transaction, all locks set by the transaction are released. However, if just a single SQL statement is rolled back as a result of an error, some of the locks set by the statement may be preserved. This happens because InnoDB stores row locks in a format such that it cannot know afterward which lock was set by which statement.", via https://dev.mysql.com/doc/refman/5.5/en/innodb-deadlock-detection.html)
2019-05-15 15:09:16 +02:00
Peter Fabian 68a325249f Removed the extra parameter that didn't make sense.
Also get_data_for_lookup_table should not be checking db value of  _manage_stock as that can be in the process of being changed.
2019-05-15 14:20:27 +02:00
Gerhard aadc7a1069 Add todo 2019-05-15 11:23:41 +02:00
Gerhard 8ed1a647bc Restore backward compatibility meta_key for coupon date_expires. @todo: migrate expiry_date in next release to date_expires 2019-05-15 11:21:52 +02:00
Gerhard 3d57a4b474 Use WC_Cache_Helper::get_cache_prefix for prefixing webhook count cache, fixes issue with cache not clearing when incrementing the prefix. 2019-05-15 10:47:50 +02:00
sokolby cb9f765eb2 Fix prefix filter name 2019-05-15 11:44:54 +03:00
Andrey Barashkov 58132056bd
Add Filter for wc_prices_include_tax() function return
It's great to have a filter, because there are some scenarios when it is necessary to create custom logic for displaying prices.
2019-05-14 13:14:50 +03:00
Gerhard Potgieter b7facc0674
Merge pull request #23663 from danielbitzer/add_get_coupons_method
Add WC_Abstract_Order::get_coupons()
2019-05-14 11:35:21 +02:00
Gerhard 486321161c Update usage of get_used_coupon_codes to get_coupon_codes 2019-05-14 11:21:27 +02:00
Gerhard efe3e4c5d6 Move get_used_coupons to WC_Abstract_Legacy_Order and renamed get_used_coupon_codes to get_coupon_codes. 2019-05-14 11:19:48 +02:00
Daniel Bitzer 0705730121 Add WC_Abstract_Order::get_coupons() 2019-05-14 15:46:48 +09:30
Gerhard b694efcb63 Klarna should not be featured. 2019-05-14 07:36:15 +02:00
Gerhard e131b01133 Modify payment gateway placement, defaults and new logos. 2019-05-13 15:54:44 +02:00
Gerhard 31acfbcb4a Deprecate WC_Abstract_Order::get_used_coupons in favor of WC_Abstract_Order::get_used_coupon_codes, this reflects the actual data being returned better. 2019-05-13 14:40:54 +02:00
Gerhard 36cab83d76 Update out of stock dashboard widget to use same query as in reporting, this only counts published products. 2019-05-13 11:02:50 +02:00
Hassan Yousefi a50464d781 WC_Structured_Data::generate_product_data() no more hooked in to woocommerce_shop_loop ,which has been removed in #22912 2019-05-11 20:45:54 +04:30
Claudio Sanches c96ed877af
Merge pull request #23660 from gocodebox/master
add filter to allow disabling endpoint 404 behavior, per #23622
2019-05-10 12:50:29 -03:00
Gerhard Potgieter 249ee5ecda
Merge pull request #23478 from woocommerce/fix/23476
Force delete rather than trash variations on product type change
2019-05-10 11:41:14 +02:00
Gerhard Potgieter a228975801
Merge pull request #23671 from woocommerce/fix/wc-tracker-order-totals
Corrects WC Tracker's order total calculation.
2019-05-10 11:23:55 +02:00
Gerhard Potgieter 64a76ea0fa
Merge pull request #23666 from woocommerce/update/wc-update-cli-db-version
WC Update CLI DB Version
2019-05-10 11:21:58 +02:00
Gerhard Potgieter b9a75c474a
Merge pull request #23579 from n-dawson/fix-23578
Fixes #23578 - Check taxes enabled before adding totals row to order
2019-05-10 11:21:19 +02:00
Gerhard Potgieter 32769d0d76
Merge pull request #23625 from woocommerce/fix/23549
Use attribute's orderby option to sort terms in product's edit screen
2019-05-10 11:19:08 +02:00
Gerhard Potgieter 18e2332cfc
Merge pull request #23590 from woocommerce/fix/23587
Stock sorting issue when Yoast installed
2019-05-10 11:17:26 +02:00
Gerhard Potgieter 8c665d6572
Merge pull request #23615 from parmarhardip/23596
#23596 - I have solve this issue.
2019-05-10 11:16:06 +02:00
Gerhard Potgieter 902cc1f0b0
Merge branch 'master' into fix/23606 2019-05-10 11:12:54 +02:00
Gerhard Potgieter 46bcf42559
Merge pull request #23611 from woocommerce/fix/23583
Prevents undefined offset for empty arrays in wc_change_get_terms_defaults
2019-05-10 11:02:13 +02:00
Gerhard Potgieter 364093056d
Merge pull request #23580 from woocommerce/report-bug-link
Change the link of the "Report a bug" button
2019-05-10 10:59:24 +02:00
Gerhard Potgieter 0e80030f0b
Merge pull request #23601 from woocommerce/fix/23547
Fix to show WC plugin updates in System status report
2019-05-10 10:57:47 +02:00
Gerhard Potgieter 984357fb41
Merge pull request #23597 from woocommerce/fix/23509
Added confirmation before saving empty list of countries to sell to.
2019-05-10 10:56:13 +02:00
Gerhard Potgieter 6fc498e0d9
Merge pull request #23528 from parmarhardip/23521
Fixes #23521 - Billing Email and Country now autofill for newly regis…
2019-05-10 10:48:13 +02:00