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
Corey Smith
a6cf08d8cf
Wrapped 'Delete selected row(s)' button in condition
2017-08-16 11:56:30 -05:00
Claudiu Lodromanean
5ff7704db4
Merge pull request #16476 from woocommerce/fix/16455
...
Fix breadcrumbs for regular categories
2017-08-16 08:49:01 -07:00
Rami Yushuvaev
4ae42313ce
i18n: Rewrite the translation string logic
...
The single translation string `by` is not easy to translate without a context. In this case, using the context function `_x()` is not the best solution.
A better way would be to create two complete translation strings for refund with a user and without a user.
2017-08-16 14:25:38 +03:00
ragulka
d73e7e4f9d
Prevent unwanted double cart notices ( #16460 )
...
* Don't add shipping zone debug message when doing ajax
Prevent an issue where the "Customer matched zone" debug message is shown twice after first selecting a shipping method and then changing a product's quantity in cart and clicking Update cart.
* Don't pass event object to cart.update_cart
Prevent accidentally preserving cart notices when `wc_update_cart` event is triggered on body. If the event object is passed to update_cart() as the first param, it evaluates to true, forcing existing notices to be preserved.
* Pass custom arguments to cart.update_cart()
Instead of simply not passing the event object, pass any custom arguments, so it's possible to do something like: $( body ).trigger( 'wc_update_cart', true ); to still preserve notices if needed.
2017-08-16 11:34:35 +01:00
Mike Jolley
201b3bc056
Merge pull request #16466 from woocommerce/fix/rounding
...
Fix discounts rounding issues
2017-08-16 11:28:09 +01:00
Mike Jolley
38ab37597c
Merge pull request #16467 from ramiy/patch-1
...
i18n: Simpler translation string with placeholders
2017-08-16 11:26:06 +01:00
Mike Jolley
34ae983cc9
Merge pull request #16470 from ramiy/patch-4
...
i18n: Simpler translation string with placeholders
2017-08-16 11:25:48 +01:00
Mike Jolley
bf84592e87
Merge pull request #16469 from ramiy/patch-3
...
i18n: Merge two similar translation strings
2017-08-16 11:25:23 +01:00
Mike Jolley
3aee17faeb
Fix breadcrumbs for regular categories
...
Closes #16455
2017-08-16 11:22:22 +01:00
Patrick Garman
f19a63e1d7
Merge the DB and DB Table Size tables
2017-08-15 19:52:14 -05:00
Rami Yushuvaev
125ead910a
i18n: Simpler translation string with placeholders
...
One more... replacing function name with `%s` placeholder, this way translators can't misspell the function name.
2017-08-16 00:42:32 +03:00
Rami Yushuvaev
43744e4f27
i18n: Merge two similar translation strings
...
Replace:
`wp_remote_get() failed. Contact your hosting provider.`
`wp_remote_post() failed. Contact your hosting provider.`
With:
`%s failed. Contact your hosting provider.`
Note:
This also a good practice because the function name is outside of the translation string, this way the translator can't misspell the function name.
2017-08-16 00:32:36 +03:00
Rami Yushuvaev
d1f4acc730
i18n: Simpler translation string with placeholders
...
Replace:
`wc_get_product should not be called before the woocommerce_init action.`
With:
`%1$s should not be called before the %2$s action.`
2017-08-16 00:26:14 +03:00
Rami Yushuvaev
0087536296
i18n: Simpler translation string with placeholders
...
Replace:
`WC_Logger::log was called with an invalid level "%s".`
With:
`%1$s was called with an invalid level "%2$s".`
2017-08-16 00:22:46 +03:00
claudiulodro
9a47146716
Fix discounts rounding issues
2017-08-15 14:11:25 -07:00
Claudio Sanches
82a6de2e49
Merge pull request #16459 from ramiy/patch-3
...
i18n: Avoid using HTML tags in translation strings
2017-08-15 14:48:35 -03:00
Claudio Sanches
3a12f7b494
2.1.2 db update functions
2017-08-15 13:01:28 -03:00
Claudio Sanches
339ab41bf1
Remove unfiltered_html capability from Shop Managers
2017-08-15 12:57:12 -03:00
Claudio Sanches
9e8aa83d47
Escape product names on reports
2017-08-15 12:56:35 -03:00
Claudio Sanches
0fec9dbfe7
Merge pull request #16458 from ramiy/patch-2
...
i18n: Simpler translation string with placeholders
2017-08-15 12:49:31 -03:00
Mike Jolley
129eae141a
Fix custom discount amounts not multiplying by qty
2017-08-15 16:25:39 +01:00
Mike Jolley
3c18d5e849
Adjust total discount for ex.tax
2017-08-15 16:25:39 +01:00
Claudio Sanches
7a44c3d700
Merge pull request #16457 from ramiy/patch-1
...
i18n: Simpler translation string with placeholders
2017-08-15 12:05:32 -03:00
Mike Jolley
de35d9ba02
Apply woocommerce_coupon_get_discount_amount without cents
...
cc @claudiulodro
2017-08-15 15:29:22 +01:00
Claudio Sanches
a6017741ad
Merge pull request #16456 from woocommerce/update/status-tools
...
Tool to purge webhook logs
2017-08-15 11:02:27 -03:00
Mike Jolley
835d0ab450
Fix remove tax column
...
Closes #16443
2017-08-15 14:51:12 +01:00
Rami Yushuvaev
6f7c817b78
i18n: Avoid using HTML tags in translation strings
...
This PR moves the `<strong>` HTML tags from the translation strings.
Replacing: `Order scheduled for: <strong>%1$s</strong>.`
With: `Order scheduled for: %s.`
We did the same in WordPress core across several releases (4.3 - 4.7). Because it's makes the translation process to RTL language (like Hebrew) much easier.
2017-08-15 15:07:55 +03:00
Rami Yushuvaev
7ce117a0ca
i18n: Simpler translation string with placeholders
...
Replace:
`The provided handler <code>%s</code> does not implement WC_Log_Handler_Interface.`
With:
`The provided handler %1$s does not implement %2$s.`
2017-08-15 14:48:42 +03:00
Rami Yushuvaev
7ad61068e1
i18n: Simpler translation string with placeholders
...
Replace:
`The class <code>%s</code> provided by woocommerce_logging_class filter must implement <code>WC_Logger_Interface</code>.`
With:
`The class %1$s provided by %2$s filter must implement %3$s.`
2017-08-15 14:39:41 +03:00
Mike Jolley
392ce417bc
docblocks
2017-08-15 12:21:12 +01:00
Mike Jolley
3852ce59c8
Tool to purge webhooks
2017-08-15 12:15:17 +01:00
Mike Jolley
a44a57b5d9
Improve tools page styling
2017-08-15 12:05:34 +01:00
Mike Jolley
f62d505797
Merge pull request #16427 from nyordanov/variation-permalink-infinite-loop
...
Prevent infinite recursion in WC_Post_Data::variation_post_link()
2017-08-15 10:59:36 +01:00
Mike Jolley
4101e313bb
Merge pull request #16392 from woocommerce/feature/admin-apply-discount-15501
...
[WIP] Admin discounts
2017-08-15 10:07:00 +01:00
Mike Jolley
70248b2fa6
Merge pull request #16419 from woocommerce/fix/1645
...
Use array_replace in order item apply_changes
2017-08-15 09:59:02 +01:00
claudiulodro
2eb107b0af
Add 5.2 fallback
2017-08-14 11:45:54 -07:00
claudiulodro
ae80d12d80
Merge master
2017-08-14 11:12:09 -07:00
Claudiu Lodromanean
28c5af4922
Merge pull request #16440 from woocommerce/fix/16422
...
Adjust coupon user limit logic
2017-08-14 10:24:51 -07:00
Claudiu Lodromanean
1f2891cfd3
Merge pull request #16439 from woocommerce/fix/16432
...
Switch CLI tools command over to v2 API
2017-08-14 10:04:02 -07:00
Claudiu Lodromanean
f0126852a5
Merge pull request #16438 from woocommerce/fix/16405
...
Add error handling for wp_insert_term
2017-08-14 10:01:22 -07:00
Rami Yushuvaev
17d10b3e9f
i18n: Fix some translation strings ( #16441 )
...
* i18n: permissions -> permission
* i18n: permissions -> permission
2017-08-14 17:25:08 +01:00
Mike Jolley
be11c1089f
Fix tests
2017-08-14 16:03:50 +01:00
Mike Jolley
7ddfe0703b
Store coupon item taxes
2017-08-14 15:57:51 +01:00
Mike Jolley
c74835ec31
Use WP_User_Query
2017-08-14 12:51:04 +01:00
Mike Jolley
40757ddf86
Search given email against all user fields for matches.
2017-08-14 12:28:19 +01:00
Mike Jolley
6f4fd61a4f
Do not check if logged in
2017-08-14 12:28:03 +01:00
Mike Jolley
147a7f9419
Switch CLI tools command over to v2 API
...
Closes #16432
2017-08-14 10:45:44 +01:00
Mike Jolley
c63e94d299
Add error handling for wp_insert_term
...
Fixes #16405
2017-08-14 10:40:00 +01:00
Mike Jolley
a7f6d49f16
Merge pull request #16421 from bekarice/fix/shipping-availability-filters
...
Pass WC_Shipping_Method instance to availability filters
2017-08-13 11:19:42 +01:00
Nikolay Yordanov
96b4467179
Prevent infinite recursion in WC_Post_Data::variation_post_link()
...
If a variation's parent doesn't exist, WC_Product_Variation::get_parent_id()
will return 0, which causes WC_Post_Data::variation_post_link()
to enter into an infinite recursion trying to get the permalink
of the nonexistent parent
2017-08-12 11:26:32 +01:00
Claudio Sanches
4d87f94622
Merge pull request #16408 from woocommerce/fix/16398
...
CSV Import; correctly set stock props.
2017-08-11 21:49:20 -03:00
Jeroen Sormani
607cd878e0
Settings parent construct ( #16412 )
...
* Miscellaneous cleanup of typos + change some return types for IDE helpers
* Call/use parent::__construct() to add filters for settings output, saving
2017-08-11 21:36:35 -03:00
Claudio Sanches
2ffc09de0d
Merge pull request #16411 from woocommerce/fix/16306
...
Don't subtract negative taxes in net sales report
2017-08-11 21:30:25 -03:00
claudiulodro
b99ed2228c
No array_replace in WP or PHP 5.2
2017-08-11 14:11:46 -07:00
Beka Rice
c54b0ecd9d
Pass WC_Shipping_Method instance to availability filters
2017-08-11 16:36:18 -04:00
claudiulodro
837e7e1ed2
Use array_replace in order item apply_changes
2017-08-11 13:24:43 -07:00
claudiulodro
a0effafef9
Move discount row in frontend
2017-08-11 11:48:08 -07:00
Claudiu Lodromanean
15179b0e48
Merge pull request #16416 from woocommerce/manual-discounts-on-fees-shipping
...
Manual discounts on fees and shipping
2017-08-11 11:30:27 -07:00
claudiulodro
46e003d3c6
Remove shipping and discount lines
2017-08-11 11:10:44 -07:00
Mike Jolley
b826d02f9b
Split tax across items for discounts
2017-08-11 17:53:49 +01:00
Mike Jolley
d61a97cb57
Missing abstract methods
2017-08-11 16:17:24 +01:00
Mike Jolley
1545e46fd5
cache clearing
2017-08-11 16:17:13 +01:00
Mike Jolley
def5e0cdee
get_tax_class_counts_for_items
2017-08-11 16:17:00 +01:00
Mike Jolley
9eece1cb1e
Include shipping and fee in total
2017-08-11 16:16:50 +01:00
Mike Jolley
e20d886972
calculate_item_discounts for clarity
2017-08-11 16:16:36 +01:00
Mike Jolley
2accbdbd45
Load order after updating items
2017-08-11 16:16:22 +01:00
Mike Jolley
3496e8dca4
Match order of cart discount
2017-08-11 16:16:09 +01:00
Mike Jolley
2c5a5b9409
Discounts should be last
2017-08-11 16:15:53 +01:00
Mike Jolley
56726deb5a
Fix recalculate_coupons
2017-08-11 13:52:40 +01:00
Mike Jolley
7620473fa5
Support callback for index
2017-08-11 13:52:28 +01:00
Mike Jolley
5b4e5482dd
Don't subtract negative taxes in net sales report
...
Fixes #16306
2017-08-11 12:38:09 +01:00
Mike Jolley
5587ff6874
Variation data store should remove product_type term on save
...
Closes #16409
2017-08-11 12:32:12 +01:00
Mike Jolley
0f54e57093
CSV Import; correctly set stock props.
...
Closes #16398
2017-08-11 11:07:12 +01:00
Mike Jolley
e124841cbf
Merge pull request #16401 from woocommerce/fix/16378
...
Use new CRUD actions to trigger Webhooks
2017-08-11 10:35:23 +01:00
Claudio Sanches
3f12fd1b01
Fixed missing hooks in legacy REST API
2017-08-10 18:57:31 -03:00
Claudio Sanches
40cb0e2e95
Trigger only customer.created webhook
2017-08-10 18:57:13 -03:00
Claudiu Lodromanean
a5ffbe6e7f
Merge pull request #16403 from woocommerce/fix/16195
...
[Importer] Allow "unfiltered_html" for name, description and short description fields
2017-08-10 13:55:46 -07:00
Claudiu Lodromanean
77bed2396c
Merge pull request #16400 from woocommerce/fix/16394
...
Apply logical sort order to discounts
2017-08-10 13:43:32 -07:00
claudiulodro
3618ef1725
Handle couple todos
2017-08-10 13:37:05 -07:00
claudiulodro
9e70a74857
Styling
2017-08-10 13:29:32 -07:00
Claudio Sanches
a01ffdd11d
Better variable naming for importer parser methods
2017-08-10 17:23:31 -03:00
Claudio Sanches
fe05e09015
Skip title, description and exceprt sanitization and let WP handle it
...
Should simulate the same behavior from WP admin, so just need to skip
extra sanitization, so WP can handle it while salving with
`wp_insert_post()` and `wp_update_post()` where will check for
`unfiltered_html` capability.
WP core already did something like it, but on REST API: https://core.trac.wordpress.org/ticket/38609
Fixes #16195
2017-08-10 17:17:56 -03:00
claudiulodro
28f0431c56
Coupon usage counts
2017-08-10 11:27:13 -07:00
claudiulodro
f1e6fd53bd
Prevent double coupons
2017-08-10 11:14:01 -07:00
claudiulodro
fa35104486
Coupon amount validation
2017-08-10 11:00:57 -07:00
Claudio Sanches
069cf21c08
Use new CRUD actions to trigger Webhooks
...
Closes #16378
2017-08-10 13:56:17 -03:00
Mike Jolley
51dffc0853
Apply logical sort order to discounts
...
Closes #16394
2017-08-10 17:24:27 +01:00
Mike Jolley
db87fc68b9
Fix refs
2017-08-10 16:33:21 +01:00
Mike Jolley
87858d1407
recalc on remove/add
2017-08-10 16:32:24 +01:00
Mike Jolley
30c80c6ad5
Fix tax recalc
2017-08-10 16:22:17 +01:00
Mike Jolley
22d6c789ab
herpa derpa
2017-08-10 15:57:34 +01:00
Mike Jolley
e90fb6d54f
fix discount apply and save
2017-08-10 15:33:01 +01:00
Mike Jolley
cd8fb23884
Add ability to get local item rather than from DB
2017-08-10 14:38:02 +01:00
Mike Jolley
e2599d83c8
Apply methods
2017-08-10 14:22:27 +01:00
Mike Jolley
3dc9f06f6a
Remove fixed discounts correctly
2017-08-10 12:06:03 +01:00
Mike Jolley
06381f28bd
Edit items rather than recreate
2017-08-10 11:38:09 +01:00
Mike Jolley
2a4a078266
Merge branch 'feature/admin-apply-discount-15501' into feature/coupon-remove
2017-08-10 11:25:21 +01:00
Mike Jolley
1fd1699bcd
Ensure isset
2017-08-10 11:25:08 +01:00
claudiulodro
a416ebe09b
It kind-of works.
2017-08-09 14:55:35 -07:00
Mike Jolley
aa82a54f47
Prevent notices
2017-08-09 19:27:19 +01:00
Mike Jolley
e429a27ba4
No need for 'off'
2017-08-09 19:12:33 +01:00
Mike Jolley
5874fb8715
Type and sum fix
2017-08-09 19:11:02 +01:00
Mike Jolley
c556facd41
Fix percent coupon and display
2017-08-09 19:02:10 +01:00
Mike Jolley
f71dc64d35
Manual discounts and negative taxes
2017-08-09 18:53:10 +01:00
claudiulodro
1328e17069
Fix logic
2017-08-09 10:10:46 -07:00
Mike Jolley
2def474421
Order calc
2017-08-09 16:19:10 +01:00
Mike Jolley
f0a9050241
HTML
2017-08-09 16:17:30 +01:00
Mike Jolley
f480c98d11
Data stores
2017-08-09 16:17:02 +01:00
Mike Jolley
d0cd8b3022
WC_Order_Item_Discount
2017-08-09 16:16:44 +01:00
Mike Jolley
722ac5ad78
Load order items
2017-08-09 16:16:36 +01:00
Mike Jolley
6c0750e2e9
Discount lines and button
2017-08-09 14:55:42 +01:00
Mike Jolley
d40edfe9a6
add_order_discount ajax method
2017-08-09 14:54:30 +01:00
Mike Jolley
858d3842ea
Move method so it's available in admin
2017-08-09 14:54:05 +01:00
Mike Jolley
73350e5418
Fake round half down in PHP 5,2
...
Fixes unit tests.
2017-08-09 11:59:50 +01:00
Mike Jolley
30a85e9f8d
Merge branch 'pr/16036'
2017-08-09 10:11:20 +01:00
Mike Jolley
140771e759
Merge branch 'master' into improvement/versions
...
# Conflicts:
# assets/css/admin-rtl.css
# assets/css/admin.css
# assets/css/helper-rtl.css
# assets/css/helper.css
# assets/css/twenty-seventeen-rtl.css
# assets/css/twenty-seventeen.css
# assets/css/wc-setup-rtl.css
# assets/css/wc-setup.css
2017-08-09 10:08:06 +01:00
Mike Jolley
8af2ce8a20
Merge pull request #16379 from EmilEriksen/master
...
Store status_transition in a local variable and reset it before firing hooks in order to avoid infinite loops
2017-08-09 10:01:24 +01:00
Mike Jolley
86a225a8d9
Newsletter signup
2017-08-08 18:00:47 +01:00
Mike Jolley
5443f44fcc
Improve location step
2017-08-08 17:32:21 +01:00
Mike Jolley
c486cea531
copy fix
2017-08-08 17:21:01 +01:00
Mike Jolley
e82ca1c1a6
Styling and unknown plugin detection
2017-08-08 17:12:50 +01:00
Mike Jolley
6e59b540e1
Merge pull request #16382 from woocommerce/improve/16165
...
Allow define customer ID in wc_get_account_formatted_address()
2017-08-08 16:17:26 +01:00
Claudio Sanches
d8af7cdeec
Merge pull request #16380 from woocommerce/fix/16316
...
Fix filename image handling
2017-08-08 12:11:17 -03:00
Claudio Sanches
56f654eb4c
Allow define customer ID in wc_get_account_formatted_address()
...
This should help 3rd party integrations, like custom emails or invoices.
Releated to #16165
2017-08-08 12:08:06 -03:00
Mike Jolley
e9c3ebebdc
Merge branch 'master' into feature/discounts-class
...
# Conflicts:
# includes/abstracts/abstract-wc-data.php
# woocommerce.php
2017-08-08 15:49:59 +01:00
Mike Jolley
3778918a0a
Merge branch 'master' into pr/14751
...
# Conflicts:
# includes/class-wc-structured-data.php
2017-08-08 15:28:31 +01:00
Mike Jolley
396faa19d7
phpcs
2017-08-08 15:25:32 +01:00
Mike Jolley
90f0a835b1
Fix filename image handling
2017-08-08 15:00:03 +01:00
Mike Jolley
866f1cd818
Merge branch 'master' into pr/16191
...
# Conflicts:
# includes/wc-account-functions.php
2017-08-08 13:20:17 +01:00
Mike Jolley
a97d3470db
Merge branch 'master' into pr/16164
...
# Conflicts:
# includes/class-wc-cache-helper.php
2017-08-08 13:12:37 +01:00
Mike Jolley
73eb086696
Merge branch 'pr/16165'
2017-08-08 13:10:16 +01:00
Mike Jolley
2f6aaa85bb
Avoid using meta directly
2017-08-08 13:04:27 +01:00
Mike Jolley
19d0841b70
Merge pull request #16340 from grey-rsi/wc-emails-filters
...
Add filters to make possible send emails in language different from d…
2017-08-08 11:53:36 +01:00
Mike Jolley
202498298e
Merge pull request #16374 from woocommerce/fix/12273-4
...
Product attributes helper functions implementation
2017-08-08 11:51:38 +01:00
Emil Kjær Eriksen
ee830d19b4
Store status_transition in a local variable and reset it before firing hooks
2017-08-08 12:47:16 +02:00
Mike Jolley
a4b81c2a22
Merge pull request #16252 from helgatheviking/issues-16221-settings-save-order
...
Move settings init/save to load-$settings hook. Closes #16221
2017-08-08 11:40:17 +01:00
Mike Jolley
684a2b22ed
typo
2017-08-08 11:07:36 +01:00
Mike Jolley
e7ff4186eb
remove include
2017-08-08 10:52:54 +01:00
Mike Jolley
ceb191e73e
The world is not ready for WC_Cart_Item
2017-08-08 10:52:31 +01:00
Mike Jolley
6dc67ee133
phpcs
2017-08-08 10:51:35 +01:00
Mike Jolley
81806617d7
Fix total and rounding logic for tests
2017-08-08 09:24:26 +01:00
Claudio Sanches
1a9b499be8
Apply attribute helper functions to importers and REST API
2017-08-07 22:34:25 -03:00
Claudio Sanches
70e0ab857e
Implement attributes functions to admin
2017-08-07 22:34:20 -03:00
Claudio Sanches
a3a3d7c242
Initial implementation of product attribute helper functions
2017-08-07 22:33:57 -03:00
Claudio Sanches
2796615054
Flush rewrite rules after delete attributes
2017-08-07 22:30:14 -03:00
Claudio Sanches
6dfcf95b5e
Properly update and delete attributes
...
- Now keep all the original hooks without deprecated anything,
- Update product metadata and terms metadata while changing slugs.
- Delete terms while deleting attributes
2017-08-07 22:29:37 -03:00
Claudio Sanches
29e73d27f4
Introduced woocommerce_attribute_created
...
And flush rewrite rules when created attribute.
2017-08-07 22:26:46 -03:00
Claudio Sanches
dd36ae87d3
Improved wc_create_attribute() inline doc
2017-08-07 22:26:42 -03:00
claudiulodro
c8a7ac8940
Unit tests
2017-08-07 14:31:58 -07:00
Claudio Sanches
53ea3c8b96
Merge branch 'master' into fix/16347
2017-08-07 16:36:36 -03:00
Claudiu Lodromanean
0286023878
Merge pull request #16367 from woocommerce/fix/16287
...
Fix variable stock status setting by using CRUD methods
2017-08-07 11:31:10 -07:00
Claudiu Lodromanean
dd094088b0
Merge pull request #16336 from woocommerce/fix/16241
...
Only return tax classes if product is taxable.
2017-08-07 10:02:02 -07:00
Mike Jolley
7a829036c2
Fix tests
2017-08-07 17:49:46 +01:00
Mike Jolley
f20081c33c
Merge pull request #16334 from woocommerce/fix/16253
...
Add precision to price filter
2017-08-07 17:19:44 +01:00
Mike Jolley
299fcc327c
Merge remote-tracking branch 'origin/master'
...
# Conflicts:
# includes/class-wc-cache-helper.php
2017-08-07 17:11:26 +01:00
Mike Jolley
622b4b35d6
Remove white space
2017-08-07 17:10:36 +01:00
Mike Jolley
baa5da8e6e
Merge branch 'master' into pr/16301
2017-08-07 17:10:18 +01:00
Claudiu Lodromanean
f7ef7588b9
Merge pull request #16360 from woocommerce/fix/16337
...
nocache headers during form actions
2017-08-07 08:59:34 -07:00
Mike Jolley
8db31eefe2
Fix variable stock status setting by using CRUD methods
...
Closes #16287
2017-08-07 15:16:38 +01:00
Boro Sitnikovski
9022261f13
Fix cache issue.
...
From discussion with @mikejolley:
The class is not doing its job of invaliding cache after adding a line item.
At any point (action hook), a 3pd can call `get_items` and it will cache the items for that particular order so any subsequent calls to it will return bad data.
Unless you ADD items, `get_items` will return good data.
So adding items in this case is not invalidating, so that's the bug.
Relates to: https://github.com/woocommerce/woocommerce-bookings/issues/1310
2017-08-07 15:29:17 +02:00
Mike Jolley
d46988b6a6
Improve add payment method logic
2017-08-07 12:39:16 +01:00
Mike Jolley
847e4859f8
Include add_payment_method in gateway abstract
2017-08-07 12:38:50 +01:00
Mike Jolley
862f67d98b
wc_get_var helper method
2017-08-07 11:02:19 +01:00
Mike Jolley
e2839d3c09
Add nocache_headers to early update actions
2017-08-07 11:02:02 +01:00
Mike Jolley
af1dce3544
Set nocache constants on all nocache_headers
2017-08-07 11:01:38 +01:00
Boro Sitnikovski
d1dc2a4390
Fix fatal error on deleting refunded order
2017-08-07 11:38:10 +02:00
Mike Jolley
2b0a672ba7
Merge pull request #16348 from jamesckemp/patch-6
...
Add sorting ID and menu orders to sorting action
2017-08-06 20:36:34 +01:00
Patrick Garman
1314158a14
Add “site size” areas to system status report
...
The size of the site very much impacts the status of the site. This type of information would be extremely helpful when supporting a site.
1) post counts - can reveal high volumes of specific kinds of post types both within WC (orders, products, etc) or outside (revisions, attachments, third party ones, etc)
2) table sizes - a site with a 5MB postmeta table is very different than a site with a 5GB postmeta table, which is different than a site with a 50GB postmeta table, and require different kinds of support and focus.
2017-08-06 01:15:10 -04:00
James Kemp
8ebe8a1720
Add sorting ID and menu orders to sorting action
2017-08-05 12:05:47 +01:00
claudiulodro
48f03b15ed
Use correct server variable
2017-08-04 14:27:22 -07:00
claudiulodro
c634ac6cf1
Prevent auto updates if dangerous.
2017-08-03 11:42:19 -07:00
Claudiu Lodromanean
ab543148ff
Merge pull request #16335 from woocommerce/fix/16309
...
Add shortcode to description output in structured data
2017-08-03 11:09:16 -07:00
sergey.r
62d078edf5
Add filters to make possible send emails in language different from default
2017-08-03 14:58:44 +03:00
Mike Jolley
958bd092ba
Add date/time to hover.
...
Closes #16331
2017-08-03 08:48:17 +02:00
Mike Jolley
6af275da6e
Only return tax classes if product is taxable.
...
Fixes #16241
2017-08-03 08:44:02 +02:00
Mike Jolley
827083c051
Add shortcode to description output in structured data
...
Closes #16309
2017-08-03 08:28:35 +02:00
Mike Jolley
52b10d8be4
Merge pull request #16313 from opportus/master
...
Fixes #16010
2017-08-03 08:24:12 +02:00
Mike Jolley
d79ebf7a2f
Typo in tag text, fixes #16332
2017-08-03 08:19:57 +02:00
Mike Jolley
39af6fbe94
Add precision to price filter
...
Closes #16253
2017-08-03 08:17:23 +02:00
Mike Jolley
cbb8d48f5f
Merge pull request #16291 from woocommerce/improvement/13645
...
Product search helpers.
2017-08-03 08:03:37 +02:00
claudiulodro
338f51df31
Remove duplicate class
2017-08-02 14:59:01 -07:00
claudiulodro
7f614d17d4
Modularize to corral different areas better
2017-08-02 14:57:17 -07:00
claudiulodro
80708255ee
Fix inc tax price calculation
2017-08-02 11:07:33 -07:00
claudiulodro
7c0afc1fed
Comments
2017-08-01 15:24:15 -07:00
claudiulodro
9b22463c69
Little cleanup
2017-08-01 15:17:35 -07:00
claudiulodro
343b3913a4
Updates screen modal.
2017-08-01 15:04:11 -07:00
claudiulodro
91f1d41842
Clarify logic
2017-08-01 13:21:23 -07:00
claudiulodro
5e8f957f3a
Formatting
2017-08-01 12:52:12 -07:00
Claudiu Lodromanean
46090bca0d
Merge pull request #16302 from bekarice/fix/deprecation-notice-product-type
...
Fix PHP deprecation notice
2017-08-01 10:55:48 -07:00
opportus
f448c692ca
Fixes #16010
...
Allows single SD item having a `@context`
2017-08-01 14:32:40 +02:00
Mike Jolley
4a0ea16eda
Defer re-calc when adding grouped products to cart
...
Closes #16235
2017-08-01 13:36:46 +02:00
claudiulodro
036d709b19
Use item subtotal for discount item price
2017-07-31 14:44:51 -07:00
Beka Rice
e78b4d4d1e
Fix PHP deprecation notice
2017-07-31 17:16:08 -04:00
claudiulodro
8fac8fc80b
Cleanup
2017-07-31 13:18:39 -07:00
claudiulodro
43cbcd04ef
Remove extra calcs and populate item totals
2017-07-31 11:48:34 -07:00
Marian Kadanka
6183a840db
Fix product category archives not being cached due to inconsistency
...
Wordpress function get_queried_object_id() returns conflicting IDs
for pages and product category archives which in current
implementation results in product category archives possibly not
being cached if their tag ID conflicts with Woocommerce's special
page IDs - cart, checkout, etc.
Let's switch to implementation using is_page() to address this.
2017-07-31 20:47:19 +02:00
Claudiu Lodromanean
95ffa441e0
Merge pull request #16290 from woocommerce/feature/15500-1
...
Soft deprecated WC_Cart->coupon_applied_count
2017-07-31 09:16:33 -07:00
claudiulodro
e1fad0d7eb
Bring up to date with master
2017-07-28 14:27:19 -07:00
Claudio Sanches
77855f9d07
Soft deprecated WC_Cart->coupon_applied_count
2017-07-28 18:12:56 -03:00
Claudio Sanches
b8305f150e
Use WC_Cart_Totals to calculate totals
2017-07-28 17:41:46 -03:00
Claudio Sanches
de52221004
Fixe fatal error while trying to sum an empty array
2017-07-28 17:38:43 -03:00
claudiulodro
d9c2b2cdea
Cleanup
2017-07-28 13:38:12 -07:00
claudiulodro
8dc0641149
Remove uneeded parse args
2017-07-28 13:31:53 -07:00
claudiulodro
b5e5f035fb
Clean up
2017-07-28 13:27:19 -07:00
Will G
3a6a8872f3
Fix script 'async' property typo in WP_Admin_Help
2017-07-28 16:05:06 -04:00
claudiulodro
e335724c50
Finalize product query
2017-07-28 11:59:44 -07:00
Mike Jolley
0839f5716b
phpcs
2017-07-28 17:49:39 +01:00
Mike Jolley
c16df62b54
Fix tests and bootstrap
2017-07-28 17:43:08 +01:00
Mike Jolley
64e04c614a
fix variable in calculate_discounts
2017-07-28 16:43:51 +01:00
Mike Jolley
14717d4ebb
fix call to apply_coupon_fixed_cart_remainder
2017-07-28 16:33:02 +01:00
Mike Jolley
c7cb46a524
Fix array shift usage
2017-07-28 16:31:11 +01:00
Mike Jolley
9170b61a1c
fix in cents logic direction.
2017-07-28 16:17:57 +01:00
Mike Jolley
e23e55bb27
Methods for getting specific totals and discounts whilst keeping storage in a single array
2017-07-28 15:35:41 +01:00
Mike Jolley
51fbb1aec3
set_items_from_cart
2017-07-28 13:02:39 +01:00
Mike Jolley
9b458f9368
Remove private validation methods from coupon and use discounts class
2017-07-28 12:20:49 +01:00
Mike Jolley
5ed2f147a7
woocommerce_coupon_is_valid
2017-07-28 11:51:57 +01:00
claudiulodro
b56b87c97b
Good progress on wc_discount and manual discount handling
2017-07-27 14:08:38 -07:00
claudiulodro
3a11e345a6
Fix some things and hook up discount class
2017-07-27 11:08:22 -07:00
claudiulodro
409320482a
Get everything working again
2017-07-27 10:37:20 -07:00
claudiulodro
0aa9894bae
Merge remote-tracking branch 'origin/feature/discounts-class' into HEAD
2017-07-27 09:32:08 -07:00
Claudiu Lodromanean
74d33bd510
Merge pull request #16275 from woocommerce/feature/discounts-class-totals-refactored
...
Cart totals class and calculation improvements
2017-07-27 09:01:55 -07:00
Mike Jolley
fcfa510445
Fixed totals tests
2017-07-27 16:57:05 +01:00
Mike Jolley
decda1edf6
Merge pull request #16168 from webspecnick/add-filter-to-export-product-args
...
Add a filter to arguments passed to wc_get_products during prepare_data_to_export()
2017-07-27 15:58:39 +01:00
Mike Jolley
f47bb39a06
Merge pull request #15479 from woocommerce/add/poc-no-managing-meta-directly
...
Proof of concept to error when internal meta props are accessed directly
2017-07-27 15:54:24 +01:00
Claudio Sanches
fc5f199906
Deprecated WC_Coupon validation methods
2017-07-27 11:46:17 -03:00
Mike Jolley
795d8fa2fd
Tests
2017-07-27 15:46:02 +01:00
Mike Jolley
ded2be8d28
Legacy filters
2017-07-27 15:31:10 +01:00
Mike Jolley
6054519605
Discount taxes
2017-07-27 13:48:58 +01:00
Mike Jolley
98db84dfdd
Passing tests
2017-07-27 11:01:48 +01:00
Mike Jolley
c6b8ad598f
Precision functions
2017-07-27 10:51:08 +01:00
Mike Jolley
306db69eaf
Remove order subclass
2017-07-27 10:49:47 +01:00
Mike Jolley
ad2e408a66
Merge pull request #16267 from Valks/patch-1
...
Fix incorrect access level in class-wc-product-variation.php
2017-07-27 08:31:13 +01:00
claudiulodro
cfb04f0ead
Boolval wasnt added til php 5.5
2017-07-26 13:48:36 -07:00
claudiulodro
d15a2f5f6a
Make tax calculation optional
2017-07-26 13:46:50 -07:00
claudiulodro
ea0bd7980a
Get order totals working
2017-07-26 12:06:05 -07:00
claudiulodro
77838d05bb
Fix unknown item variable
2017-07-26 10:25:08 -07:00
Mike Jolley
b9b4336c1b
Removed some duplicate keys
2017-07-26 16:50:34 +01:00
Claudiu Lodromanean
b10d61eef3
Merge pull request #16219 from Nabesaka/master
...
Output custom attributes to radio inputs
2017-07-26 08:15:16 -07:00
Claudiu Lodromanean
2900ceca30
Merge pull request #16213 from woocommerce/fix/16206
...
Remove duplicate inherited method
2017-07-26 08:05:27 -07:00
Mike Jolley
abdb325d83
Order items
2017-07-26 15:47:30 +01:00
Valks
dd857d25eb
Update class-wc-product-variation.php
...
The variable $post_type is incorrectly public, must be protected.
2017-07-27 00:00:21 +10:00
Mike Jolley
1faae6a7aa
Order subclass
2017-07-26 14:32:43 +01:00
Mike Jolley
250dabaf41
WC_Cart_Totals subclass
2017-07-26 12:44:06 +01:00
Mike Jolley
052be04ee7
Use passed through cart item, rather than try to generate a custom one
2017-07-26 11:26:50 +01:00
Mike Jolley
e9f35febd0
Store cart item as part of items array
2017-07-26 11:26:35 +01:00
Mike Jolley
457a7c2a32
phpcs/tidy discounts class
2017-07-26 11:07:17 +01:00
Mike Jolley
58b54673d1
Merge pull request #16256 from woocommerce/feature/discounts-coupon-validation
...
Add coupon validation logic to WC_Discounts
2017-07-26 10:21:56 +01:00
Claudio Sanches
0f58d0cfc1
Merge pull request #16214 from woocommerce/fix/16179
...
Ensure we have a http URL for file path replacements
2017-07-26 01:21:58 -03:00
Claudio Sanches
70c2f7436b
Merge pull request #16233 from woocommerce/fix/16232
...
Check data is an array in set_variation method
2017-07-26 01:15:01 -03:00
Claudio Sanches
f0dfff4a86
Sync with feature/discounts-class
2017-07-25 22:41:18 -03:00
Claudio Sanches
2573adedd5
Moved coupon validation logic to WC_Discounts
2017-07-25 22:36:41 -03:00
claudiulodro
dfee2c0cbe
Maybe integrate cart and total classes
2017-07-25 14:44:54 -07:00
Mike Jolley
889a3cfdd5
Merge pull request #16111 from woocommerce/fix/15986
...
Improve tracking page validation
2017-07-25 21:04:16 +01:00
Kathy Darling
fe0c190894
Move settings init/save to load-$settings hook. Closes #16221
2017-07-25 14:43:26 -04:00
claudiulodro
ec6d11bd67
Just needs visibility support and cleanup
2017-07-25 10:01:24 -07:00
Mike Jolley
b68adf748b
Tests pass
2017-07-25 17:25:06 +01:00
claudiulodro
689c5e7006
Better code
2017-07-25 08:36:01 -07:00
Mike Jolley
474799889f
Disable discounts tests until rewritten
2017-07-25 15:57:58 +01:00
Mike Jolley
40cb2c9cb0
phpcs
2017-07-25 15:24:00 +01:00
Mike Jolley
4c4f26ff41
Changes to allow shipping to be calculated from totals class
...
Moved some items from
https://github.com/woocommerce/woocommerce/pull/11889/files to support
this.
2017-07-25 15:11:32 +01:00
Mike Jolley
e8e200195f
fees pass
2017-07-25 14:05:49 +01:00
Fulvio Notarstefano
7781b2ea4d
[ #16242 ] Add context to woocommerce_backordered_item_meta_name
2017-07-25 11:54:03 +08:00
claudiulodro
cdbead8961
Clean up and tests
2017-07-24 15:05:23 -07:00
Mike Jolley
ee545e7793
Totals progress
2017-07-24 17:21:08 +01:00
Mike Jolley
504a216582
Check data is an array in set_variation method
...
Closes #16232
2017-07-24 10:43:34 +01:00
Mike Jolley
45a9826a80
Totals class and tests files
2017-07-23 12:05:11 +01:00
Mike Jolley
45258a7e02
Started adding totals class from https://github.com/woocommerce/woocommerce/pull/11889/files
2017-07-21 16:49:52 +01:00
Paul Robinson
7c01201e34
Add custom attributes into radio fields for woocommerce_form_field
2017-07-21 14:23:21 +01:00
Mike Jolley
83b60573fa
Framework for discount class
2017-07-21 14:22:40 +01:00
Mike Jolley
fd12c344f8
Ensure we have a http URL for file path replacements
...
Closes #16179
2017-07-21 11:11:17 +01:00
Mike Jolley
e44450a40c
Remove duplicate inherited method
...
Closes #16206
2017-07-21 10:39:24 +01:00
Claudio Sanches
cb3e1de0be
Fixed coding standards
2017-07-20 18:14:53 -03:00
Mike Jolley
499519eaac
WC_Discount class
2017-07-20 20:50:09 +01:00
Mike Jolley
e5ec0e66e3
fixed discount
2017-07-20 20:33:27 +01:00
Jaydeep Rami
46d3638089
Fix missing return statement ( #16148 )
...
* Fix missing return statement
* Fix missing return statement
* Fix missing return statement
* Fix missing return statement
* Fix missing return statement
* Fix missing return statement
2017-07-20 18:01:14 +01:00
Mike Jolley
0e96bd8a93
Discount rows
2017-07-20 17:34:30 +01:00
Claudio Sanches
48cfff4ab1
Merge pull request #16199 from woocommerce/fix/16145
...
Unset variable prices on read.
2017-07-20 12:39:19 -03:00
Mike Jolley
06c1a2ad8d
apply discount
2017-07-20 14:33:38 +01:00
Mike Jolley
3faa1c1ee9
Unset variable prices on read.
...
Closes #16145
2017-07-20 12:48:14 +01:00
Adrian Mörchen
d7484336c1
Fixed wrong class reference in comment
2017-07-20 13:29:54 +02:00
Saul Fautley
68470b51a4
Updated structured data for products
...
- Replaced outdated `priceSpecification` with `AggregateOffer`.
- Restructured data according to Google's latest specifications.
- Use product short_description if available.
2017-07-19 18:53:02 +02:00
Mike Jolley
f77fc21785
test_get_applied_coupons
2017-07-19 16:17:58 +01:00
Mike Jolley
24fcf52c59
Store applied_coupons
2017-07-19 15:55:56 +01:00
Claudio Sanches
18873ac9a7
Merge pull request #16189 from woocommerce/update/16153
...
Use comment_status input name
2017-07-19 11:23:06 -03:00
Mike Jolley
916294b7d0
Use comment_status input name
...
Closes #16153
2017-07-19 15:18:33 +01:00
Claudio Sanches
0a5cbae506
Merge pull request #16188 from woocommerce/fix/16184
...
Unchecked checkbox should be an empty string
2017-07-19 11:09:39 -03:00
Mike Jolley
578da2d126
Unchecked checkbox should be an empty string
...
Closes #16184
2017-07-19 14:58:46 +01:00
Claudio Sanches
af4c8b4d34
Merge pull request #16186 from woocommerce/fix/16157
...
Fix copy pasta errors in refunded email template
2017-07-19 10:52:23 -03:00
Claudio Sanches
eedc83b037
Merge pull request #16185 from woocommerce/fix/16156
...
Add placeholders array used in descriptions and for find and replace
2017-07-19 10:51:53 -03:00
Mike Jolley
16870c9c25
Fix copy pasta errors in refunded email template
...
Closes #16157
2017-07-19 14:30:47 +01:00
Mike Jolley
28cb0909c8
Add placeholders array used in descriptions and for find and replace
...
Fixes #16156
2017-07-19 14:25:00 +01:00
Mike Jolley
3c12a06c46
Limit to x
2017-07-19 13:49:22 +01:00
Mike Jolley
dd7fe5f158
More tests and precision fixes
2017-07-19 12:26:01 +01:00
Mike Jolley
8d277a263b
Sort by order + zone ID as a fallback in shipping zones
...
Fixes #16170
2017-07-19 10:16:50 +01:00
jaydeeprami
55100562b3
Fix typo in '@oaram' to '@param'
2017-07-19 08:14:41 +05:30
Mike Jolley
3a76e4492e
todos
2017-07-18 20:48:19 +01:00
Mike Jolley
d24faebea8
Split fixed cart from other discounts in class.
2017-07-18 20:42:47 +01:00
Mike Jolley
37fbd96de8
Small tidyup
2017-07-18 18:52:50 +01:00
Mike Jolley
2b9e3aafdd
fix endless loop of death
2017-07-18 18:47:05 +01:00
Mike Jolley
6a9e612a83
Some progress on actual discounts
2017-07-18 18:07:46 +01:00
Nick Hoobin
25038f6d0f
Add a filter to arguments passed to wc_get_products during prepare_data_to_export()
2017-07-18 10:38:36 -05:00
Mike Jolley
268628c09c
Include cart item class
2017-07-18 15:42:54 +01:00
Mike Jolley
cc8eb28724
Set items based on cart or an order, with tests
2017-07-18 15:42:46 +01:00
Mike Jolley
7f715e4776
WC_Cart_Item class
2017-07-18 15:42:29 +01:00
Paul Wilde
b64d855d96
Introduce `wc_get_account_formatted_address` function which removes a bunch of logic outside of the my-account template file.
2017-07-18 15:18:53 +01:00
Paul Wilde
60bbb41be8
Introduce `wc_get_account_orders_actions` function to reduce the amount of logic inside the account orders template files.
2017-07-18 15:03:26 +01:00
Mike Jolley
91dbdb0c4c
Correct value
2017-07-18 14:29:14 +01:00
Mike Jolley
efaa606894
Merge branch 'master' into feature/discounts-class
2017-07-18 14:27:20 +01:00
Mike Jolley
dfd7aa78d5
Use class raw data, don't pass it
...
#16127 caused an issue with fields which don’t require passing args
e.g. esc_url_raw callback. This broke tests.
2017-07-18 14:20:14 +01:00
Mike Jolley
31d535c932
Methods and tests
2017-07-18 14:04:56 +01:00
Mike Jolley
96f0a6e375
DateTime docblocks
2017-07-18 11:46:11 +01:00
Claudio Sanches
8b1b8b6b28
Initial WC_Discounts class
2017-07-18 01:43:31 -03:00
Claudio Sanches
90691e881f
Merge pull request #16140 from woocommerce/update/16136
...
Added `woocommerce_data_store_wp_{$this->meta_type}_read_meta` filter
2017-07-17 19:24:44 -03:00
Mike Jolley
0d7cb826cb
Restore transient
2017-07-17 19:36:45 +01:00
Mike Jolley
5642ee0c4d
Only check active plugins
2017-07-17 19:35:14 +01:00
Mike Jolley
0b606c8bbe
Styling and code tidy
2017-07-17 19:30:21 +01:00
Mike Jolley
ece770490f
Escape and localise
2017-07-17 18:14:38 +01:00
Mike Jolley
809ff9c31d
correct escaping
2017-07-17 18:13:18 +01:00
Mike Jolley
8c17027eb6
Merge branch 'master' into improvement/versions
...
# Conflicts:
# assets/css/admin-rtl.css
# assets/css/admin.css
# assets/css/helper-rtl.css
# assets/css/helper.css
# assets/css/twenty-seventeen-rtl.css
# assets/css/twenty-seventeen.css
# assets/css/wc-setup-rtl.css
# assets/css/wc-setup.css
# assets/css/woocommerce-rtl.css
# assets/css/woocommerce.css
2017-07-17 18:04:28 +01:00
Jaydeep Rami
3522857d23
Fix typo in WooCommerce plugin ( #16135 )
...
* Fixed typo
* Fixed more typo
* Fixed more typo
* Fix tyop
* Fix more typo
* Fix more typo
* Fix typo
* Fix typo
* Fix typo
* Fix typo datatime object
* Fix short name of compat
* Fix typo: update short name
* Fix typo "deactive" to "deactivate" and short BW - Compat
* Fix typo "Backwards compat"
* Fix typo 'parameters'
* Fix more typo 'pararmeters'
* Fix typo 'compund'
* FIx typo order
* Fix typo
* Fix typo 'incorrecly'
* Fix typo 'genarate'
* Fix typo 'reletive'
* Fix typo 'Handly'
* Fix typo 'rotatated'
* Fix typo
* Fix typo 'additonal'
* Fix typos
2017-07-17 11:10:52 +01:00
Mike Jolley
3f1144cf06
Merge pull request #16115 from woocommerce/refactor/woocommerce-class
...
Moving WooCommerce class to a separate file and fixing coding standards
2017-07-17 11:09:45 +01:00
Mike Jolley
62a3554c22
Merge pull request #16114 from woocommerce/fix/rest-api-options
...
[REST API] Allow OPTIONS requests again
2017-07-17 11:08:48 +01:00
Mike Jolley
0517673cfa
Reverse results of wc_array_cartesian so variations are created in a more expected way
...
Closes #16117
2017-07-17 11:02:47 +01:00
Mike Jolley
a2a34cf0be
Added `woocommerce_data_store_wp_{$this->meta_type}_read_meta` filter
...
#16136
2017-07-17 10:34:44 +01:00
terence1990
f93413920b
Changed template name to receipt
2017-07-15 17:41:34 +01:00
claudiulodro
35c4c7fbe6
v2
2017-07-14 13:47:29 -07:00
claudiulodro
129763dadf
Split up notices
2017-07-14 12:44:16 -07:00
Claudiu Lodromanean
19d844fa53
Merge pull request #16129 from woocommerce/fix/16128
...
Fixed missing reviews in product_page shortcode with SKU
2017-07-14 10:19:38 -07:00
claudiulodro
8c8684b8aa
Move meta query init above sku query
2017-07-14 10:10:37 -07:00
claudiulodro
96bc5e6f95
cleanup
2017-07-14 10:07:18 -07:00
Claudio Sanches
e5ebfb6141
Fixed missing reviews for product_page shortcode with SKU
...
When quering with SKU, WP_Query does not set `is_single` as true and this
makes fail the check inside `comments_template()`.
Closes #16128
2017-07-14 14:06:18 -03:00
claudiulodro
b04534bb85
Hook everything up to wc_product_query
2017-07-14 10:01:25 -07:00
claudiulodro
f66198c37d
Initial working wc_get_products
2017-07-14 09:50:20 -07:00
Claudio Sanches
4d3d377bcf
Merge pull request #16127 from woocommerce/fix/16119
...
Importing products with relative fields and skus
2017-07-14 12:55:11 -03:00
Claudio Sanches
14ff34ef81
Moved constants to main class and applied new description
2017-07-14 12:49:16 -03:00
Claudio Sanches
2e663af024
Merge pull request #16122 from woocommerce/update/16069
...
Check stock levels before showing payment form
2017-07-14 12:35:26 -03:00
Claudio Sanches
4f7b152b96
Merge pull request #16120 from woocommerce/fix/16118
...
Cast report data to floats
2017-07-14 12:34:00 -03:00
Mike Jolley
f63b2e24df
Merge pull request #16125 from websupporter/issue-16124
...
Switch to coupons internal get_email_restrictions() (solves #16124 )
2017-07-14 12:34:43 +01:00
Mike Jolley
2bc7f075f5
Make sure placeholders have or check for SKUS
...
Fixes #16119
2017-07-14 12:33:14 +01:00
Mike Jolley
02dc61677a
Improve cleanup of fails
2017-07-14 11:38:49 +01:00
websupporter
72baa43fe2
switch to coupons internal get_email_restrictions()
2017-07-14 13:37:00 +03:00
Mike Jolley
1c6a629d78
Check stock levels before showing payment form
2017-07-14 10:48:43 +01:00
Mike Jolley
44ef034a94
Cast report data to floats
...
#16118
2017-07-14 10:26:07 +01:00
Claudio Sanches
eb4caec13e
Applies wc_delete_order_note() and properly delete notes by AJAX
2017-07-13 19:38:37 -03:00
claudiulodro
40198bf2c8
Modal beta
2017-07-13 15:38:12 -07:00
Claudio Sanches
97f9dab0ce
Applies wc_get_order_notes() on admin
2017-07-13 19:33:20 -03:00
Claudio Sanches
1b93282245
Change note to content
2017-07-13 19:30:25 -03:00
claudiulodro
addee6335c
Save incase of accidental update
2017-07-13 13:16:35 -07:00
claudiulodro
20ebe8c193
Modal
2017-07-13 12:47:13 -07:00
Claudio Sanches
fe550d5322
Fixed coding standards
2017-07-13 15:57:46 -03:00
Claudio Sanches
89bbd4acfa
Prevent direct access
2017-07-13 15:46:34 -03:00
Aristeides Stathopoulos
e4bf9b3d78
Properly define constants after moving class outside main plugin file.
2017-07-13 15:44:23 -03:00
Aristeides Stathopoulos
e7ffb9f910
Move WooCommerce class to separate file.
2017-07-13 15:44:20 -03:00
Claudio Sanches
8aa2701514
Merge pull request #16113 from woocommerce/fix/cod-shipping-logic
...
Improves cash on delivery logic when dealing with multiple methods
2017-07-13 15:23:15 -03:00
Claudio Sanches
f37e066d97
[REST API] Allow OPTIONS requests again
2017-07-13 15:19:17 -03:00
Claudio Sanches
940019f245
Merge pull request #16103 from jconroy/api-terms-page-data
...
Add the "Terms and conditions" page to the api system status pages property
2017-07-13 15:17:48 -03:00
claudiulodro
45ba7fcbbb
Corral things together
2017-07-13 11:00:39 -07:00
Mike Jolley
37fc4c8f77
Ajaxify the product category filter ( #16110 )
...
* Ajaxify the product category filter
Closes #12773
* Min
2017-07-13 17:04:40 +01:00
Claudiu Lodromanean
287b0107b1
Merge pull request #16109 from woocommerce/fix/15858
...
add next button to pointers and allow it to be dismissed
2017-07-13 08:45:49 -07:00
Claudiu Lodromanean
c5443dddf5
Merge pull request #16107 from woocommerce/update/13171
...
Ajaxify widget remove from cart button
2017-07-13 08:41:36 -07:00
Claudiu Lodromanean
268166ecd0
Merge pull request #16093 from woocommerce/fix/15824
...
Fix select box styling in 2017
2017-07-13 08:28:51 -07:00
Mike Jolley
982edb2f9f
Improves cash on delivery logic when dealing with multiple methods
...
If an order has multiple shipping methods, check all against the
allowed methods using a simple array_diff.
2017-07-13 16:21:59 +01:00
Mike Jolley
175e93deb1
Custom colors
2017-07-13 15:05:22 +01:00
Beka Rice
1f95709e42
Fix deprecation notice from accessing order props directly
2017-07-13 09:56:46 -04:00
Mike Jolley
ac4d2db43a
Improve tracking page validation
...
Ensures error messages are vague but reflect the posted data.
Closes #15986
2017-07-13 14:50:30 +01:00
Mike Jolley
d63cf8c52f
add next button to pointers and allow it to be dismissed
...
Closes #15858
2017-07-13 13:09:52 +01:00
Mike Jolley
7c321a2269
Ajaxify widget remove from cart button
...
Fixes #13171
2017-07-13 12:15:13 +01:00
Ninos Ego
6b101d790e
Cleanup: WC_Query ( #15800 )
...
* Cleanup: WC_Query
Since WP 4.5 search_post_excerpt() is not needed anymore
* Fixed: Deprecate functions instead removing them
* Fixed: Don't forget to return param, otherwise existing filters would not work anymore
* Increased deprecated version from 3.1 to 3.2 because of milestone in PR
* Typo
2017-07-13 11:28:51 +01:00
Mike Jolley
6d65be1264
Merge pull request #16099 from woocommerce/feature/15982
...
Order note helper functions
2017-07-13 11:22:02 +01:00
Jason Conroy
0d91f008ac
Add terms and conditions to page to api pages property
2017-07-13 16:26:20 +10:00
Claudio Sanches
3265f18af8
Tidy up wc_delete_order_note()
2017-07-12 18:46:19 -03:00
Claudio Sanches
85873d3d28
Not allow 'count' and 'fields' in wc_get_order_notes()
2017-07-12 18:45:27 -03:00
claudiulodro
e4840f95c0
escape param wasnt added til php5.3
2017-07-12 14:25:23 -07:00
Claudio Sanches
ac8b7f7087
Fixed docblocks
2017-07-12 18:05:44 -03:00
Claudio Sanches
d93214e68e
Order note helper functions
2017-07-12 18:03:39 -03:00
claudiulodro
753979ec49
WC_Product_Query
2017-07-12 13:58:39 -07:00
claudiulodro
b355e016cd
Do notice in a pop-up
2017-07-12 12:38:19 -07:00
Konstantin Kovshenin
75e3f3973b
Helper: Fix plugin information modals for some extensions.
...
Adds a woo- prefix to the slug when fetching update information
for themes and extensions. Allows us to look up these slugs later
when fetching plugin information and pass the correct product id
to the /info endpoint.
2017-07-12 19:14:48 +03:00
Konstantin Kovshenin
c91922a004
Helper: Add a label to lifetime subscriptions.
2017-07-12 18:37:10 +03:00
Claudiu Lodromanean
14aaebd3f5
Merge pull request #16094 from woocommerce/fix/15256
...
Check we have an object before using product props
2017-07-12 08:25:04 -07:00
Mike Jolley
fdcf16bb60
Merge branch 'master' into update/15563
...
# Conflicts:
# assets/css/admin-rtl.css
# assets/css/admin.css
# assets/css/helper-rtl.css
# assets/css/helper.css
# assets/css/wc-setup-rtl.css
# assets/css/wc-setup.css
# assets/css/woocommerce-rtl.css
# assets/css/woocommerce.css
2017-07-12 16:18:13 +01:00
Claudiu Lodromanean
bce6e927bb
Merge pull request #16091 from woocommerce/fix/15763
...
Adjust variation name logic
2017-07-12 08:13:49 -07:00
Claudiu Lodromanean
de21898b70
Merge pull request #16090 from woocommerce/fix/16084
...
Sanitize keys in reports class
2017-07-12 08:05:11 -07:00
Mike Jolley
b3e0804462
Check we have an object before using product props
...
Fixes #15256
2017-07-12 15:58:54 +01:00
claudiulodro
0f134d2b6f
Begin product query
2017-07-12 07:44:53 -07:00
Mike Jolley
022c528b3e
Remove value renaming code
2017-07-12 15:18:05 +01:00
Mike Jolley
6421b2a0be
Fix rtrim for non - separators
2017-07-12 15:17:48 +01:00
webspecnick
49ba871795
Add enclosure and escape arguments to importer. Introduce filter to change importer arguments ( #16053 )
...
* Introduce woocommerce_product_csv_importer_args filter.
* Add extra args to WC_Product_CSV_Importer. Have fgetcsv use extra args
* Update to follow coding standards.
2017-07-12 12:11:44 +01:00
Mike Jolley
58338354e5
Merge pull request #16085 from woocommerce/add-cross-sells-filter
...
Add cross-sells filter
2017-07-12 11:24:28 +01:00
Mike Jolley
25cbd4ada8
Sanitize keys in reports class
2017-07-12 10:53:39 +01:00
claudiulodro
4c4526424a
Remove race condition
2017-07-11 13:21:42 -07:00
claudiulodro
8dd21ec1c4
Resolve merge conflicts
2017-07-11 12:11:01 -07:00
claudiulodro
c557a71f14
Better phrasing
2017-07-11 12:04:43 -07:00
claudiulodro
0444cdef3c
Initial notice implementation
2017-07-11 11:59:39 -07:00
Caleb Burks
572cf3813f
Spacing/typo fix
...
Should really combine all three of these filters into one as well.
2017-07-11 13:37:43 -05:00
Caleb Burks
03d71cd8ee
Add filter for cart cross-sells
2017-07-11 13:33:51 -05:00
Claudio Sanches
fd1cb2d67f
Merge pull request #16052 from woocommerce/feature/13189-refactored
...
Add select2 to layered nav
2017-07-11 12:39:33 -03:00
Claudio Sanches
2335b5edf5
Merge pull request #16065 from mjangstadt/patch-1
...
Explicitly set include path
2017-07-11 12:30:01 -03:00
Mike Jolley
ca54ae0068
Merge pull request #16077 from woocommerce/fix/16072-2
...
[REST API] Check if is a valid instance of WC_Product before load data
2017-07-11 16:29:21 +01:00
Claudio Sanches
4262e83187
[REST API] Check if is a valid instance of WC_Product before load data
...
Closes #16072
2017-07-11 12:27:56 -03:00
Claudio Sanches
fa850ecfb4
Removed PayPal legacy code
2017-07-11 12:09:57 -03:00
Mike Jolley
b6847ebe60
remove exit
2017-07-11 16:09:31 +01:00
claudiulodro
f79c4a254c
Good progress
2017-07-11 07:52:40 -07:00
Mike Jolley
94b32e644a
HTML emails
2017-07-11 14:52:30 +01:00
Mike Angstadt
00e8c9a505
removed leading slashes
...
removed leading slashes
2017-07-11 08:45:06 -05:00
Mike Angstadt
2239ad6dcb
updated based on reviewer feedback
...
Updated based on reviewer feedback.
2017-07-11 08:43:55 -05:00
Mike Jolley
3939f50ced
Download display in account/checkout
2017-07-11 13:45:35 +01:00
Mike Jolley
70420db6fd
Spacing
2017-07-11 11:31:02 +01:00
Mike Jolley
ba2063efa4
Merge pull request #15961 from electrokit/order_again_merge_option
...
Feature: Add option for merging when using 'Order Again'
2017-07-11 11:23:33 +01:00
Mike Jolley
bb39053211
Merge pull request #16066 from woocommerce/fix/rest-of-the-world-zone-copy-change
...
Change the "Rest of the World" zone name to "Locations not covered by your other zones" everywhere
2017-07-11 10:51:44 +01:00
Mike Jolley
5c32abfe6b
Merge pull request #16054 from woocommerce/fix/16043
...
Fix styling and connect button in non-english languages
2017-07-11 10:49:09 +01:00
Mike Jolley
be4a3fc99a
Typo in set_instance_id() method
...
Closes #16067
2017-07-11 10:38:50 +01:00
Terence O'Donoghue
43eaa8356a
Fixed template reference spacing
2017-07-11 09:53:50 +01:00
Daniel Rey Lopez
04a83b0faa
Change the "Rest of the World" zone name to "Locations not covered by your other zones" everywhere
2017-07-11 08:19:42 +01:00
Mike Angstadt
fa4e4e40fd
Explicitly set include path
...
If you override include_path and are including this file from outside this directory's context, performance will degrade as both those locations are incorrectly checked first getting an EOF before include() falls back to looking in this directory.
Explicitly setting the include path checks this directory first regardless of calling context location or include_path override so is ideal.
2017-07-10 21:33:42 -05:00
Claudiu Lodromanean
1699a9769f
Merge pull request #16020 from woocommerce/feature/12273
...
New attribute helper functions
2017-07-10 13:20:59 -07:00
Claudio Sanches
a7582d50da
Merge pull request #16050 from woocommerce/update/15985
...
Use select2 in cart
2017-07-10 15:40:56 -03:00
Claudio Sanches
1c18a458be
Merge pull request #15994 from woocommerce/fix/15964
...
Correct embed code
2017-07-10 15:30:25 -03:00
claudiulodro
03403b2c44
Allow times in date fields
2017-07-10 09:19:59 -07:00
Claudiu Lodromanean
d850ca235a
Merge pull request #16044 from woocommerce/fix/16027
...
Pass correct value to woocommerce_shipping_classes_save_class when inserting a new term
2017-07-10 08:32:15 -07:00
Mike Jolley
e432d2d0ad
Fix styling and connect button in non-english languages
2017-07-10 16:29:06 +01:00
Mike Jolley
872dca636f
Feedback
2017-07-10 14:48:42 +01:00
Mike Jolley
a6967d69d4
Normalise state keys
2017-07-10 14:48:42 +01:00
Mike Jolley
a527a9566b
Add select2 to layered nav
2017-07-10 14:36:47 +01:00
Mike Jolley
0a3856c5cb
Merge branch 'master' into feature-13189
2017-07-10 13:24:42 +01:00
Mike Jolley
555f093ac3
Use select2 in cart
...
Fixes #15985
2017-07-10 13:14:27 +01:00
Gustaf Folin
ead5f208fa
Add hook around empty_cart()
2017-07-10 12:13:38 +02:00
Mike Jolley
6685a4199c
Pass correct value to woocommerce_shipping_classes_save_class when inserting a new term
...
Fixes #16027
2017-07-10 10:03:46 +01:00
Akeda Bagus
53807185a8
Fixed typos.
...
These typos are catched by `misspell` program.
```
find . -type f | grep -v assets | grep -v dummy-data | grep -v i18n | grep -v node_modules | grep -v .git | grep -v apigen | xargs misspell -w
```
Some results were excluded because of 3rd party ownership and non-english
sentences.
2017-07-10 12:56:28 +07:00
Claudio Sanches
a7c4eb3eb7
Improved error handler for wc_delete_attribute()
2017-07-07 18:49:46 -03:00
Claudio Sanches
66895afb38
Added comment to remember about CloudFlare email obfuscation
2017-07-07 18:26:53 -03:00
Claudio Sanches
fe1d54b360
Added missing global $wpdb in wc_delete_attribute()
2017-07-07 18:15:59 -03:00
Claudio Sanches
e235984e75
Fixed inserted data and clear transients after save attributes
2017-07-07 17:52:13 -03:00
Claudio Sanches
1600edee95
Delete attribute helper
2017-07-07 17:44:31 -03:00
Claudio Sanches
b02fc2f516
Updated and create attribute helpers
2017-07-07 17:40:40 -03:00
Claudio Sanches
1f039280aa
Added function to get attribute
2017-07-07 17:40:19 -03:00
Claudio Sanches
86d09b0c6a
Avoid CloudFlare email obfuscation.
...
Closes #15082
2017-07-07 15:45:05 -03:00
Claudio Sanches
4ea14a35e2
Merge pull request #16012 from woocommerce/update/14837
...
Refactor shipping rate to include instance IDs
2017-07-07 12:23:27 -03:00
Claudio Sanches
24864ef6ca
Merge pull request #16010 from woocommerce/update/16006
...
Revise where context is added.
2017-07-07 12:20:15 -03:00
Claudiu Lodromanean
07c9a2de3d
Merge pull request #16011 from woocommerce/update/16002
...
Set allow one slide to false for flexslider
2017-07-07 08:17:33 -07:00
Mike Jolley
f79f5bb5cb
Simply enables drag and drop sorting on the grouped product field
...
Fixes #14560
2017-07-07 14:20:30 +01:00
Mike Jolley
e539d3125a
Refactor shipping rate to include instance IDs
2017-07-07 14:14:29 +01:00
Mike Jolley
79e3bbd0bf
Set allow one slide to false for flexslider
...
Closes #16002
2017-07-07 11:37:10 +01:00
Mike Jolley
d7ed343178
Revise where context is added.
2017-07-07 11:20:34 +01:00
Claudio Sanches
fe9dd86482
Merge pull request #16001 from woocommerce/fix/format
...
Fix code formatting
2017-07-06 18:29:53 -03:00
Claudiu Lodromanean
74d6c2378b
Merge pull request #16000 from woocommerce/fix/csv-mapping
...
Change how mapping is posted
2017-07-06 11:37:24 -07:00
claudiulodro
863193bd34
Fix linting problems
2017-07-06 11:12:02 -07:00
Mike Jolley
b91da6f021
Change how mapping is posted
2017-07-06 18:51:36 +01:00
claudiulodro
be2bbd3d3d
Update missed select2
2017-07-06 10:43:10 -07:00
claudiulodro
8a8daabf26
Update with master and recompile assets
2017-07-06 09:06:30 -07:00
claudiulodro
a2867fae6a
Set up select2 and selectWoo
2017-07-06 08:43:10 -07:00
Claudiu Lodromanean
d2fffea591
Merge pull request #15988 from rellect/activation_rtl
...
Add rtl support for activation.css
2017-07-06 08:22:48 -07:00
Farook Ibrahim
d0489206a7
minor typo fix
2017-07-06 17:24:28 +05:30
Mike Jolley
ec9a380143
Correct embed code
2017-07-06 12:32:28 +01:00
Refael Iliaguyev
40ef76c12b
Add rtl support for activation.css
2017-07-06 09:03:15 +03:00
Claudio Sanches
7e7194ce47
Merge pull request #15974 from woocommerce/fix/15965
...
Update customer with CRUD and set session data at the same time.
2017-07-05 15:58:21 -03:00
Claudio Sanches
10f039ad79
Merge pull request #15827 from woocommerce/fix/15818
...
If stock changes between page load and editing, reject stock changes
2017-07-05 15:49:58 -03:00
Mike Jolley
beba2757ee
feedback
2017-07-05 17:11:34 +01:00
Mike Jolley
57ee9f58cf
Update customer with CRUD and set session data at the same time.
...
Fixes #15965
2017-07-05 12:21:46 +01:00
Mike Jolley
d03982bea1
Merge pull request #15966 from woocommerce/fix/15960
...
[REST API] Allow unset product shipping_class
2017-07-05 11:24:12 +01:00
Mike Jolley
f1a19b1424
Merge pull request #15971 from woocommerce/hotfix-fatal-error
...
Prevent fatal error on order page
2017-07-05 11:10:42 +01:00
Mike Jolley
4c6a6516c0
Merge pull request #15970 from woocommerce/fix/extra-refund-classes
...
Removed non-existing classes from refunds form on admin
2017-07-05 11:05:32 +01:00
Nicola Mustone
cd5c24d7c3
Prevent fatal error on order page
...
Prevents a fatal error on order pages when variable products are purchased.
2017-07-05 08:20:08 +03:00
Claudio Sanches
6ad9987e0d
Merge pull request #15658 from woocommerce/update/15643
...
get_filtered_term_product_counts performance
2017-07-04 17:30:09 -03:00
Claudio Sanches
0a8a64f10c
Merge pull request #15679 from woocommerce/update/coupon-cart-logic
...
Use the product object rather than function wc_get_product_ids_on_sale
2017-07-04 17:29:30 -03:00
Claudio Sanches
d2f9211ffb
Removed non-existing classes from refunds form on admin
2017-07-04 17:27:25 -03:00
Claudio Sanches
2d8902c91f
Hide Cross-sells if external, removed in #15692
2017-07-04 16:44:08 -03:00
Claudio Sanches
74cba6f863
Merge branch 'master' into grouped-products-settings-improvement
2017-07-04 16:41:33 -03:00
Claudio Sanches
ee87024d82
Merge pull request #15956 from woocommerce/add-cart-readdition-notice
...
Use ajax when restoring an item in the cart
2017-07-04 16:35:23 -03:00
Claudio Sanches
bf91127682
Merge pull request #15788 from woocommerce/fix/13353
...
Clean up user is_paying_customer after deleting an order
2017-07-04 16:26:45 -03:00
Claudio Sanches
78a6585f19
[REST API] Allow unset product shipping_class
...
Closes #15960
2017-07-04 14:01:17 -03:00
Claudio Sanches
cb58142c02
Merge pull request #15963 from woocommerce/fix/slashes-on-objects
...
leave objects alone rather than slashing in the meta api
2017-07-04 12:45:29 -03:00
Claudio Sanches
00237a6de9
Merge pull request #15959 from woocommerce/update/15949
...
Extra error checking in terms page content
2017-07-04 12:25:44 -03:00
Claudio Sanches
cf12271398
Merge pull request #15934 from woocommerce/fix/15917
...
Convert data to UTF-8 on import
2017-07-04 12:20:17 -03:00
Mike Jolley
b9757cca00
leave objects alone rather than slashing in the meta api
...
Has tests. Prevents notices when you pass an object to add_meta_data.
2017-07-04 16:09:21 +01:00
Claudio Sanches
888498deb0
Merge pull request #15939 from woocommerce/fix/15911
...
Use wp_get_raw_referer in my account redirect, and validate all falling back to my account
2017-07-04 12:04:41 -03:00
Mike Jolley
93a98ea91c
Merge pull request #15954 from woocommerce/fix-15946
...
Add `cart_subtotal` to the shipping package
2017-07-04 12:59:24 +01:00
Job
f67bf6892e
Coupon help ( #15958 )
...
* Solves #15945
Change description of help tip to be accurate for current coupon system
* update caps use on PR
2017-07-04 12:07:26 +01:00
Mike Jolley
6f6f410ce1
Use wc_get_raw_referer
2017-07-04 12:05:21 +01:00
Mike Jolley
b0a9c5a9c2
Merge pull request #15952 from woocommerce/add-filter-parameter-15923
...
Pass $column_id into export filter
2017-07-04 11:28:33 +01:00
Mike Jolley
05a328cd33
Merge pull request #15948 from woocommerce/fix/15947
...
Remove side-effects
2017-07-04 11:27:20 +01:00
Mike Jolley
6bc1c16d77
Merge pull request #15900 from JustinSainton/patch-4
...
Add search_customers() filter
2017-07-04 10:54:50 +01:00
Caleb Burks
2d52e6e398
Use ajax when restoring an item in the cart
2017-07-04 04:01:59 -05:00
Caleb Burks
5af560e32a
Add `cart_subtotal` to the shipping package
2017-07-04 03:05:39 -05:00
Caleb Burks
02ffdaf8f5
Remove unnecessary variable
...
Don’t this change any longer. Got rid of a foreach loop that was using it.
2017-07-04 01:44:10 -05:00
Caleb Burks
c7693b201d
Require T&Cs be a different page than checkout
2017-07-04 01:36:34 -05:00
Caleb Burks
817efb551c
Pass $column_id into export filter
2017-07-03 23:32:44 -05:00
claudiulodro
fe09b4cf54
Remove side-effects
2017-07-03 13:57:32 -07:00
Justin Sainton
31d8a4a6d7
Add additional parenthesis.
...
Maybe don't throw fatal errors.
2017-07-03 10:19:57 -07:00
Claudiu Lodromanean
7046b480a0
Merge pull request #15907 from tractus/fix-order-date-query
...
Fixes major issue with wc_get_orders with both date_before and date_after specified
2017-07-03 09:32:24 -07:00
Claudiu Lodromanean
204c13fe8c
Merge pull request #15936 from woocommerce/fix/15930
...
WP_Query expects paged, not page
2017-07-03 09:01:55 -07:00
Claudio Sanches
87e4e7241d
Merge pull request #15933 from woocommerce/remove/sandbox-fix
...
Remove sandbox status forcing in PayPal gateway
2017-07-03 12:52:45 -03:00
Claudio Sanches
4b716ce269
Merge pull request #15943 from woocommerce/update/15926
...
Added method to escape commas in CSV values
2017-07-03 11:33:43 -03:00
Claudio Sanches
8f4dc81596
Merge pull request #15944 from woocommerce/update/12477
...
Remove use of protocol relative URls. Filter can be used if needed.
2017-07-03 11:30:07 -03:00
Mike Jolley
432a665a2b
Remove use of protocol relative URls. Filter can be used if needed.
2017-07-03 14:58:53 +01:00
Mike Jolley
eb5c6d688b
Added method to escape commas in CSV values
2017-07-03 14:47:48 +01:00
Mike Jolley
f9d1bbba73
Use wp_get_raw_referer in my account redirect, and validate all falling back to my account
...
Fixes #15911
Closes #15912
2017-07-03 13:30:32 +01:00
Mike Jolley
8ab1ef459c
WP_Query expects paged, not page
...
Fixes #15930
2017-07-03 12:24:30 +01:00
Mike Jolley
655fc002ed
Convert data to UTF-8 on import
...
Fixes #15917
2017-07-03 12:07:07 +01:00
Mike Jolley
59a4f3b0d9
Remove sandbox status forcing in PayPal gateway
...
Closes #15899
@californiakat Should we add
https://stackoverflow.com/questions/4298117/paypal-ipn-always-return-pay
ment-status-pending-on-sandbox to the docs when 3.2 launches?
2017-07-03 10:46:32 +01:00