Peter Fabian
47d0bb7b6a
Removed variables that are not needed.
2018-07-11 13:44:43 +02:00
Gerhard Potgieter
7fa802071e
Merge pull request #20490 from dezio1900/master
...
Allow items to be changed in wc_save_order_items function
2018-07-11 12:52:36 +02:00
ldybecklee
327fd26c70
Fix product csv exporter get stock value
...
seems the original get stock value is wrong, but I'm not sure if my change is correct...
what i'm considering is this line: if ( $product->is_type( 'variation' && 'parent' === $manage_stock ) ) {
2018-07-11 17:28:50 +08:00
Gerhard Potgieter
3cda8c439c
Better table matching on multisite, hat tip to @claudiulodro for pointing me in the right direction.
2018-07-11 11:19:10 +02:00
Claudiu Lodromanean
1ef4aa10a0
Merge pull request #20728 from woocommerce/fix/20708
...
Add edit_theme_options capability to shop manager role
2018-07-10 12:01:13 -07:00
Claudio Sanches
9b7fbff544
Merge pull request #20686 from woocommerce/fix/20673
...
Replaced query attribute placeholder with actual value for header link.
2018-07-10 15:22:30 -03:00
Claudio Sanches
4fd6dbd880
Merge pull request #20740 from woocommerce/fix/20224-b
...
Escape sku input properly for quick edit
2018-07-10 15:22:09 -03:00
Claudio Sanches
3ed4dea4bb
Merge pull request #20723 from woocommerce/fix/20707
...
Only wordwrap plain emails
2018-07-10 15:21:57 -03:00
Claudio Sanches
1c7b2f3100
Merge pull request #20670 from woocommerce/pr/20669
...
Deleting a product via API should handle children products regardless of type.
2018-07-10 15:16:13 -03:00
Gerhard Potgieter
ac09473853
Escape sku input properly for quickedit
2018-07-10 10:56:49 +02:00
Gerhard Potgieter
36b6bd79c0
Add update routines to recreate user roles
2018-07-10 10:30:11 +02:00
Claudiu Lodromanean
af98ef66e7
Merge pull request #20730 from woocommerce/fix/20716
...
Fix log file deletion
2018-07-09 11:35:45 -07:00
Claudiu Lodromanean
24a1ccf5fc
Merge pull request #20732 from woocommerce/update/20709
...
Outdated templates notice improvements
2018-07-09 11:27:46 -07:00
Claudiu Lodromanean
4d0890bf3b
Merge pull request #20714 from yratof/yratof-patch-item-name
...
Added filter on item name in quotes
2018-07-09 11:06:45 -07:00
Claudiu Lodromanean
e8a2e19b27
Merge pull request #20648 from woocommerce/update/crud-get-image
...
Custom tables: Get image from ID, not post thumbnail
2018-07-09 11:04:52 -07:00
Peter Fabian
3af9c1e95b
Merge branch 'master' into fix/20349
...
# Conflicts:
# tests/framework/helpers/class-wc-helper-product.php
# tests/unit-tests/api/products.php
2018-07-09 18:18:06 +02:00
Peter Fabian
2839dba7d2
Switched implementation of variation query parameters in the API from SQL query adjustment to one extra parent query.
2018-07-09 17:14:12 +02:00
Gerhard Potgieter
56a9799e6d
Merge pull request #20654 from woocommerce/update/get-terms
...
Custom tables - remove get terms
2018-07-09 15:27:26 +02:00
Gerhard Potgieter
a4e3283b20
Update outdated templates notice
2018-07-09 15:10:49 +02:00
Gerhard Potgieter
beaa610cc0
Only load tables for system that is part of current multisite, this avoids displaying all tables in a MS speeding up page load, and also prevent divulding tables on other sites in the MS environment.
2018-07-09 13:48:05 +02:00
Gerhard Potgieter
1fdcf2a238
Fix log file deletion functionality.
2018-07-09 13:01:23 +02:00
Gerhard Potgieter
ef2f868b89
Add edit_theme_options capability to shop manager to allow access to customizer for changing WooCommerce settings.
2018-07-09 10:45:48 +02:00
Towhidul Islam
7a957cc130
Convert hardcoded db prefix to dynamic db prefix. Fixes #20718
2018-07-08 10:35:32 +06:00
claudiulodro
38324edc71
Only wordwrap plain emails
2018-07-06 13:29:01 -07:00
Andrew Lazarus
d49f02a4e6
Updated prefix in filter
2018-07-06 19:04:08 +02:00
Claudiu Lodromanean
404fbca655
Merge pull request #20722 from woocommerce/tweak/image-size-filters
...
Add image size filters to wc_get_product_attachment_props()
2018-07-06 09:38:39 -07:00
Claudiu Lodromanean
9792f3399e
Merge pull request #20706 from woocommerce/fix/20705
...
Fixed Webhooks and REST API Keys list table and settings
2018-07-06 09:26:44 -07:00
Tiago Noronha
fda124147b
phpcs
2018-07-06 16:36:19 +01:00
Tiago Noronha
9970f1799a
Add image size filters to wc_get_product_attachment_props()
2018-07-06 16:35:43 +01:00
Andrew Lazarus
97269fc5d9
Added filter on item name in quotes
...
Filter added to item in quotes.
Initially was thinking that is it needed to translate the quotes only? I can't find any languages that do this specifically, but if it's a RTL language, perhaps you'd swap around the quote direction.
The function `wc_add_to_cart_message` gives you the filter `wc_add_to_cart_message` to play with, but is already set in stone as HTML, and if you truly want to change the HTML of this message, you would need to rewrite the function.
Simply adding `<strong>` to the product title is not possible without preg_replacing or hooking into gettext
2018-07-05 16:10:32 +02:00
Claudio Sanches
b044e4c46d
Fixed missing bulk action notices for REST API keys
2018-07-04 16:24:27 -03:00
Claudio Sanches
8f3af95004
Fixed revoke key bulk action
2018-07-04 16:09:04 -03:00
Claudio Sanches
44f081ac7e
Prevents save notice in keys table list
2018-07-04 16:07:17 -03:00
Claudio Sanches
1cf0c78beb
Prevents "Your settings have been saved." notices on the table list
2018-07-04 16:04:47 -03:00
Claudio Sanches
7e94f45f12
Custom search box
2018-07-04 15:43:31 -03:00
Claudio Sanches
3774a05077
Only use "post" in list table
2018-07-04 15:43:13 -03:00
Claudio Sanches
2a0a826be1
Fixed form parameters for webhooks and keys admin forms
...
Fixes #20705
2018-07-04 15:30:08 -03:00
Paul Dechov
adceaffaa2
OBW: Change name of PayPal Express Checkout gateway to match rebranding
2018-07-04 10:46:19 -04:00
Claudiu Lodromanean
7b56840f36
Merge pull request #20695 from woocommerce/fix/20684
...
Check if $_POST['store_state'] is set before using it
2018-07-03 11:11:16 -07:00
Claudiu Lodromanean
78015f7265
Merge pull request #20690 from woocommerce/fix/20677
...
Add ajax-add-to-cart class to button only if product can be purchased.
2018-07-03 11:02:44 -07:00
Claudiu Lodromanean
8cf0d9c2e8
Merge pull request #20687 from LiamMcArthur/patch-1
...
Disable autocomplete from report date inputs #20683
2018-07-03 10:52:37 -07:00
Claudiu Lodromanean
06b749edeb
Merge pull request #20665 from woocommerce/fix/20656
...
Store name and other data to customer session during checkout
2018-07-03 10:30:31 -07:00
Claudiu Lodromanean
233b839908
Merge pull request #20678 from maciekpaprocki/patch-1
...
Wrong php doc for get_cart_contents()
2018-07-03 10:11:40 -07:00
Claudiu Lodromanean
98b3b6305d
Merge pull request #20661 from woocommerce/fix/16620
...
Use view context so true is not returned if parent is stock managed and not the variation
2018-07-03 10:08:47 -07:00
Joey Gilham
58cdd7dad2
Merge branch 'master' into master
2018-07-03 15:41:15 +01:00
Joey
4e0412e0d8
removed redundant trigger for low stock notifications
2018-07-03 14:48:53 +01:00
Joey
375ef48186
updated wc_get_low_stock_amount function
2018-07-03 14:42:58 +01:00
Rodrigo Primo
7cdcae5bff
Check if $_POST['store_state'] is set before using it
...
Fixes #20684
2018-07-03 09:48:35 -03:00
Rodrigo Primo
a106b324bf
Ignore specific PHPCS rules instead of all rules
2018-07-03 09:42:59 -03:00
Peter Fabian
5459d1149d
Add ajax-add-to-cart class to button only if product can be purchased.
2018-07-02 18:58:42 +02:00
Liam McArthur
0ddb61273c
Disable autocomplete from date inputs
...
Disabling autocomplete from these date inputs prevents browser autocomplete from overlaying datepicker.
2018-07-02 15:55:26 +01:00
Peter Fabian
70d876d122
Replaced query attribute placeholder with actual value for header link.
2018-07-02 16:02:54 +02:00
maciekpaprocki
db403b2805
Wrong php doc for get_cart_contents()
2018-07-01 18:12:04 +01:00
Claudiu Lodromanean
5e1e8a36a5
Merge pull request #20650 from woocommerce/fix/20641
...
Hide preview button
2018-06-29 13:34:55 -07:00
Mike Jolley
a480cff0d2
Logic is not grouped specific; only for product types with children
2018-06-29 15:24:17 +01:00
Eleanor Martin
c94a5df7a4
Allowing API deletion of grouped products. #20666
2018-06-29 15:01:10 +01:00
Mike Jolley
fe25006fa1
Store name and other data to customer session during checkout
2018-06-29 12:42:10 +01:00
Mike Jolley
ddb779e917
Check type correctly
2018-06-29 11:22:03 +01:00
Mike Jolley
b3b03755d7
update selector
2018-06-29 11:16:44 +01:00
Mike Jolley
4ac235a6e5
Use view context so true is not returned if parent is stock managed and not the variation.
2018-06-29 10:37:56 +01:00
Claudiu Lodromanean
920eb551a6
Merge pull request #20644 from woocommerce/update/dynamic-placeholders
...
Make placeholders resize based on aspect ratio settings
2018-06-28 12:01:28 -07:00
Mike Jolley
1852672761
Allow access to list table
2018-06-28 16:39:27 +01:00
Mike Jolley
46141595d4
Remove term usage
2018-06-28 16:39:07 +01:00
dezio1900
ac52ce4bad
Update wc-admin-functions.php
2018-06-28 16:31:03 +02:00
Mike Jolley
3174aff57f
Hide preview button
2018-06-28 14:59:04 +01:00
Mike Jolley
e5423bd9c5
Merge pull request #20630 from Chunkford/patch-1
...
Add filter to a coupon's user usage limit
2018-06-28 14:33:37 +01:00
Mike Jolley
a6c5065718
Merge pull request #20633 from aelia-co/tweak-shipping_method_add_rate_filter
...
Added new filters when adding shipping rates
2018-06-28 14:29:28 +01:00
Mike Jolley
64b589f032
Get image from ID, not post thumbnail
2018-06-28 13:10:25 +01:00
Diego Zanella
9c9bdb0b2e
Changed prefix for new filters to "woocommerce_shipping_method_"
2018-06-27 22:00:25 +01:00
Mike Jolley
9bead7a702
Merge pull request #20617 from woocommerce/add/20603
...
Convert product categories widget to use selectWoo.
2018-06-27 18:52:01 +01:00
Mike Jolley
ff0e492a41
Setting
2018-06-27 18:38:36 +01:00
Mike Jolley
6b68c15309
Placeholder image styling
2018-06-27 18:13:39 +01:00
Mike Jolley
4fc64e85a6
Create placeholder image on install
2018-06-27 17:47:30 +01:00
Claudiu Lodromanean
2a3cedddcd
Merge pull request #20520 from woocommerce/feature/product-custom-tables-supporting-changes
...
Product custom tables supporting changes
2018-06-27 08:57:50 -07:00
Diego Zanella
ab3b6b5433
Fixed call to filter woocommerce_shipping_add_rate_args
2018-06-27 16:09:22 +01:00
Mike Jolley
bf9d0ff053
Merge pull request #20634 from woocommerce/enhance/20626
...
Make it easier to customize products list table filters
2018-06-27 15:20:12 +01:00
Mike Jolley
b838f3be4a
Merge pull request #20637 from woocommerce/fix/20616
...
Better phone number cleaning for wc_format_phone_number
2018-06-27 15:04:05 +01:00
Mike Jolley
1186a62d04
Merge pull request #20639 from woocommerce/pr/20622
...
Update Pr/20622 - conditionally add optional text to address 2 field
2018-06-27 10:33:06 +01:00
Mike Jolley
0e589f641e
Allow string reuse by moving brackets outside of string.
2018-06-27 10:31:41 +01:00
Gerhard Potgieter
2df62edec1
Improve the replacement for wc_format_phone_number a bit more, seems like we allow spaces and plus signs, remove non visible unicode with seperate preg_replace
2018-06-27 09:37:44 +02:00
Gerhard Potgieter
7a3caa0608
This changes wc_format_phone_number to discard all characters except numbers and the + sign, not sure if + sign must be stripped but in the current version it was not stripping the + sign
2018-06-27 09:05:32 +02:00
claudiulodro
9fa038e1ab
phpcs
2018-06-26 13:36:13 -07:00
claudiulodro
59356aa644
Make it easier to customize product filters
2018-06-26 13:31:57 -07:00
Claudiu Lodromanean
3bff14974c
Merge pull request #20629 from vishalkakadiya/fix/remove-unwanted-condition
...
Remove unwanted(double) condition for address line 2
2018-06-26 12:20:18 -07:00
Diego Zanella
25817b9236
Added new filters when adding shipping rates
...
Ref. https://github.com/woocommerce/woocommerce/issues/20632
2018-06-26 20:15:54 +01:00
Claudiu Lodromanean
0cd54b67c7
Merge pull request #20606 from woocommerce/refactor/order-again
...
Refactor "order again"
2018-06-26 12:10:55 -07:00
Chunkford
0d9bf1e19c
Update class-wc-discounts.php
2018-06-26 17:22:09 +01:00
Chunkford
469c8f2d10
Add filter to a coupon's user usage limit
...
I need to be able to mark a coupon as unlimited use per user if a certain criteria is met
2018-06-26 16:32:08 +01:00
vishalkakadiya
d765ca9ec4
ISSUE-20621 Move space outside of the localised string
2018-06-26 20:30:29 +05:30
vishalkakadiya
95d7dc0933
ISSUE-20621 Address feedbacks
2018-06-26 19:18:29 +05:30
vishalkakadiya
9dea1e98db
Merge branch 'master' into fix/issue-20621
2018-06-26 18:44:09 +05:30
vishalkakadiya
dd14157682
ISSUE-20621 Add (optional) text on condition bases
2018-06-26 18:43:53 +05:30
vishalkakadiya
c6fa14fe53
Remove unwanted(double) condition for address line 2
2018-06-26 18:21:29 +05:30
Mike Jolley
a4e0ba2958
feedback
2018-06-26 13:49:57 +01:00
Mike Jolley
d394dec5f2
Merge pull request #20591 from yratof/tweak/issue-20590
...
Wrapped 'FREE' with a filter to allow different use cases
2018-06-26 13:43:44 +01:00
Mike Jolley
ed1cb59840
Merge pull request #20608 from woocommerce/fix/20594
...
Check if array index exists before using it
2018-06-26 13:39:46 +01:00
Mike Jolley
35a50e5617
Merge pull request #20586 from woocommerce/feature/add-tax-calc-filter
...
Add filter for tax calculation in cart totals
2018-06-26 13:39:21 +01:00
Mike Jolley
fb85c7d057
Merge pull request #20547 from woocommerce/update/emogrifier-2.0
...
Update Emogrifier to 2.0
2018-06-26 13:38:48 +01:00
Mike Jolley
91738bc5a8
Merge pull request #20011 from woocommerce/update/19961
...
On the fly image generation for frontend
2018-06-26 13:37:37 +01:00
Gerhard Potgieter
4c54dedd9d
Rredirect to shop page when product categories dropdown filter is cleared.
2018-06-26 11:54:04 +02:00