Commit Graph

24142 Commits

Author SHA1 Message Date
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
Chase Wiseman c7df19f3ab Return the "no payment methods" message to the Add Payment Method page 2017-11-01 10:13:26 -07:00
Chase Wiseman 5c57be18b0 Conditionally display the Add Payment Method button if there are available gateways 2017-11-01 10:13:01 -07:00
Mike Jolley 1f7ecd9fb9 Merge branch 'master' into tweak/order-screens
# Conflicts:
#	assets/js/frontend/checkout.min.js
2017-11-01 16:52:21 +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
Mike Jolley 6285c79e33 Merge branch 'pr/16550' 2017-11-01 12:10:48 +00:00
Mike Jolley 1da13769c8 Merge branch 'master' into pr/16550
# Conflicts:
#	assets/js/frontend/checkout.min.js
2017-11-01 12:10:39 +00:00
Mike Jolley 026ca73e38
Merge pull request #17482 from woocommerce/fix/17422
Update e2e tests and add e2e DB
2017-11-01 12:01:46 +00:00
Mike Jolley f0e87f1fce
Merge pull request #17481 from woocommerce/fix/a
Start scripts once document is ready
2017-11-01 11:52:44 +00:00
Mike Jolley 5d500ba5fb wc_caught_exception method 2017-11-01 11:41:53 +00:00
Mike Jolley 90f3a46073
Merge pull request #17486 from veisis/patch-1
Class name fix in docblock
2017-11-01 11:06:04 +00:00
veisis fbd1b114db
Class name fix in docblock 2017-11-01 11:59:49 +02:00
claudiulodro 64a4a00198 Add e2e db 2017-10-31 13:50:39 -07:00
claudiulodro d72b29d4b7 Couple tweaks to make test run well on latest WC 2017-10-31 13:36:01 -07:00
Claudiu Lodromanean 06f8e85033
Merge pull request #17480 from woocommerce/grunt-e2e-tests-grep
Add new grunt task to run only a selection of e2e tests
2017-10-31 13:12:46 -07:00
claudiulodro afa0ca23d2 Start scripts once document is ready 2017-10-31 12:27:57 -07:00
claudiulodro 88eb283713 Update e2e tests 2017-10-31 11:14:19 -07:00
Rodrigo Primo 18afd7866f Add new grunt task to run only a selection of e2e tests
Example:

`node_modules/grunt/bin/grunt e2e-tests-grep --grep='should be able to add simple products to the cart'`

Mocha will run only tests that matches the pattern passed to `--grep`
2017-10-31 15:53:51 -02:00
Claudio Sanches 77d4d9a37c
Merge pull request #17476 from woocommerce/pr/17111
Grouped products; allow custom columns and changes to values
2017-10-31 14:12:52 -02:00