Commit Graph

12636 Commits

Author SHA1 Message Date
Claudiu Lodromanean fcb7da5599 Merge pull request #16760 from woocommerce/update/16746
Handle external URLs for images
2017-09-08 09:33:37 -07:00
Mike Jolley a7b2ae8661 Update shipping code to see if full address has been entered before showing no shipping notice
Fixes #16757
2017-09-08 14:54:15 +01:00
Michal Zuber 21c25f326b Remove dupe check
Already checked at 0337293e39/includes/abstracts/abstract-wc-product.php (L1593)
2017-09-08 14:25:02 +02:00
Mike Jolley d09d7d1358 wc_get_relative_url/wc_is_external_resource helpers 2017-09-08 12:20:03 +01:00
Mike Jolley 0337293e39 Merge pull request #16753 from hjoelr/bugfix-calc-disc-sequentially
Bugfix: woocommerce_calc_discounts_sequentially checks were doing the opposite of the WC setting
2017-09-08 11:44:43 +01:00
Mike Jolley 1f1903bcf4 Merge pull request #16752 from hjoelr/bugfix-double-precision
Bugfix: wc_remove_number_precision() indirectly called twice from get_discount()
2017-09-08 10:57:09 +01:00
Joel Rowley 3b166b6a44 Bugfix: woocommerce_calc_discounts_sequentially checks were doing the opposite of the WC setting 2017-09-07 21:43:27 -04:00
Joel Rowley e6530a3555 Bugfix: wc_remove_number_precision() indirectly called twice from get_discount() 2017-09-07 21:34:58 -04:00
claudiulodro ccade24ce5 Only set some fields on new orders 2017-09-07 13:50:47 -07:00
Mike Jolley ee3ea1b739 Only make http resources relative - https can be left alone.
Closes #16737
2017-09-07 16:55:29 +01:00
Mike Jolley b0cb64b93d API - use current scheme
This caused issues for me locally forcing http to test requests. Ok to
change @claudiosanches ?
2017-09-07 15:32:29 +01:00
Mike Jolley a8a33c8f0d Merge pull request #16717 from woocommerce/refactore/wc_maybe_define_constant
Use wc_maybe_define_constant() in all places
2017-09-07 12:16:13 +01:00
Mike Jolley fe6608f2b7 Merge pull request #16738 from woocommerce/fix/16733
Support numeric coupon errors in is_coupon_valid
2017-09-07 12:15:51 +01:00
Mike Jolley 199eb78304 Support numeric coupon errors in is_coupon_valid 2017-09-07 11:14:05 +01:00
Boro Sitnikovski d0db4c6934 Reintroduce find and replace variables 2017-09-07 09:58:54 +02:00
Claudio Sanches f6375b64d7 Removed old test 2017-09-06 20:25:41 -03:00
Claudio Sanches 4e9cf1c598 Restored WooCommerce->define access to private 2017-09-06 14:47:35 -03:00
Claudio Sanches f8f9c7b04c Merge branch 'master' into add_to_cart_variation 2017-09-06 14:33:57 -03:00
Claudiu Lodromanean 1d165009d0 Merge pull request #16711 from woocommerce/update/16703
Auto update db filter
2017-09-06 09:32:16 -07:00
Claudio Sanches a785824d64 Merge pull request #16726 from woocommerce/fix/variation-add-to-cart-support
Variation ID add to cart support
2017-09-06 13:16:46 -03:00
Mike Jolley 7fefc5f5b5 Revise logic to deal with variation IDs 2017-09-06 17:05:21 +01:00
Mike Jolley 6fee915fdb phpcs 2017-09-06 16:47:48 +01:00
Claudio Sanches 45debc0b47 Merge pull request #16722 from woocommerce/fix/16720
Add option to disable validation when applying coupons
2017-09-06 11:37:59 -03:00
Mike Jolley 6ff78e29fe Fix conditonal on cart redirect
Closes #16724
2017-09-06 13:44:30 +01:00
Mike Jolley d08bf4b489 Add option to disable validation when applying coupons
Closes #16720
2017-09-06 11:26:34 +01:00
Mike Jolley 2aa735a334 Merge pull request #16709 from woocommerce/fix/16705
Legacy find/replace handling for emails.
2017-09-06 10:57:17 +01:00
Mike Jolley 10a873a808 Remove find/replace definition 2017-09-06 10:52:45 +01:00
Mike Jolley f041155f8a Merge pull request #16713 from woocommerce/fix/php-notice-on-item-order
Fix PHP notice on item order
2017-09-06 10:51:37 +01:00
Mike Jolley 9c5765b625 This should be off by default 2017-09-06 10:49:03 +01:00
Mike Jolley 5e052a27c4 Merge pull request #16718 from woocommerce/fix/16678
Preserve the behavior of wc_price filter
2017-09-06 10:41:15 +01:00
Mike Jolley e0a01d7018 syntax error 2017-09-06 10:40:40 +01:00
Brian Henry 6cf9f45978 Always apply woocommerce_countries_allowed_countries filter
'woocommerce_countries_allowed_countries' filter previously was not applied when 'all' was the selected option.
2017-09-05 16:37:29 -07:00
Claudio Sanches 97498ba975 Preserve the behavior of wc_price filter
The default behavior as been changed after #16678

