Claudio Sanches
f7ea1d4c6a
[API] Product featured_src return type as string, closes #9220
2015-09-25 16:13:52 +02:00
Claudio Sanches
c739f395ce
[2.4] [API] Improved the way are used for non-global attributes for variations
2015-09-17 02:57:04 -03:00
Claudio Sanches
376b13aece
[API] Sanitize product image alt attribute
2015-09-15 14:25:43 -03:00
Mikael Mattsson
d3302a9fa8
Merge branch 'master' of https://github.com/woothemes/woocommerce
...
# By Akeda Bagus (4) and Beka Rice (1)
# Via Mike Jolley (3) and others
* 'master' of https://github.com/woothemes/woocommerce :
Added more products query filter for REST API.
Added support to GET, POST, PUT, and DELETE tags.
Added support to POST, PUT, and DELETE categories.
Added API support for product shipping classes.
[2.5] Filter when purchase note is showed
2015-09-15 17:28:42 +02:00
Mikael Mattsson
ac49411146
Make the image properties alt and title writable in the REST API v3.
2015-09-15 17:17:14 +02:00
Akeda Bagus
97565ef9a1
Added more products query filter for REST API.
...
The new filters are taxonomies related: tag, shipping class, and
attribute. The code was refactored a bit so all taxonomies query are
wrapped within tax_query.
2015-09-15 07:18:28 -05:00
Akeda Bagus
6906eb4eae
Added support to GET, POST, PUT, and DELETE tags.
2015-09-13 17:59:07 +07:00
Akeda Bagus
2980ffd66b
Added support to POST, PUT, and DELETE categories.
2015-09-13 17:59:07 +07:00
Akeda Bagus
f781d393c8
Added API support for product shipping classes.
...
This change implements GET, POST, PUT, and DELETE handlers for shipping
classes endpoint, /products/shipping_classes.
Fixes #8948 .
2015-09-13 17:54:23 +07:00
Claudio Sanches
194f9cd6ec
Revert "Added API support for product shipping classes."
2015-09-10 14:22:11 -03:00
Akeda Bagus
1f18d861ce
Added API support for product shipping classes.
...
This change implements GET, POST, PUT, and DELETE handlers for shipping
classes endpoint, /products/shipping_classes.
Fixes #8948 .
2015-09-09 20:38:11 +07:00
Claudio Sanches
1d0d48b1ad
Fix attribute text based in API, closes #8823
2015-08-14 15:22:57 -03:00
nils-fredrik@maksimer.no
f4db67bcbc
Fix for #8691 : Variation without parent will not cause 500.
2015-07-30 23:32:24 +02:00
Claudio Sanches
09145181e5
[API] Removed deprecated products/sku endpoint
2015-07-30 17:35:14 -03:00
Claudio Sanches
948c5c9cfc
Fixed the sanitization for text-based default attributes
2015-07-22 21:40:06 -03:00
Claudio Sanches
aa263ddc1e
[API] Updated variable product attributes update for the new standard of WC 2.4
2015-07-22 21:07:05 -03:00
Claudio Sanches
9e41552342
Removed all "@return void"
2015-07-16 16:55:48 -03:00
Claudio Sanches
a01660cbba
Fixed WC_API_Products::clear_product()
2015-07-10 10:49:18 -03:00
Mike Jolley
d5a74203c2
Only need one numeric check
2015-07-10 10:48:29 +01:00
nils-fredrik@maksimer.no
3c2b54b360
Fix for #8550
2015-07-10 09:32:10 +02:00
Paul Kilmurray
3538d02ca9
Allow decimal stock quantity via REST API
...
The WooCommerce default is to validate stock quantity as integer, however some users find it useful to override this to allow any float quantity, eg:
```php
remove_filter('woocommerce_stock_amount', 'intval');
add_filter( 'woocommerce_stock_amount', 'floatval' );
```
Currently the API forces stock quantities to integer, this change will allow decimal quantities.
2015-06-19 12:07:10 +08:00
Justin Shreve
e1130005a5
When figuring out if to store a sale price, make sure $date_from is set to "today" when blank. The date meta was previously set, but the check to set the actual sale price saw $date_from as empty.
2015-06-16 20:00:16 +00:00
Justin Shreve
66ccc8a75c
Only run the file URL through esc_url_raw if it looks like an absolute URL, otherwise if it is a shortcode or relative URL, continue to use wc_clean.
2015-06-10 16:12:10 +00:00
Justin Shreve
7c3774e65f
For file URLs and images, run the URL through esc_url_raw rather than wc_clean (which removes/strips things like entities).
2015-06-10 15:34:36 +00:00
Claudio Sanches
6fee82b377
[API] Added display and image info in product category endpoint, closes #8298
2015-06-05 11:37:46 -03:00
Claudio Sanches
9eb3b6ddf9
Changed all requests with wp_remote_* to wp_safe_remote_*
2015-06-01 13:28:55 +01:00
Claudio Sanches
b2711f3d64
[API] Fixed products tags in write-mode
2015-05-29 10:05:15 -03:00
Claudio Sanches
88003436a6
[API] Add properly sanitization for categories and tags in products endpoint, closes #8251
2015-05-29 10:04:02 -03:00
Claudio Sanches
9c5cd0e525
[API] Accept dashes in products/sku endpoint, closes #8220
2015-05-25 10:22:59 -03:00
Claudio Sanches
611cf9b521
[API] Created bulk update/insert for orders #7915
2015-05-06 18:41:48 -03:00
Claudio Sanches
41e1ba2811
[2.3] [API] Fixed enable_html_description and enable_html_short_description for products endpoint, closes #8090
2015-05-06 14:28:57 -03:00
Claudio Sanches
08f8317554
[2.3] [API] Fixed start and end date for products, closes #8063
2015-05-06 13:55:40 -03:00
Claudio Sanches
0a3fc7673e
[API] Fixed the returned status when delete a product attribute
2015-04-28 15:56:28 -03:00
Claudio Sanches
8d339a7022
Stop yoda!
2015-04-28 15:10:29 -03:00
Claudio Sanches
dd8b2f6007
[API] Deprecated the products/sku/<sku> endpoint, closes #7592
2015-04-27 17:49:35 -03:00
Claudio Sanches
83b570e3e1
[API] Created method to delete product attributes
2015-04-27 16:33:47 -03:00
Claudio Sanches
bda53f75af
[API] Created method to edit product attributes
2015-04-27 16:14:31 -03:00
Claudio Sanches
212ebe486d
[API] Created method to create product attributes
2015-04-27 13:06:42 -03:00
Claudio Sanches
00f9c6f1ca
[API] Created WC_API_Products::get_product_attribute() method
2015-04-27 11:58:58 -03:00
Claudio Sanches
aa2d5835e4
[API] Created WC_API_Products::get_product_attributes() method
2015-04-27 11:47:17 -03:00
Claudio Sanches
98b1845b68
[2.3] [API] Fixed save downloadable files for product variations, closes #8037
2015-04-25 12:19:30 -03:00
Claudio Sanches
bcfdbcdd0a
[API] Improved WC_API_Products::bulk() #7915
2015-04-24 18:43:33 -03:00
Claudio Sanches
abf1d90d9b
Merge pull request #7922 from Nils-Fredrik/master
...
Allow bulk updates / inserts of products according to #7915
2015-04-24 17:12:53 -03:00
Claudio Sanches
af9c5f948b
[API] Improved the WC_API_Products::get_product_orders() method #8019
2015-04-24 17:04:13 -03:00
Claudio Sanches
cccc7b9b98
Merge pull request #8019 from cklosowski/issue/7285
...
Product's Orders API Endpoint, closes #7285
2015-04-24 16:42:24 -03:00
Mike Jolley
7e304fd4f9
[2.3][api] Prevent variable overwrite in save_product_meta
...
Closes #8011
2015-04-23 16:45:51 +01:00
Claudio Sanches
3e99768047
[API] Added product_url and button_text for external products, closes #7974
2015-04-17 15:50:18 -03:00
Chris Klosowski
d26265f885
Allowing filters to be applied #7285
2015-04-16 13:32:35 -07:00
Claudio Sanches
c06b6f13e3
[API] Improved the error messages when sent a empty object, closes #7914
2015-04-13 13:06:19 -03:00
nils-fredrik@maksimer.no
73cce9f15b
Allow bulk updates / inserts of products according to #7915 .
2015-04-09 22:48:51 +02:00