Claudio Sanches
1481f1f7b4
Include trailing slash in REQUEST_URI before compare for prevent caching
2016-11-08 17:14:31 -02:00
Claudio Sanches
f23a529329
[REST API] Throw messages when trying to manipulate variations in products endpoint
2016-11-08 13:55:33 -02:00
Claudio Sanches
e1b914d227
Reverted changes that allowed manipulate variations on products endpoint ( #12255 )
2016-11-08 11:14:01 +00:00
Justin Shreve
52aedb5fc4
Remove context param on set_props
2016-11-08 02:28:00 -08:00
Justin Shreve
c7fdb061c3
Implement get/set proxy code.
2016-11-08 02:16:16 -08:00
Justin Shreve
1797c76a14
Implement WC_Data_Store and related code & tests.
2016-11-08 01:39:47 -08:00
Justin Shreve
cd2a4e89b2
Merge pull request #12256 from woocommerce/rest-api-remove-refund-if-failed
...
[REST API] Delete refund if payment gateway API fails
2016-11-08 00:49:04 -08:00
Daniel
78b25b205a
Added 3 new price formatting filters
...
Added filters to wc_get_price_thousand_separator(),
wc_get_price_decimal_separator() and wc_get_price_decimals(). Described
in Issue #12265
2016-11-06 21:55:36 +01:00
Rami Yushuvaev
402216a553
a11y: add `role="button"` to delete note links
2016-11-05 19:12:04 +02:00
Rami Yushuvaev
e71cae8d8f
a11y: make order notes metabox accessible
2016-11-05 18:56:03 +02:00
Claudio Sanches
0c3b0f57e9
[REST API] Delete refund if payment gateway API fails, closes #12248
2016-11-04 18:06:15 -02:00
Claudio Sanches
8adfe15d8f
Removed extra quote from variations attribute dropdown, closes #12251
2016-11-04 17:37:54 -02:00
Rami Yushuvaev
d85075dcb0
a11y: replace `title` attributes with `aria-label`, for better accessibility
2016-11-04 17:41:51 +02:00
Rami Yushuvaev
9469673c05
a11y: remove unneeded `title` attributes
2016-11-04 17:40:15 +02:00
Claudio Sanches
fa7775254b
REST API - Allow remove product category image ( #12247 )
...
* Allow remove product category images
* Allow remove sending an empty array too
2016-11-04 10:19:34 +00:00
Claudio Sanches
f85bb56cb1
Less code on the fly inside ld+json
2016-11-03 15:00:57 -02:00
Claudio Sanches
ed4e7a9e73
Merge pull request #12215 from shivapoudel/dub-form-row-class
...
Fix - Duplicate form-row class in woocommerce form field
2016-11-03 14:18:46 -02:00
Claudio Sanches
2de494e105
Merge pull request #12219 from ramiy/i18n-translation-comments
...
i18n: add translators comments
2016-11-03 13:24:35 -02:00
Claudio Sanches
8db2661c25
Merge pull request #12243 from woocommerce/paid-statuses-12238
...
Use all paid statuses in $customer->get_total_spent()
2016-11-03 13:22:40 -02:00
Zachary
09f53ce778
Add counties for Republic of Ireland, change Postcode label to Eircode ( #12180 )
2016-11-03 11:48:14 +00:00
Lee Willis
237ebc0e95
Filter the (JSON+LD) offers separately from the overall product data ( #12234 )
...
* Filter the offers separately from the overall product markup
* Rename filter as per feedback on the PR
2016-11-03 11:47:45 +00:00
Ismael Ramon
024947d65b
Add 'woocommerce_calc_shipping_tax' filter ( #12242 )
...
Filter `calc_shipping_tax` function the same way as `calc_tax`.
2016-11-03 11:47:12 +00:00
Mike Jolley
32e814eef1
Use all paid statuses in $customer->get_total_spent()
2016-11-03 11:27:03 +00:00
Mike Jolley
5605d2cc48
Correct the docblock
...
Closes #12217
2016-11-02 19:15:06 +00:00
Mike Jolley
c9f0cd8e8c
[2.6] Fix backwards hide empty code
...
Closes #12233
2016-11-02 18:59:13 +00:00
Rami Yushuvaev
55f08d62ae
add translators comments
2016-10-29 23:03:28 +03:00
Rami Yushuvaev
cb0b487433
Fix travis error
2016-10-29 20:51:23 +03:00
Rami Yushuvaev
93d55dade9
add translators comments
2016-10-29 20:32:38 +03:00
Rami Yushuvaev
e705102b6b
Fix travis error
2016-10-29 16:13:46 +03:00
Rami Yushuvaev
9c9f165448
Fix travis error
2016-10-29 16:10:55 +03:00
Rami Yushuvaev
4e36ce7425
add translators comments
2016-10-29 15:57:09 +03:00
Rami Yushuvaev
8ab8bef52e
add translators comments
2016-10-29 13:51:56 +03:00
Rami Yushuvaev
6cc301e58c
add translators comments
2016-10-29 13:16:03 +03:00
Shiva Poudel
74a0bbfc71
Fix - Duplicate form-row class in woocommerce form field
2016-10-28 23:59:28 +05:45
proArtex
8798ee4632
Removed redundant condition ( #12210 )
...
Exception object cannot be empty()
2016-10-28 16:53:54 +01:00
Claudio Sanches
4a1d5d3b0c
Use Order CRUD to save admin order data ( #12181 )
...
* Fixed downlodable permissions while updating orders.
- Fixed undefined $wpdb fatal error
- Fixed how to update permissions when updated the billing_email
cc @mikejolley
* Use order CRUD to update admin order data
* Updated WC_Meta_Box_Order_Data::save() params and updated docblocks
* Missing period
* Handle cache and status on CRUD side
2016-10-28 10:52:01 +01:00
Claudio Sanches
7c28cb4d27
Merge pull request #12199 from woocommerce/product-checkboxes
...
Improved product type options.
2016-10-27 16:04:16 -02:00
Claudio Sanches
fa0c710802
i18n <a> links, closes #12195
2016-10-27 15:36:24 -02:00
Claudio Sanches
9b0b4be843
Improved product type options, closes #12183
2016-10-27 15:06:33 -02:00
Rami Yushuvaev
fe8fa477e8
Fix test error ( #12193 )
...
* i18n: simpler translation strings
* i18n: simpler translation strings
* i18n: readble printf(), and moving the %s placeholder to `%s product`
* i18n: make string translatable and remove the HTML tags
* i18n: avoide using HTML tags in translatino strings
* i18n: move the colon into the translation string and use %s placeholder for the IP
* i18n: use sprintf() on field-validation translation strings, and unify those strings
* i18n: move colons into the translation strings
* i18n: use `%s` placeholder as the site name in "Powered by WooCommerce" string
* i18n: use `%s` placeholder for min and max price
* i18n: rewrite the translation strings printf()
* Fix test error
2016-10-26 19:58:46 -02:00
Rami Yushuvaev
0be4db2261
more i18n updates ( #12189 )
...
* i18n: simpler translation strings
* i18n: simpler translation strings
* i18n: readble printf(), and moving the %s placeholder to `%s product`
* i18n: make string translatable and remove the HTML tags
* i18n: avoide using HTML tags in translatino strings
* i18n: move the colon into the translation string and use %s placeholder for the IP
* i18n: use sprintf() on field-validation translation strings, and unify those strings
* i18n: move colons into the translation strings
* i18n: use `%s` placeholder as the site name in "Powered by WooCommerce" string
* i18n: use `%s` placeholder for min and max price
* i18n: rewrite the translation strings printf()
2016-10-26 14:35:52 -02:00
Rami Yushuvaev
0c1e531091
few more i18n updates ( #12185 )
...
* i18n: simpler translation strings
* i18n: simpler translation strings
* i18n: readble printf(), and moving the %s placeholder to `%s product`
* i18n: make string translatable and remove the HTML tags
* i18n: avoide using HTML tags in translatino strings
2016-10-26 11:31:32 -02:00
Claudio Sanches
c58940258a
Updated $order->id to $order->get_id()
2016-10-25 22:46:36 -02:00
Rami Yushuvaev
59dc477a20
Direction characters (i18n, RLT, a11y) ( #12177 )
...
* RTL+i18n: product title stricture as translation string to allow RTL languages to change `→` TO `←`
* i18n: move the `→` into the translation string to allow RTL languages to translate to `←`
* RTL: product filter indent using `→` and `←` chars
* a11y: remove `←` char, it's a bad accessibility practice to use visual indicators to point to menus
* a11y: remove `←` char, it's a bad accessibility practice to use visual indicators to point to menus
2016-10-25 21:34:50 -02:00
Claudio Sanches
ad349ad89c
Restored context for From: price string
2016-10-25 15:04:59 -02:00
Claudio Sanches
923790dbc7
Merge pull request #12171 from woocommerce/dashboard-widget-permissions-12168
...
[2.6] Split method up and check permissions
2016-10-25 12:46:03 -02:00
Mike Jolley
db922fb27e
Filter and remove empty attributes
...
Closes #12147
2016-10-25 12:42:31 +01:00
Mike Jolley
6c80a08174
[2.6] Split method up and check permissions
...
Closes #12168
2016-10-25 11:43:44 +01:00
Rami Yushuvaev
140d0efb99
i18n: Avoid using HTML tags in translation strings ( #12166 )
...
* i18n: Remove some HTML tags from translation strings
* i18n: simpler translation string
* i18n: translations strings with surrounding `<strong>` HTML tags should be moved outside the translation string
* i18n: Avoide using `<code>' HTML tags in translation strings
* i18n: Split the notice to avoide using HTML tags in translation strings
2016-10-24 21:56:37 -02:00
Vishal Kakadiya
06f206c49b
Changed file name from 'class-' to 'abstract-' ( #12159 )
...
* Changed file name from 'class' to 'abstract'
* Changed file name from 'class' to 'abstract'
* Changed file name from 'class-' to 'abstract-'
2016-10-24 21:49:22 -02:00
Claudio Sanches
b6ee13be67
Merge pull request #12148 from rasmusbe/patch-2
...
Only print js for free shipping fields in admin
2016-10-24 21:47:42 -02:00
Rami Yushuvaev
f27499b501
i18n Improvements ( #12078 )
...
* use %s in translations strings
* merge simmilar error strings
* i18n: use sprintf() in translation strings to make them easier to understand for translators
* i18n: remove sprintf() function from translation string with unused parameter
* i18n: move colons and brackets into the translation strings
* revert comit addaa5d
* Fix broken sprintf()
* i18n: move colons into the translation strings on error messages
* Fix Travis-CI Error: operator must be surrounded by a single space
2016-10-24 08:33:32 +01:00
Rami Yushuvaev
4375618438
i18n context functions ( #12156 )
...
* Replace some context function with translation comments
* Remove two more context function
* Replace another context function with translation comments
2016-10-24 08:31:07 +01:00
Mike Jolley
83aa330621
Enforce loop_shop_post_in array
2016-10-24 07:51:48 +01:00
Terence O'Donoghue
edd14cd8df
New Action for after Product Attribute Settings ( #12099 )
...
Allows developers to add extra checkboxes etc.
2016-10-21 15:31:20 +01:00
Daniel Hüsken
ab7f9dd674
Flush rewrite rules with cron for attribute terms ( #12132 )
2016-10-21 15:29:50 +01:00
Krzysztof Grabania
cb059f5af0
Added address type to filter
...
It will allow to modify address fields only for selected address type
2016-10-21 15:12:45 +02:00
Rasmus
58eaa70424
Only print js for free shipping fields in admin
...
Since WC_Shipping_Method->get_option() runs $this->get_instance_form_fields it prints out the JS even when getting the option outsite admin.
2016-10-21 12:38:35 +02:00
Mike Jolley
500c68d729
[2.6] Use FLOOR and CEIL to get price filter values
...
Fixes the issue where max price is capped at 99. Fixes #12145
2016-10-21 08:58:57 +01:00
Mike Jolley
4bddeee695
Fix shipping sorting display
2016-10-20 10:58:44 +01:00
Justin Shreve
d66df24e9c
Merge pull request #12137 from woocommerce/fix/update_post_meta-id
...
Remove the $id parameter from CRUD update_post_meta & reduce dulpicate code
2016-10-19 11:34:04 -07:00
Mike Jolley
73408342bc
Correct $value in API
2016-10-19 17:16:13 +01:00
Claudio Sanches
d75daa23f0
Merge pull request #12134 from Dartui/patch-1
...
Added polish postcode validation
2016-10-19 13:24:41 -02:00
Justin Shreve
bff6f5f2ad
Remove the $id parameter from Customer & Coupon CRUD's update_post_meta fucntion.
...
This is a private function that will only interact with one specific object ($this->get_id()).
2016-10-19 08:15:49 -07:00
Egill R. Erlendsson
7cbf06f93a
Fix currency symbol for Icelandic Krona
...
The currency symbol for Icelandic Krona is kr, not Kr. This patch fixes
the woocommerce_currency_symbol for ISK.
2016-10-19 13:49:20 +00:00
Krzysztof Grabania
f73ab637fc
Added polish postcode validation
2016-10-19 15:48:13 +02:00
Mike Jolley
ec65084451
[2.6] Send processing email on on-hold to processing transition.
...
Closes #12117
2016-10-19 12:55:22 +01:00
Mike Jolley
81778555c8
Use order statuses when getting refunds in api.
...
Closes #12102
@claudiosmweb
2016-10-19 12:53:49 +01:00
Mike Jolley
9400962c00
[2.6] Fix account email check
...
Fixes #12126
2016-10-19 12:45:50 +01:00
Mike Jolley
62cda06e34
[2.6] Only affect products
...
Fixes #12118
2016-10-19 11:28:46 +01:00
Mike Jolley
958b97a578
Merge pull request #12129 from shivapoudel/plugin-review
...
Update wp.org plugin review rating link
2016-10-19 11:14:21 +01:00
Shiva Poudel
64c6ec8537
Update wp.org plugin review rating link
2016-10-19 11:29:20 +05:45
Mike Jolley
85f22f9f11
Update coupon on pending order
...
Closes #12096
2016-10-18 12:27:56 +01:00
Claudio Sanches
f218b6cfd9
[REST API] Allow filter by on sale products, closes #12093 ( #12105 )
2016-10-18 11:40:13 +01:00
Dwain Maralack
c27fd5c052
Check if the chosen method is set on the package rates. There are rare instances where store manager may disable a shipping option while the users session is still in progress. This results in an unexpected errors and checkout page hanging. Double checking that the chosen method is accessable on the package avoids the error. ( #12111 )
2016-10-18 11:38:44 +01:00
Claudio Sanches
ee061f98ec
[REST API] Better sanitization for product taxonomy filters
2016-10-17 14:39:02 -02:00
Mike Jolley
7e56707850
Enqueue scripts when shortcode is used
2016-10-17 11:49:51 +01:00
Mike Jolley
e0fa344d50
Abort adding variation to cart if invalid rather than just hiding value
2016-10-17 11:33:43 +01:00
Mike Jolley
55e1a50400
[2.6] variation_data should be isset
2016-10-17 11:33:25 +01:00
Mike Jolley
cfbb8d6601
Use meta as a cache for order/spent methods.
...
Closes #12080
2016-10-14 15:11:10 +01:00
Bryce Adams
ea1f9aea65
Remove last order from customers part of the API ( #12081 )
...
Proposed solution to close #12080
* Also removes from tests.
2016-10-14 14:38:35 +01:00
Mike Jolley
5f886c326a
[2.6] Populate attribute dropdown when empty
...
Fixes #11983
2016-10-14 12:09:24 +01:00
Claudio Sanches
507bbffc66
Fixed coding standards
2016-10-14 11:19:20 +01:00
Claudio Sanches
ec79238f30
Added min_price and max_price product filter
2016-10-14 11:19:20 +01:00
Claudio Sanches
21f7bfe7bc
Fixed price meta_query
2016-10-14 11:19:20 +01:00
Claudio Sanches
8339e9ca25
Introduces wc_get_min_max_price_meta_query() function
2016-10-14 11:19:20 +01:00
Claudio Sanches
861606571d
Fixed PHPCBF mistakes
2016-10-14 11:15:11 +01:00
Claudio Sanches
2400a72b93
Filter products in stock or out of stock
2016-10-14 11:15:11 +01:00
Claudio Sanches
d8a03a3083
Fixed coding standards
2016-10-14 11:15:11 +01:00
Claudio Sanches
e57ae3da27
Filter products by tax class
2016-10-14 11:15:11 +01:00
Claudio Sanches
842c39b525
Make easy to add query_meta
2016-10-14 11:15:11 +01:00
Claudio Sanches
92404fc867
Allow filter products by featured post meta
2016-10-14 11:15:11 +01:00
Claudio Sanches
876f7e62d7
Updated WP REST API functions to 2.0-beta15
2016-10-14 11:15:11 +01:00
Claudio Sanches
4aa1689015
Better description for product taxonomy filters
2016-10-14 11:15:11 +01:00
Claudio Sanches
b26bbebb5f
Merge pull request #12088 from woocommerce/improve-structured-data-class
...
Improve WC_Structured_Data class
2016-10-13 20:59:09 -03:00
Claudio Sanches
3f9c16fe49
Fixed coding standards
2016-10-13 20:54:47 -03:00
Claudio Sanches
d5fa492378
Reverted the woocommerce_structured_data_product_limited filter name
2016-10-13 20:43:30 -03:00
Claudio Sanches
e67bbba878
Fixed undefined variables
2016-10-13 20:29:50 -03:00
Claudio Sanches
a9c8c79f58
Removed extra space
2016-10-13 19:54:21 -03:00
Claudio Sanches
ecb0c46f7f
Use get_data() at less one time
2016-10-13 19:48:02 -03:00