Current 3rd party integrations should already be expecting the price as a
formatted string.

Closes #16678
2017-09-05 17:38:17 -03:00
Claudio Sanches a13158a75a Apply wc_maybe_define_constant() in all places 2017-09-05 16:52:39 -03:00
Claudio Sanches f98aeb5b91 Use WC()->define() into wc_maybe_define_constant() 2017-09-05 16:51:09 -03:00
Boro Sitnikovski 5224eab917 Update PR with new logic 2017-09-05 19:56:56 +02:00
James Golovich 562912a27a Allow variable products to be added via simple HTTP Request
Matches existing behavior of simple products that allow adding via a URL link.
2017-09-05 09:12:53 -07:00
Gabor Javorszky d3ade84852 Add cart object to filters with quantity updates
No issue.

Other filters (remove cart item, restore cart item) have the cart object passed as well. These ones should be too.
2017-09-05 16:40:44 +01:00
Boro Sitnikovski 85e3cee634 Use prop getters/setters instead 2017-09-05 15:17:16 +02:00
Boro Sitnikovski ff9316b093 Fix PHP notice on item order 2017-09-05 14:06:13 +02:00
Mike Jolley 990e33dd07 Remove debug 2017-09-05 11:56:02 +01:00
Mike Jolley a4a9badbb9 Refactor and introduce `woocommerce_enable_auto_update_db` 2017-09-05 11:54:17 +01:00
Mike Jolley 5c5a8f4e8e Helper functions 2017-09-05 11:54:04 +01:00
Mike Jolley cbe4e26c97 Legacy find/replace handling
Closes #16705
2017-09-05 10:15:32 +01:00
Mike Jolley 056720d3e7 Search within current terms to reduce meta query
Closes #16591
2017-09-04 12:57:28 +01:00
Mike Jolley 671a4d7b21 Merge pull request #16687 from pmgarman/patch-2
Match the database sizes up with the right labels
2017-09-04 10:17:49 +01:00
Mike Jolley 42e19f1bb8 Merge pull request #16678 from Drivingralle/patch-3
Pass unformated price into filter to allow better overwrite
2017-09-04 10:15:51 +01:00
Patrick Garman 05c27f0f70 Match the database sizes up with the right labels 2017-09-02 18:56:29 -05:00
Claudio Sanches a37741b842 Merge pull request #16682 from woocommerce/fix/16681
Remove featured image on empty image array
2017-09-01 17:42:38 -03:00
claudiulodro 8c523ee0b9 Remove featured image on empty image array 2017-09-01 11:14:48 -07:00
Anton Timmermans f73c198404
Cache currencies for performance 2017-09-01 18:30:08 +02:00
Ralf Wiechers 245c354209 Pass unformated price into filter to allow better overwrite
Attempt to fix #16674. 

