Mike Jolley
6aea8d0718
Wrap conditonal in add to cart shortcode string output
...
Closes #16856
2017-09-20 13:18:16 +01:00
Mike Jolley
d52677b0ac
Fix like query escape in background processing
...
Closes #16846
2017-09-20 12:46:27 +01:00
Mike Jolley
c91cd01379
remove spam field
...
Closes #16862
2017-09-20 11:51:33 +01:00
Mike Jolley
04ba489628
Merge pull request #16835 from thenbrent/tweak_internal_meta_message
...
Tweak internal meta notice
2017-09-20 03:39:56 -07:00
Mike Jolley
de1eceb95e
Merge pull request #16843 from woocommerce/fix/16800
...
Make importer columns case-insensitive
2017-09-20 03:39:27 -07:00
claudiulodro
133b664cc3
Only set prices if set in request
2017-09-17 11:44:00 -07:00
claudiulodro
9d8e308a78
Make importer columns case-insensitive
2017-09-17 10:18:03 -07:00
Claudiu Lodromanean
f9120672bd
Merge pull request #16767 from hjoelr/bugfix-coupon-cache
...
Bugfix: coupon object cache not being cleared upon deletion
2017-09-17 09:45:45 -07:00
Claudiu Lodromanean
2bf8a742f2
Merge pull request #16838 from woocommerce/fix/16834
...
Init price slider after using customizer
2017-09-17 09:24:07 -07:00
Emran Ahmed
066a857d19
Supporting Custom Post Type Template
...
Supporting Custom Post Type Template for Single Product.
2017-09-17 02:22:05 +06:00
Mike Jolley
d125739742
fix init
2017-09-16 12:37:29 -07:00
Claudiu Lodromanean
75279ddfbc
Merge pull request #16824 from woocommerce/fix/16778
...
Ensure we have arrays in find/replace
2017-09-16 12:36:10 -07:00
Mike Jolley
2bbeab247c
Merge pull request #16822 from woocommerce/fix-16821
...
Remove extra space in tax state code
2017-09-15 16:43:41 -07:00
Mike Jolley
a62bb30200
Merge pull request #16803 from iamdharmesh/master
...
Apply filter on product csv importer steps.
2017-09-15 16:39:20 -07:00
Mike Jolley
8973a0cdad
Merge pull request #16797 from Umangvaghela/add-esc_html
...
add esc_html in class-wc-checkout.php file
2017-09-15 16:37:50 -07:00
Brent Shepherd
81b9160973
Add offending key to error message
2017-09-15 15:58:34 -07:00
Brent Shepherd
f404affff4
Tweak internal meta notice
...
To remove ambiguity with accessing properties via $object->meta_key
syntax, which was deprecated with WC 3.0.
2017-09-15 15:48:53 -07:00
Mike Jolley
d3da954133
Move cart totals setter for 3.1 compat
...
Closes #16794
2017-09-15 11:15:50 -07:00
Umangvaghela
e38d01bcfa
Resolve Issue
2017-09-15 10:54:30 -07:00
Mike Jolley
11d6b4e7d8
Ensure we have arrays in find/replace
...
Closes #16778
2017-09-14 17:37:23 -07:00
corsonr
e9cc8242ce
Remove extra space in tax state code
...
Fixes #16821
Spaces shouldn’t allowed in tax state code, only 2 letters are required.
2017-09-14 15:50:25 -07:00
Mike Jolley
bac98218f3
Merge pull request #16782 from hjoelr/bugfix-discounts-wrong-var
...
Bugfix: Discounts not using the right variable
2017-09-14 11:32:27 -07:00
Mike Jolley
f9719c79eb
Merge pull request #16795 from hjoelr/bugfix/freeshipping-coupon
...
Bugfix: Resolve 'non-numeric value encountered' error in PHP 7.1 when freeshipping coupon used
2017-09-14 11:31:17 -07:00
Dharmesh Patel
d877ab31c5
Apply filter on product csv importer steps.
2017-09-13 23:56:15 +05:30
Umangvaghela
37edbbedf5
add esc_html in class-wc-checkout.php file
2017-09-13 13:01:59 +05:30
Joel Rowley
458a6c87c7
Resolve 'non-numeric value encountered' error in PHP 7.1 when freeshipping coupon used
2017-09-12 21:33:43 -04:00
Joel Rowley
bb5cb38832
Bugfix: Discounts not using the right variable
2017-09-11 15:56:49 -04:00
Joel Rowley
521bde2fba
Bugfix: coupon object cache not being cleared upon deletion
2017-09-09 22:47:25 -04:00
nils-fredrik@maksimer.no
39bde22e56
Apply filter to posted data in checkout.
2017-09-08 21:34:55 +02:00
Claudio Sanches
419244051e
Merge pull request #16743 from woocommerce/update/rest-base-request-uri
...
API - use current scheme
2017-09-08 14:49:23 -03:00
Claudiu Lodromanean
213bfabb24
Merge pull request #16763 from woocommerce/fix/16757
...
Update shipping code to see if full address has been entered before showing no shipping notice
2017-09-08 09:43:23 -07:00
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
Matt Miller
42e6d4dffe
Removed extra tab character
2017-08-28 13:25:20 -07:00
Claudio Sanches
08db6a91c8
Merge pull request #16631 from woocommerce/feature/pre-search-customers
...
Pre query filter for search customer method.
2017-08-28 17:18:52 -03:00
Claudio Sanches
c571b6767b
Merge pull request #16606 from woocommerce/update/widgets-16132
...
Widget depth settings and improvements
2017-08-28 16:37:05 -03:00
Claudio Sanches
c9dc585a7f
Fixed coding standards
2017-08-28 16:36:32 -03:00
Matt Miller
a9db02d340
Variable update on sale schedule event fix
...
Removed extra variable declaration
2017-08-28 12:35:11 -07:00
Claudio Sanches
c03520a661
Allow pre query filter return an empty array
2017-08-28 16:23:12 -03:00
Claudio Sanches
d5aae55725
Prevent "Argument #N is not an array" warning when WP_User_Query returns null
2017-08-28 16:15:19 -03:00
Claudio Sanches
f8c18ba899
Introduced pre query filter to WC_Customer_Data_Store::search_customers()
2017-08-28 16:14:13 -03:00
Claudiu Lodromanean
b46262c3c6
Merge pull request #16613 from woocommerce/feature/15979-2
...
Allow [products] to be used instead of any other product shortcode
2017-08-28 10:35:03 -07:00
Claudiu Lodromanean
c36a6811c5
Merge pull request #16600 from woocommerce/feature/15979
...
Introduces WC_Shortcode_Products class
2017-08-28 10:33:35 -07:00
Konstantin Kovshenin
a3b08d6497
Merge remote-tracking branch 'origin/master' into helper-updates
2017-08-28 13:46:14 +03:00
Konstantin Kovshenin
94dbdc86b9
Helper: Add "shared" labels for shared subscriptions.
2017-08-28 11:59:13 +03:00
Konstantin Kovshenin
6b14b83cd2
Helper: Make sure redirect actions preserve selected filters.
2017-08-28 11:53:31 +03:00
Konstantin Kovshenin
5fded42d28
Helper: Add subscriptions filters.
2017-08-28 11:39:41 +03:00
Konstantin Kovshenin
51a2d45578
Helper: Make sure transients are not empty before setting again.
2017-08-28 10:53:48 +03:00
Konstantin Kovshenin
578f25ebdc
Helper: Don't display (0) in top navigation when no updates available.
2017-08-28 10:32:51 +03:00
Konstantin Kovshenin
0cafd1a499
Helper: Refresh update transients when refreshing update data.
2017-08-28 10:31:08 +03:00
Konstantin Kovshenin
d854f92ee1
Helper: Cache update count fetch and clear cache after an update.
2017-08-28 10:23:33 +03:00
Konstantin Kovshenin
a41d5da411
Helper: Add update-count to the Extensions top nav menu.
2017-08-28 10:01:01 +03:00
Konstantin Kovshenin
9f3403af06
Helper: Add a plugin-count to the Extensions admin menu.
2017-08-28 09:52:59 +03:00
Claudio Sanches
500ee02dfa
Allow [products] to be used instead of any other product shortcode
...
This allow `[products]` to be used instaed of `[product_category]`,
`[featured_products]`, `[sale_products]`, `[best_selling_products]`,
`[recent_products]`, and `[top_rated_products]`.
Ref #15979
2017-08-25 20:04:53 -03:00
Claudio Sanches
b6f789fc56
Improved WC_Shortcode_Products code
2017-08-25 19:39:43 -03:00
Matt Miller
34b64764c7
Absolute value for gmt_offset in scheduled sales
...
In the event that you choose a -GMT value, the values are incorrect in some instances. For examples, if we choose a -7 GMT value, the gmt_offset will evaluate to '-7'.
On line 309, $ve will equal '+'.
On line 312, previously, $ve . get_option( 'gmt_offset' ) would evalute to '+-7'.
2017-08-25 15:25:39 -07:00
Claudio Sanches
b032a82381
Fixed coding standards
2017-08-25 19:25:19 -03:00
Claudio Sanches
32ea76f09f
Render product_attribute shortcode results with WC_Shortcode_Products
2017-08-25 19:07:10 -03:00
Claudio Sanches
ddeea547b1
Use WC_Shortcode_Products inside featured_products shortcode
2017-08-25 18:42:02 -03:00
Dharmesh Patel
ce764eb6ba
fixed issue #16610
2017-08-26 00:36:06 +05:30
Claudio Sanches
72df581c6f
Use WC_Shortcode_Products inside top_rated_products shortcode
2017-08-25 15:55:34 -03:00
Shiva Poudel
1bc1bc7201
Remove unused product taxonomy styles
2017-08-26 00:08:33 +05:45
Mike Jolley
31a90bdd85
Handle prices including tax calcs
2017-08-25 18:21:27 +01:00
Mike Jolley
4ac1ed84cc
Fallback no coupon data
2017-08-25 16:15:28 +01:00
Mike Jolley
2682d86660
Move comment
2017-08-25 16:09:56 +01:00
Boro Sitnikovski
3cd1bedade
Set coupon virtual state on when initializing virtual coupons during recalculation
2017-08-25 17:07:07 +02:00
Claudio Sanches
c0da59d75a
Use WC_Shortcode_Products inside best_selling_products shortcode
2017-08-25 11:46:47 -03:00
Claudio Sanches
3dabdda480
Apply WC_Shortcode_Products class into sale_products shortcode
2017-08-25 11:00:48 -03:00
Mike Jolley
961c190985
Comments
2017-08-25 14:42:56 +01:00
Mike Jolley
1c303c159c
Notes
2017-08-25 12:52:49 +01:00
Mike Jolley
9fa685eb71
wp_dropdown_categories is viable again!
2017-08-25 12:49:51 +01:00
Mike Jolley
55d75cdcb7
Add max depth option to widget
...
Closes #16132
2017-08-25 12:49:40 +01:00
Mike Jolley
ff5228e944
Standardise widget titles and descriptions
...
Follow the same pattern as core WP widgets, including title case.
Avoids terms like ‘layered nav’ which has no real meaning to new users.
2017-08-25 12:07:17 +01:00
Mike Jolley
3b3ceebc1f
Merge pull request #16579 from Chouby/action_before_import
...
Add action woocommerce_product_import_before_import
2017-08-25 11:19:20 +01:00
Erick Hitter
aa881a0c47
Clarify inline doc
2017-08-24 21:42:32 -07:00
Erick Hitter
c43155aff7
Allow directory creation to be bypassed
2017-08-24 21:16:32 -07:00
Claudio Sanches
0cea847c63
Renamed $loop_name to $type
2017-08-24 22:22:42 -03:00
Claudio Sanches
d7bea55aae
Use WC_Shortcode_Products to render product shortcode results
2017-08-24 22:16:42 -03:00
Claudio Sanches
9b1a047c6f
Use WC_Shortcode_Products inside recent_products shortcode
2017-08-24 21:31:58 -03:00
Claudio Sanches
71019aadfe
Moved woocommerce_shortcode_products_query filter to parse_query_args
2017-08-24 21:24:51 -03:00
Claudio Sanches
461066d2b1
Allow query products by category on products shortcode
2017-08-24 21:24:05 -03:00
Claudio Sanches
429aecd400
Allow set loop name
2017-08-24 20:20:14 -03:00
Claudio Sanches
a398e4893c
Fixed static method and added default value for construct method
2017-08-24 20:11:18 -03:00
Claudio Sanches
51e80b944b
Apply new WC_Shortcode_Products class into WC_Shortcodes::products
2017-08-24 19:33:14 -03:00
Claudio Sanches
7958f9cca9
Ignore coding standards
2017-08-24 19:17:18 -03:00
Claudio Sanches
84cf4d0be8
Fixed query args
2017-08-24 18:59:04 -03:00
Rami Yushuvaev
323c177bb0
i18n: Avoid using HTML tags in translation strings
...
Old translation string:
* `If you like <strong>WooCommerce</strong> please leave us a %s rating. A huge thanks in advance!`
New translation string:
* `If you like %1$s please leave us a %2$s rating. A huge thanks in advance!`
2017-08-25 00:39:13 +03:00
Claudio Sanches
4f18cea88b
Removed extra comments, params and static method
2017-08-24 15:30:44 -03:00
Claudio Sanches
321832ade4
Introduced new WC_Shortcode_Products class
2017-08-24 15:29:30 -03:00
Mike Jolley
1e65a918d5
Pull meta to apply coupons which do not exist
2017-08-24 17:08:45 +01:00
Mike Jolley
8b4086caf2
Hide link to non-existing coupons
2017-08-24 17:08:34 +01:00
Mike Jolley
487478daa9
Store details about the original coupon
2017-08-24 17:07:49 +01:00
Mike Jolley
b84efc1acd
is_virtual to track manual coupons
2017-08-24 17:07:39 +01:00
Mike Jolley
8ce583889a
Apply filters to carts only, and add is_virtual helper
2017-08-24 17:07:31 +01:00
Claudio Sanches
abb9886df1
Merge pull request #16592 from woocommerce/fix/16587
...
If no title is set when uploading images, use filename
2017-08-24 12:05:48 -03:00
Mike Jolley
220b37d5f2
Show sorting on search results but default to relevance
...
Closes #16565
2017-08-24 12:58:50 +01:00
Mike Jolley
7a817ee103
Added back missing discount row
...
Closes #16586
2017-08-24 12:49:49 +01:00
Mike Jolley
8e6085b2c0
If no title is set when uploading images, use filename
...
Closes #16587
2017-08-24 12:33:53 +01:00
Claudiu Lodromanean
56e1207903
Merge pull request #16583 from woocommerce/update/apply-fees
...
Improved apply fees
2017-08-23 13:35:18 -07:00
Mike Jolley
25fb505fc4
Debug
2017-08-23 16:42:58 +01:00
Claudio Sanches
b46f5c91e4
Merge pull request #16584 from ramiy/patch-1
...
i18n: Avoid using HTML tags in translation strings
2017-08-23 11:51:28 -03:00
Claudio Sanches
0bf1aa1cb0
Merge pull request #16581 from woocommerce/fix/16577
...
Imported non-published variations should be private, not draft
2017-08-23 11:47:04 -03:00
Mike Jolley
9d877a3b34
Unused vars
2017-08-23 14:40:34 +01:00
Mike Jolley
2beddc59a7
docblocks
2017-08-23 14:38:00 +01:00
Mike Jolley
e0de3643bc
ID is unused
2017-08-23 14:28:25 +01:00
Mike Jolley
9483a7ec19
invalid return
2017-08-23 14:27:30 +01:00
Mike Jolley
c60859bf3c
types
2017-08-23 14:27:10 +01:00
Mike Jolley
a7b697b679
type checks
2017-08-23 14:25:41 +01:00
Rami Yushuvaev
ff289f3bf4
i18n: Avoid using HTML tags in translation strings
...
This PR moves the `<code>` HTML tags from the translation strings.
It also moves the server variables outside of the translation string, because translators can accidentally translate it wrong.
2017-08-23 16:22:52 +03:00
Mike Jolley
714c4c672e
unused prop
2017-08-23 14:21:42 +01:00
Mike Jolley
be042ee8f3
Set to amount before calc
2017-08-23 12:24:33 +01:00
Mike Jolley
804feb9333
Store fee amount and prevent totals going negative
2017-08-23 12:15:06 +01:00
Mike Jolley
d9e455b9c6
Merge branch 'master' into update/apply-fees
2017-08-23 11:26:13 +01:00
Mike Jolley
f18a146d0f
Prompt to apply fee in admin
2017-08-23 11:22:18 +01:00
Mike Jolley
22813663d7
Merge pull request #16569 from woocommerce/update/fees-api-class
...
WC_Cart_fees and negative fee calculations
2017-08-23 10:59:19 +01:00
Mike Jolley
b3e92869f9
Imported non-published variations should be private, not draft
...
Fixes #16577
2017-08-23 10:45:18 +01:00
Frédéric Demarle
04b6e80065
Add action woocommerce_product_import_before_import
2017-08-23 09:37:41 +02:00
Claudiu Lodromanean
95130b2403
Merge pull request #16574 from woocommerce/feature/16554
...
Allow import/export product position (menu_order)
2017-08-22 14:13:52 -07:00
Claudiu Lodromanean
bdba4f7636
Merge pull request #16572 from woocommerce/fix/16559
...
Introduces woocommerce_get_product_id_by_sku filter
2017-08-22 13:31:45 -07:00
Claudio Sanches
7ad0dd55f9
Allow import 'menu_order'
2017-08-22 17:22:39 -03:00
Claudio Sanches
0b3811bd11
Change Position key from 'position' to 'menu_order'
2017-08-22 16:46:09 -03:00
Claudio Sanches
af23ad42d7
Included "position" (menu_order) to exported products
2017-08-22 16:33:19 -03:00
Claudio Sanches
02a7f4d5ab
Merge pull request #16561 from woocommerce/fix/16557
...
API v1 should create v1 webhooks
2017-08-22 15:19:16 -03:00
Claudio Sanches
03a189726e
Introduces woocommerce_get_product_id_by_sku filter
...
Closes #16559
2017-08-22 15:04:21 -03:00
Claudiu Lodromanean
6c2a944b74
Merge pull request #16570 from woocommerce/fix/16568
...
Add product to cart on each iteration for BW compat.
2017-08-22 09:31:21 -07:00
Claudiu Lodromanean
8a9a51643e
Merge pull request #16563 from woocommerce/fix/16560
...
Prevent regular price being lower than the sale price
2017-08-22 09:08:09 -07:00
Mike Jolley
559982fbe7
Unused variable
2017-08-22 17:02:48 +01:00
Mike Jolley
56c0c1e259
remove old set
2017-08-22 16:41:03 +01:00
Mike Jolley
a70e9bbf9b
Add product to cart on each iteration for BW compat.
...
Closes #16568
2017-08-22 16:39:51 +01:00
Mike Jolley
c41fb8f00c
docblock
2017-08-22 16:31:45 +01:00
Mike Jolley
8dbd9b88a7
Admin calc
2017-08-22 16:26:35 +01:00
Mike Jolley
00cb48a5fe
Pass through to order
2017-08-22 16:20:23 +01:00
Mike Jolley
367f08d79f
Negative fee logic for cart
2017-08-22 16:12:37 +01:00
Mike Jolley
57865204aa
Cart fees class and legacy
2017-08-22 15:17:58 +01:00
Mike Jolley
0bad6b3e52
add_db_table_prefix method for 5.2 support
2017-08-22 13:51:50 +01:00
Manos Psychogyiopoulos
1596979d75
Reload order items on add
2017-08-22 15:19:20 +03:00
Mike Jolley
56f2dc6005
Merge pull request #16562 from Umangvaghela/Update-condition
...
Update condition
2017-08-22 11:45:46 +01:00
Mike Jolley
fb2d8cb394
Prevent regular price being lower than the sale price
...
Closes #16560
2017-08-22 11:43:48 +01:00
Umangvaghela
5794a9cb34
Update condition
2017-08-22 15:23:34 +05:30
Mike Jolley
2a5a47016f
API v1 should create v1 webhooks
...
Fixes #16557
2017-08-22 10:40:35 +01:00
Gregory Karpinsky
73b20bfece
Update class-wc-admin-settings.php
...
Typo: visbility --> visibility
2017-08-21 22:00:23 -04:00
Mike Jolley
d68291b3ac
Merge pull request #16086 from woocommerce/improvement/versions
...
Extensions version check.
2017-08-21 18:18:04 +01:00
Mike Jolley
9ee732d68c
Text
2017-08-21 18:11:47 +01:00
Claudio Sanches
e0e0092f9a
Merge pull request #16549 from woocommerce/fix/16547
...
Handle isset for legacy props, and adjust free shipping logic
2017-08-21 12:38:08 -03:00
Claudio Sanches
37352b60c4
Merge pull request #16546 from woocommerce/fix/16539
...
Improve email directory writable checking
2017-08-21 12:36:17 -03:00
Claudio Sanches
1cfdaaa108
Merge pull request #16548 from woocommerce/fix/16524
...
Swap to text input for tax rate %, and format as decimal.
2017-08-21 12:32:53 -03:00
Claudio Sanches
237d5b646a
Merge pull request #16544 from woocommerce/fix/16537
...
If auth cannot occur, don't send request.
2017-08-21 12:31:46 -03:00
Mike Jolley
95fe91e622
Tweak version code
2017-08-21 16:04:06 +01:00
Mike Jolley
b20ef5dcac
Styling
2017-08-21 15:53:08 +01:00
Mike Jolley
5c271af844
Handle isset for legacy props, and adjust free shipping logic
...
Closes #16547
2017-08-21 13:01:20 +01:00
Mike Jolley
95cc51ae5c
Swap to text input for tax rate %, and format as decimal.
...
Closes #16524
2017-08-21 12:49:23 +01:00
Mike Jolley
6ee0ef1ee8
Copy update for c6ca8a6024
2017-08-21 12:38:14 +01:00
Mike Jolley
3886987346
Merge pull request #16543 from mihaigrigori/master
...
\WC_Legacy_Cart::get_cart_for_session must return a value
2017-08-21 11:57:16 +01:00
Mike Jolley
c6ca8a6024
Update copy with plugins page link
...
Closes #16496
2017-08-21 11:53:34 +01:00
Mike Jolley
05dc9d3c0f
Improve email directory writable checking
...
Closes #16539
2017-08-21 11:32:21 +01:00
Mike Jolley
bf2ca1f3d3
If auth cannot occur, don't send request.
...
Fixes #16537
2017-08-21 10:49:00 +01:00
Mihai Grigori
f6a6cef1d9
\WC_Legacy_Cart::get_cart_for_session must return a value
2017-08-21 11:58:29 +03:00
rspublishing
9ed2f7544f
Updated XAF and XOF denominators
2017-08-20 21:48:18 +02:00
Claudio Sanches
56b8829f46
Merge pull request #16530 from woocommerce/fix/query_names
...
Rename filters to be unique
2017-08-18 14:33:58 -03:00
claudiulodro
4ed359d336
Rename filters to be unique
2017-08-18 10:25:21 -07:00
Mike Jolley
0dc1754b91
Merge branch 'master' into update/store-owner-newsletter
...
# Conflicts:
# assets/css/admin-rtl.css
# assets/css/admin.css
# assets/css/twenty-seventeen-rtl.css
# assets/css/twenty-seventeen.css
# assets/css/woocommerce-rtl.css
# assets/css/woocommerce.css
2017-08-18 18:21:55 +01:00
Mike Jolley
fcef2c7f71
Copy update
2017-08-18 18:21:23 +01:00
Claudio Sanches
b93a95423f
Use wc_strtolower() to format coupon code
...
Improves #16519
2017-08-18 14:11:33 -03:00
Mike Jolley
36f5827bc0
Merge pull request #16351 from pmgarman/feature-system-status-site-size-data
...
Add “site size” areas to system status report
2017-08-18 17:49:12 +01:00
Claudiu Lodromanean
07d5e2e7ca
Merge pull request #16525 from woocommerce/update/tax-class-setter
...
Only set valid tax classes in product abstract
2017-08-18 09:27:03 -07:00
Mike Jolley
db62f4c567
Merge pull request #16526 from JPry/bug/docblocks
...
Update some docblocks with proper parameters
2017-08-18 17:24:43 +01:00
Claudio Sanches
105388e9b2
Merge pull request #16527 from woocommerce/fix/importer-att
...
Fix importer fatal error
2017-08-18 13:23:40 -03:00
Mike Jolley
3d002f842f
Fix get totals method
2017-08-18 17:18:41 +01:00
Jeremy Pry
2d4b7356df
Update some docblocks with proper parameters
2017-08-18 12:18:19 -04:00
claudiulodro
24e9f80f1a
wc_get_attribute_taxonomies returns objects
2017-08-18 09:17:04 -07:00
Mike Jolley
d9f9e74bd9
Only set valid tax classes in product abstract
2017-08-18 17:06:22 +01:00
Claudiu Lodromanean
b0f190fa1d
Merge pull request #16517 from woocommerce/integrate-cart-sessions-class
...
Integrate cart sessions, getters and setters
2017-08-18 08:41:57 -07:00
Mike Jolley
313a797f23
Merge branch 'master' into integrate-cart-sessions-class
2017-08-18 16:37:25 +01:00
Mike Jolley
4567169aa9
Fix remove from cart
2017-08-18 16:37:24 +01:00
Claudiu Lodromanean
4d715d7f54
Merge pull request #16509 from woocommerce/cart-sessions-class
...
Added WC_Cart_Session class
2017-08-18 08:30:36 -07:00
Claudiu Lodromanean
a4d3518a61
Merge pull request #16508 from woocommerce/remove-manual-discounts
...
Removed manual discounts code
2017-08-18 08:30:07 -07:00
Claudiu Lodromanean
4b23d5c5ba
Merge pull request #16523 from woocommerce/fix/16481
...
Change password label
2017-08-18 08:29:10 -07:00
Claudiu Lodromanean
db8ee8d306
Merge pull request #16519 from woocommerce/fix/16497
...
Format coupon code with mb_strtolower
2017-08-18 08:28:40 -07:00
Mike Jolley
97f9a4037a
Change password label
2017-08-18 16:18:49 +01:00
Mike Jolley
f957546cc4
Format coupon code with mb_strtolower
...
Fixes #16497
2017-08-18 15:43:34 +01:00
Mike Jolley
1f692ffb64
Merge pull request #16485 from Korkey128k/master
...
Wrapped 'Delete selected row(s)' button in condition
2017-08-18 15:38:14 +01:00
Mike Jolley
c22fb01903
Merge pull request #16516 from Umangvaghela/issue-16515
...
update Yoda condition
2017-08-18 15:06:44 +01:00
Mike Jolley
1c8ad67a9e
Fix tests and tax merges
2017-08-18 15:05:01 +01:00
Mike Jolley
b854c1775c
Tests
2017-08-18 13:53:22 +01:00
Mike Jolley
302512e51f
Combine taxes correctly
2017-08-18 13:48:53 +01:00
Umangvaghela
b994ea69ca
update Yoda condition
2017-08-18 17:58:58 +05:30
Mike Jolley
a2858245fe
Remove call - it's hooked
2017-08-18 12:52:29 +01:00
Mike Jolley
d2e3839d99
Use getters and setters in cart class
2017-08-18 12:51:45 +01:00
Mike Jolley
a190dc79c3
Legacy getters/setters
2017-08-18 12:24:17 +01:00
Mike Jolley
b34b7bf850
Merge pull request #16512 from Umangvaghela/issue-16511
...
Yoda condition is missing in class-wc-ajax.php
2017-08-18 12:08:06 +01:00
Mike Jolley
b9fea8419b
getters and setters for totals
2017-08-18 12:05:18 +01:00
Umangvaghela
5e8723b99e
Set Yoda condition
2017-08-18 16:26:21 +05:30
Mike Jolley
0c751087f9
Cast to arrays
2017-08-18 11:44:07 +01:00
Mike Jolley
aefb9c4705
Moved magic method to legacy
2017-08-18 11:37:22 +01:00
Mike Jolley
c0368362ce
First pass
2017-08-18 11:29:26 +01:00
Mike Jolley
a9a93436fc
rename ajax method
2017-08-18 10:59:55 +01:00
Mike Jolley
1d95593131
Localise message
2017-08-18 10:58:11 +01:00
Mike Jolley
a55716eed4
WC_Cart_Session
2017-08-18 10:54:41 +01:00
Mike Jolley
e99471c0cd
Removed manual discounts code
2017-08-18 10:36:10 +01:00
Claudio Sanches
909c3f6c8f
Fixed extra "!" and ")" on #16489
2017-08-17 19:05:46 -03:00
Claudio Sanches
3fb17f23e7
Merge pull request #16478 from ramiy/patch-1
...
i18n: Rewrite the translation string logic
2017-08-17 13:59:37 -03:00
Alex James Bishop
d4a02819a7
Add filter to woocommerce_order_again_button to match WC_Form_Handler->order_again
...
This commit adds the `woocommerce_valid_order_statuses_for_order_again` filter to the conditional check
before displaying the order-again button.
The purpose is to enable consistency when altering the valid order again statuses - in the past a dev would
need to use this filter to let the order through the form handler, and then override the template file for a really
trivial reason just to get the button to display.
2017-08-17 11:31:06 +09:30