Commit Graph

24053 Commits

Author SHA1 Message Date
Joel Rowley 390f46f7da Attempt to fix type conversion precision bug 2017-11-04 16:33:23 -04:00
Grzegorz Rola 56e8b8bc57 Refresh order edit page on every refund. Ie. when refund generates some data for custom meta boxes. 2017-11-04 16:40:52 +01:00
Grzegorz Rola d8a6cc6eb2 Ability to search in DB logs. 2017-11-04 16:09:54 +01:00
Joel Rowley ca2ca5a5ca Add unit test to demonstrate type conversion precision bug 2017-11-03 22:20:41 -04:00
Jeremy Pry 9eee3805c0 Allow for cloning the cart object
This handles creating new instances of the `$session` and `$fees_api` properties.
2017-11-03 15:50:43 -04:00
Jeremy Pry 0cca83ff83 Add separate methods to register hooks
This facilitates cloning the cart without registering additonal hooks unnecessarily.
2017-11-03 15:49:45 -04:00
Claudiu Lodromanean 63877adfb6
Merge pull request #17554 from woocommerce/update/changelog
Update changelog
2017-11-03 11:18:53 -07:00
claudiulodro 14a8c37c23 Update changelog 2017-11-03 11:09:09 -07:00
Claudiu Lodromanean 40fc935f31
Merge pull request #17547 from franticpsyx/fix-flex-control-nav-selector-scope
[3.2] Fix `flex-control-nav` selector scope
2017-11-03 10:49:58 -07:00
Manos Psychogyiopoulos 55b3f339d3 Fix flex-control-nac selector scope
Maybe a bit more verbose than needed, but gets the job done.
2017-11-03 16:40:06 +02:00
Mike Koval d15aaf682d
Update class-wc-emails.php
Added missing param sent_to_admin to email-addresses template
2017-11-03 11:33:55 +02:00
Mike Jolley 482621a1de
Merge pull request #17536 from woocommerce/fix/out-of-base-rounding-discounts
Out of base rounding error fixes
2017-11-02 20:13:55 +00:00
Mike Jolley 040443a04d Out of base rounding error fixes 2017-11-02 20:00:49 +00:00
Tim Howe 1b08688ea6 Checkout Postcode / Zip validation error message missing Billing / Shipping Identification #17474 (#17535)
* Fix - #17413
Update the `json_search_products` function to use the
`wc_products_array_filter_visible` filter rather then the
`wc_products_array_filter_editable` filter

Added an additional if condition to the `is_visible` function to check
if the product had a parent and it's post status

* remove additional comment from code to keep it clean

* Reverted filter

* Updated the is_visable to check parent product post status using WooCommerce class methods

* Updated the `if empty` check to make it is compatible with older versions of php

* Removed the empty check infavor of just testing on the returned value
Updated the way we are retrieving the partent product object

* Moved the `$parent_product` variable assigment out of the if statement.

* Applied and tested tregenza patch to updates Checkout Postcode / Zip validation error message

