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
Josh Smith
fe01910b8b
Fixing spacing on WC_Product and WC_Install
2017-08-11 16:49:49 +00:00
Josh Smith
6dadaa0f7f
Merge remote-tracking branch 'upstream/master'
2017-08-11 16:29:16 +00: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