Tried to add som PhpDocs to make
2017-09-01 17:50:06 +02:00
Mike Jolley 845b7a570e Merge remote-tracking branch 'origin/master' 2017-09-01 11:02:20 +01:00
Mike Jolley 91f1f63100 Code standards 2017-09-01 11:02:11 +01:00
Mike Jolley e4d113e755 Merge pull request #16666 from woocommerce/fix/16654
Prevent reordering variable products if no variation set.
2017-09-01 10:25:02 +01:00
Boro Sitnikovski d934bf89e1 Use proper variable scoping on class level instead of function level 2017-09-01 10:46:29 +02:00
james 1820c6a99d Fix Issue #16663. Moved meta creation to `prepare_object_for_database`. 2017-08-31 18:17:14 +01:00
claudiulodro b37f7c8c23 Prevent reordering variable products if no variation set. 2017-08-31 09:54:14 -07:00
Claudiu Lodromanean 29c99d629c Merge pull request #16662 from woocommerce/fix/16659
Better handling for legacy email find/replace filters
2017-08-31 09:07:22 -07:00
james ce39e3aaa8 Fix Issue #16663. 2017-08-31 14:01:24 +01:00
Mike Jolley 1a8a16c79c Merge pull request #16661 from Umangvaghela/fixissue
fix issue
2017-08-31 12:22:15 +01:00
Mike Jolley 21bd0e5397 Better handling for legacy email find/replace filters
Closes #16659
2017-08-31 12:21:02 +01:00
Umangvaghela 16e51760ec fix #16656 2017-08-31 16:34:17 +05:30
Mike Jolley 1e9e6c461f Unit test for #16653 2017-08-31 11:42:19 +01:00
Claudio Sanches a2d0069e2f Fixed docblocks and conditionals 2017-08-30 19:30:46 -03:00
Claudio Sanches 3d3f570746 Reduced number of conditionals in WC_Shortcode_Products class 2017-08-30 18:18:15 -03:00
Mike Jolley d58a09e76a Merge branch 'master' into helper-updates
# Conflicts:
#	assets/css/admin-rtl.css
#	assets/css/admin.css
2017-08-30 21:22:48 +01:00
Konstantin Kovshenin 4a5d0c3ec3 Helper: Clean up unused code. 2017-08-30 18:39:45 +03:00
Mike Jolley 2da895c68d Update price if product type changes
Fixes #16650
2017-08-30 16:23:57 +01:00
Konstantin Kovshenin 64467a0925 Helper: Cache a zero updates count if update data is not available or empty. 2017-08-30 17:46:33 +03:00
Mike Jolley fce69c3dad Fix status page padding 2017-08-30 15:39:54 +01:00
Konstantin Kovshenin ebb5bfc521 Helper: Better markup for filters output. 2017-08-30 17:39:02 +03:00
Konstantin Kovshenin b5f1692ff3 Helper: Unify update-count markup into a single helper method. 2017-08-30 17:19:06 +03:00
Konstantin Kovshenin a9619da513 Merge branch 'helper-updates' of github.com:woocommerce/woocommerce into helper-updates 2017-08-30 17:12:36 +03:00
Konstantin Kovshenin a59ce3b6b1 Helper: Change woo- prefix to woocommerce-com-. 2017-08-30 17:07:37 +03:00
Mike Jolley 8ffbd331e0 Merge pull request #16644 from woocommerce/feature/15979-4
Allow select visibility in product shortcodes
2017-08-30 12:16:46 +01:00
Mike Jolley b0a9cd935e Merge pull request #16640 from leewillis77/feature/plugin-compat-on-status-report
Flag untested extensions on the status report
2017-08-30 11:41:02 +01:00
Lee Willis e3be6a12dd Check all plugins for presence in the untested plugins list, not just WooCommerce ones 2017-08-30 10:25:01 +01:00
Lee Willis 5400bbaf6d Use array_key_exists() instead of in_array() 2017-08-30 10:16:49 +01:00
Claudio Sanches 6dc58b4f6a Allow select visibility in product shortcodes
Ref #15979
2017-08-29 18:29:29 -03:00
Lee Willis cec5fef23c Flag untested extensions on the status report 2017-08-29 17:15:16 +01:00
claudiulodro 1fc98e3ba7 Query objects can also return objects 2017-08-29 08:36:50 -07:00
Claudiu Lodromanean bee9a35e72 Merge pull request #16593 from woocommerce/update/search-order-16565
Show sorting on search results but default to relevance
2017-08-29 07:48:26 -07:00
Mike Jolley 7e76b87039 Merge pull request #16596 from woocommerce/fix/16594
Manual coupons support
2017-08-29 13:46:13 +01:00
Mike Jolley 2fbecb20ad Merge pull request #16633 from woocommerce/fix/cart-index
Fall back to defaults if not set in cart
2017-08-29 12:45:21 +01:00
Mike Jolley fe847630b2 Tests when tax is not enabled 2017-08-29 12:38:35 +01:00
Mike Jolley c29b9acb5b Fix variable name
Closes #16636
2017-08-29 11:19:03 +01:00
Mike Jolley 8703481742 Merge pull request #16601 from ethitter/add/disable-mkdir
Allow install-related directory creation to be bypassed
2017-08-29 11:12:24 +01:00
José Marques 09ddc43171 Helper: removes brackets from update counter indicator 2017-08-29 10:52:57 +01:00
José Marques 9cc3840de4 Helper: convert filter markup into a list 2017-08-29 10:11:47 +01:00
Mike Jolley e0b4d59bb6 Merge pull request #16566 from franticpsyx/reload-order-items-on-add
Reload items table after adding line item manually
2017-08-29 10:08:29 +01:00
Mike Jolley 144520db25 Merge pull request #16612 from Miller-Media/master
Absolute value for gmt_offset in scheduled sales
2017-08-29 10:07:44 +01:00
Manos Psychogyiopoulos a55c2714f5 Do away with 'new_row' class 2017-08-29 12:02:02 +03:00
Mike Jolley 66d0a8560d Merge pull request #16611 from iamdharmesh/master
fixed issue #16610
2017-08-29 10:00:43 +01:00
Mike Jolley 5a026cd016 Merge pull request #16608 from shivapoudel/unused-styles
Remove unused product taxonomy styles
2017-08-29 09:59:11 +01:00
Konstantin Kovshenin 8b46283ca6 Helper: Fix some WPCS errors. 2017-08-29 10:23:34 +03:00
claudiulodro 734ed70462 Fall back to defaults if not set in cart 2017-08-28 14:12:35 -07:00
Claudio Sanches f48a5443e4 Updated the shortcode attributes for the new names 2017-08-28 17:57:39 -03:00
Claudio Sanches acad44e3c9 Auto map legacy attributes to the new ones 2017-08-28 17:45:56 -03:00
Claudio Sanches 8115886433 Improved WC_Shortcode_Products possible attributes names 2017-08-28 17:27:35 -03:00