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
vishalkakadiya
f282b4f126
ISSUE-20621 Remove (optional) text from Address line 2 field's placeholder
2018-06-26 00:10:47 +05:30
Claudiu Lodromanean
d0491072e8
Merge pull request #17895 from woocommerce/update/use-post-author-for-customer-id
...
Use post_author instead of the post meta '_customer_user'
2018-06-25 11:23:59 -07:00
Gerhard Potgieter
345416312a
Move selectwoo support to widget class to avoid it running on admin pages.
2018-06-25 15:58:18 +02:00
Rodrigo Primo
f175e62286
Merge pull request #20549 from woocommerce/update/improve-layered-nav-performance
...
Improve WC_Query::get_layered_nav_chosen_attributes() performance
2018-06-25 09:35:21 -03:00
Andrew Lazarus
d9c031d8c6
Removed whitespace to pass travis check
2018-06-25 13:24:07 +02:00
Mike Jolley
ff8781a406
Merge pull request #20615 from rnaby/250618-121609
...
Log Abstract Class Methods Refactoring
2018-06-25 12:09:05 +01:00
Mike Jolley
525ea24160
Merge pull request #20614 from rnaby/250618-120045
...
@throws PHPDoc Fix
2018-06-25 12:07:44 +01:00
Gerhard Potgieter
664abe2015
Convert product categories widget to use selectWoo.
2018-06-25 12:25:16 +02:00
Andrew Lazarus
c9e0055bdd
Refactored get_cart_shipping_total()
...
Refactored to pass all routes through filter, renamed the filter to match the function.
2018-06-25 11:17:08 +02:00
Khan M Rashedun-Naby
cb945a8816
Specified where the Exception is coming from
2018-06-25 15:04:49 +06:00
Khan M Rashedun-Naby
71a0fc7f89
Log Abstract Class Methods Refactoring
2018-06-25 12:40:55 +06:00
Khan M Rashedun-Naby
21c5dacdb1
@throws PHPDoc Fix
2018-06-25 12:05:42 +06:00
GlennMartin1
fdbefd436a
fix typo
...
change: "Active" to "Activate"
2018-06-22 15:29:14 -04:00
Andrew Lazarus
7eac354d3b
Added $this to the FREE filter to allow interaction with cart object
2018-06-22 16:03:57 +02:00
Andrew Lazarus
b29036c08d
Updated filter naming convention for Free!
2018-06-22 16:00:28 +02:00
Rodrigo Primo
e6c1ab38a8
Fix PHPCS error
2018-06-22 10:31:42 -03:00
Rodrigo Primo
b917522160
typo
2018-06-22 10:13:12 -03:00
Rodrigo Primo
df3306084e
Check if array index exists before using it
...
WC_Geolite_Integration::get_country_iso() sometimes returns null instead of an array, so this commit adds a check to account for that possibility before using the returned value. Doing this to prevent the following undefined index notice:
PHP Notice: Undefined index: country in wp-content/plugins/woocommerce/includes/class-wc-geolite-integration.php on line 60
Fixes #20594
2018-06-22 10:13:12 -03:00
Mike Jolley
759b99ad14
Order again and merge cart handling
2018-06-22 13:32:45 +01:00
Mike Jolley
f9530c3ba2
Remove order again from URls
2018-06-22 13:32:21 +01:00
Mike Jolley
5ad0e12602
Store meta after login so we know when cart needs to merge
2018-06-22 12:39:21 +01:00
Mike Jolley
f89724b718
Remove order again from form handler
2018-06-22 12:39:06 +01:00
Mike Jolley
211ef53a53
Pass link to template file. Use cart URL to avoid redirects.
2018-06-22 10:40:56 +01:00
Bharat Kambariya
fdeadcdbea
fix param doc for update_meta and add_meta fn.
2018-06-21 11:47:18 +05:30
Mike Jolley
a17945d9a8
Merge pull request #20574 from woocommerce/fix/20551
...
Fix: set order status to refunded when a PayPal transaction is refunded
2018-06-20 14:56:25 +01:00
Andrew Lazarus
38b904a09a
Wrapped 'FREE' with a filter to allow different use cases for no shipping rate returning
2018-06-20 15:12:27 +02:00
Claudiu Lodromanean
3504732d6b
Merge pull request #20572 from woocommerce/fix/20565
...
API: Return error code if parent is invalid when updating attributes.
2018-06-20 06:01:05 -07:00
Claudiu Lodromanean
cff90bb3c0
Merge pull request #20579 from woocommerce/fix/20554
...
Fix: display products on sub-subcategories when sorting parent category by price
2018-06-20 06:00:03 -07:00
Boro Sitnikovski
15cbe7daee
Pass current object as context
2018-06-20 14:16:14 +02:00
Boro Sitnikovski
1b90d8114c
Add filter for tax calculation in cart totals
2018-06-20 10:51:05 +02:00
Rodrigo Primo
c1960167f4
Fix: display products on sub-subcategories when sorting parent category by price
...
The algorithm to add a list of product categories to the query that order products of a given category by price was including only first level sub-categories since PR #20391 . This was happening because `get_terms()` when called with the argument `parent` will only return direct children. To fix this and get all children for a given product category, it was necessary to replace `parent` with the argument `child_of`. See #20554 for a more detailed description of the issue that this commit fixes.
2018-06-19 15:47:43 -03:00
Rodrigo Primo
5f6b0df7b2
PHPCS fixes
2018-06-19 15:46:33 -03:00
Claudiu Lodromanean
4c998f06c4
Merge pull request #20550 from woocommerce/update/mailing-list-signup
...
Mailing list - update form action
2018-06-19 08:19:02 -07:00
Claudiu Lodromanean
ec5fcc333e
Merge pull request #20573 from woocommerce/fix/20521
...
Update status based on stock, always
2018-06-19 07:41:55 -07:00
Mike Jolley
245e1768f9
Bump version so update routine gets triggered in master
2018-06-19 15:34:45 +01:00
Mike Jolley
49d0a09242
Merge pull request #20569 from davefx/patch-8
...
Cast multiselect and select keys as strings
2018-06-19 15:22:22 +01:00
Mike Jolley
f6519e3361
Merge pull request #20524 from woocommerce/add/wootenbergjitm
...
Wootenberg JITM
2018-06-19 15:20:16 +01:00
Rodrigo Primo
5b5256370a
Ignore a single PHPCS rule instead of ignoring all rules
...
Replace the usage of `// @codingStandardsIgnoreStart` and `// @codingStandardsIgnoreEnd` with `// phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores` on WC_Gateway_Paypal_IPN_Handler::check_response(). Ignoring a single PHPCS rule is better than ignoring everything to protect the line against potential violations of the other rules.
2018-06-19 10:44:45 -03:00
Rodrigo Primo
9263a0b169
Fix: set order status to refunded when a PayPal transaction is refunded
...
Commit c7a3fd2
changed the logic to check if the refund is a full refund to use the strict equal operator (`===`) in the following line:
25be9fc13c/includes/gateways/paypal/includes/class-wc-gateway-paypal-ipn-handler.php (L295)
This change broke the comparison as `$order->get_total()` will return the value respecting the number of decimals after the decimal point set in the option `woocommerce_price_num_decimals` and `wc_format_decimal()`, when called without a second parameter, will not format the received value to use the same number of decimals set in `woocommerce_price_num_decimals`. To fix this issue, this commit passes `wc_get_price_decimals()` as the second parameter to `wc_format_decimal()`. This way both values will always have the same number of decimals and the comparison should work when handling a full refund.
Fixes #20551
2018-06-19 10:42:27 -03:00
Mike Jolley
0cee6a69b0
Update status based on stock, always
2018-06-19 13:35:17 +01:00
Mike Jolley
66ae57699a
Return error code if parent is invalid
2018-06-19 12:54:57 +01:00
David Marín
f28b00d5df
Fixing bug: I was casting the wrong value 😖
2018-06-19 13:31:48 +02:00
Mike Jolley
e0ccc64571
Merge pull request #20560 from shivapoudel/tweak/admin-bar-menu
...
Tweak - logged in user is also checked by is_admin_bar_showing
2018-06-19 10:58:42 +01:00
Gerhard Potgieter
90387e7d7e
Revert "Deprecate manage_stock methods in favor of stock_status methods."
...
This reverts commit 2d9c058876
.
2018-06-19 11:54:07 +02:00
Gerhard Potgieter
8602fd0276
Revert "Deprecate wc_get_product_variation_attributes in favour of WC_Product::get_attributes()"
...
This reverts commit fe7a6c25df
.
2018-06-19 11:53:50 +02:00
Gerhard Potgieter
2d9c058876
Deprecate manage_stock methods in favor of stock_status methods.
...
Closes https://github.com/woocommerce/woocommerce-product-tables-feature-plugin/issues/100
2018-06-19 11:35:57 +02:00
Gerhard Potgieter
fe7a6c25df
Deprecate wc_get_product_variation_attributes in favour of WC_Product::get_attributes()
...
Closes https://github.com/woocommerce/woocommerce-product-tables-feature-plugin/issues/102
2018-06-19 11:22:24 +02:00
David Marín
6649569aa2
Update abstract-wc-settings-api.php
2018-06-19 07:12:39 +02:00
David Marín
597ba7df98
Cast multiselect keys as strings
2018-06-19 06:41:44 +02:00
Rodrigo Primo
5c5cddf26a
Add @return for wc_update_350_order_customer_id() docblock
2018-06-18 15:17:39 -03:00
Rodrigo Primo
43d22a2349
Merge branch 'master' into update/use-post-author-for-customer-id
2018-06-18 15:17:19 -03:00
claudiulodro
1890ef788d
Persist wootenberg notice dismissal
2018-06-18 10:54:01 -07:00
claudiulodro
7148f8da2d
Install/activate the plugin from the notice
2018-06-18 10:42:52 -07:00
Gerhard Potgieter
36d1c318cb
Download Log FK Contraint check ( #20478 )
...
This PR introduces a check on the permission_id FK to ensure that it is not added multiple times on upgrades. It also names the key specifically to ensure future changes to the key can be targeted properly and removes old keys that were added since 3.4.0.
* Add FK check before adding the FK. Also give the FK a name to avoid auto generated names and duplicate keys.
* Remove additional OR
* Remove additional OR
* Final FK check query
* Add foreign key cleanup routine to 3.4.3 db version
* Only check on named foreign key now that we have a cleanup routine in place, use specific phpcignore
* Rework formatting of SQL query
* Change way to fetch and add FK, can't use procedural SQL, needs to be done via statements.
* Add table name to lookup
* Only clean up FK on the wc_download_log table
* Remove erenouse bracket
2018-06-18 11:47:47 -03:00