* Cleaned up code from testing
2017-11-02 11:54:03 -07:00
Mike Jolley 2e1e9291bc Remove trailing `.`
@claudiulodro Only affects master.
2017-11-02 18:29:34 +00:00
Mike Jolley 98f2fd5685
Merge pull request #17529 from woocommerce/fix/17517
Adjust out of base discount logic
2017-11-02 18:20:09 +00:00
Claudiu Lodromanean d0c1f16f26
Merge pull request #17533 from woocommerce/fix/17509
Remove kses from term description
2017-11-02 10:47:57 -07:00
Claudiu Lodromanean d1157d6f0b
Merge pull request #17521 from woocommerce/fix/sort-tabs-callback
For code doing it wrong, ensure priority is set
2017-11-02 10:46:17 -07:00
Claudiu Lodromanean 120b67b8af
Merge pull request #17520 from woocommerce/fix/17403
Fixes a flexslider bug when there is only 1 image on the product page.
2017-11-02 10:45:00 -07:00
Mike Jolley 19c288fa5b
Merge pull request #17530 from woocommerce/fix/17526
Packages should be shippable until proven otherwise.
2017-11-02 17:36:58 +00:00
Mike Jolley 92a8bdf616 Remove kses from term description
Closes #17509
2017-11-02 17:13:02 +00:00
Markus Aurich b27602db3f fix: wrong validation of polish postcodes (#17523) 2017-11-02 16:55:37 +00:00
claudiulodro d7161cb711 Refactor it a little bit 2017-11-02 09:24:09 -07:00
Mike Jolley 9ea088f6c9 Adjust discount logic when out of base 2017-11-02 16:18:51 +00:00
Mike Jolley 624c1a9516 Allow items to be sent directly to the discounts class 2017-11-02 16:18:17 +00:00
claudiulodro a3ffd72842 Packages are shippable until proven otherwise 2017-11-02 09:16:17 -07:00
Gabriel Reguly f19023a9e1
Shipping selection for multiple packages
Allow for shipping method selection when using multiple packages.

Previous code selected/posted only the changed method, but multiple packages require all methods.
2017-11-02 14:15:29 -02:00
Mike Jolley 130d719d90 Small rounding error in items table 2017-11-02 15:03:43 +00:00
Mike Jolley eb1bcee8b9 For code doing it wrong, ensure priority is set 2017-11-02 11:13:24 +00:00
Mike Jolley 2044a3737b Fixes a flexslider bug when there is only 1 image on the product page.
Closes #17403

This also fixes zoom issues due to the above error.
2017-11-02 11:09:34 +00:00
Mike Jolley bf4063b0cb
Merge pull request #17499 from woocommerce/fix/17492
Removed wp_kses_post() from product archive description
2017-11-01 16:48:31 +00:00
Mike Jolley e14814aa2a min 2017-11-01 16:41:01 +00:00
Mike Jolley aab1d688d1 Add a wc_checkout_form.scroll_to_notices helper and use scrollIntoView
scrollIntoView lets us scroll something to the centre of the viewport.
This ensures the messages, or top of the checkout, comes into view.

Falls back to the old logic for older browsers.

Closes #17220 which didn’t solve the issue.
2017-11-01 16:40:31 +00:00
Claudiu Lodromanean 9117414dae
Merge pull request #17491 from woocommerce/update/17101
wc_caught_exception method
2017-11-01 09:31:57 -07:00
Claudiu Lodromanean a63f8388e5
Merge pull request #17493 from woocommerce/fix/17202
Iris picker validation
2017-11-01 09:21:27 -07:00
Claudio Sanches 9e29ed0bda Removed wp_kses_post() from product archive description
Fixes #17492
2017-11-01 14:16:19 -02:00
Mike Jolley 8fd6864a23 Merge branch 'pr/17457' 2017-11-01 15:48:57 +00:00
Mike Jolley 7606666de9 woocommerce_pre_customer_bought_product 2017-11-01 15:48:46 +00:00
Mike Jolley a31c328b1d Min 2017-11-01 13:53:04 +00:00
Mike Jolley c9f685f1e0 Simple reset on validation error in iris picker 2017-11-01 13:52:08 +00:00
Mike Jolley 547bde0ceb Improve iris code 2017-11-01 13:47:20 +00:00
Mike Jolley 3e7eb3f8fe Style errors in iris picker 2017-11-01 13:47:13 +00:00
Mike Jolley 9c096b419f Merge branch 'pr/17435' 2017-11-01 13:10:37 +00:00
Mike Jolley 9d92b8a8ff phpcs 2017-11-01 13:10:25 +00:00
Tim Howe abea378245 Variation Displayed in Cross-Sell and Upsells with Parent's Post Status set to 'draft' and 'pending review' (#17423)
* Fix - #17413
Update the `json_search_products` function to use the
`wc_products_array_filter_visible` filter rather then the
`wc_products_array_filter_editable` filter

Added an additional if condition to the `is_visible` function to check
if the product had a parent and it's post status

* remove additional comment from code to keep it clean

* Reverted filter

* Updated the is_visable to check parent product post status using WooCommerce class methods

* Updated the `if empty` check to make it is compatible with older versions of php

* Removed the empty check infavor of just testing on the returned value
Updated the way we are retrieving the partent product object

* Moved the `$parent_product` variable assigment out of the if statement.
2017-11-01 12:52:58 +00:00
Mike Jolley ef4c05a393 Merge branch 'pr/17098' 2017-11-01 12:43:35 +00:00
Mike Jolley 415d1ab061 Use global if it exists to improve performance. 2017-11-01 12:43:26 +00:00
Mike Jolley ff02941a53 Merge branch 'pr/17434' 2017-11-01 12:32:52 +00:00
Mike Jolley 80dfbc0ced phpcs tweaks and escaping 2017-11-01 12:32:35 +00:00
Mike Jolley c17e76adc8
Merge pull request #17113 from woocommerce/add/travis-phpcs
Run PHPCS in Travis CI
2017-11-01 12:18:44 +00:00