Commit Graph

31 Commits

Author SHA1 Message Date
Mike Jolley 8aeff9bb2f Adds future status to list of allowed statuses 2019-03-25 15:19:48 +00:00
Ron Rennick 8709351994 update function name to `wc_attribute_taxonomy_slug` 2019-01-23 11:11:27 -04:00
Ron Rennick c1ad273a03 replace all remaining str_replace( 'pa_', ... with wc_attribute_taxonomy_name_raw(...) 2018-12-03 11:32:33 -04:00
Rodrigo Primo 9b094fc74d Use $product->get_image_id() instead of has_post_thumbnail()
This commit replaces all instances where has_post_thumbnail() was used with $product->get_image_id(). This is a continuation of 64b589f032 and is needed to support the custom product tables plugin as has_post_thumbnail() relies on a post meta.
2018-10-18 09:28:20 -03:00
Claudiu Lodromanean 84ec31d3cc
Merge pull request #21588 from woocommerce/fix/21587
[REST API] Product downloads - Check if file ID is not empty and exists
2018-10-16 10:09:52 -07:00
Claudio Sanches 63390c181d [REST API] Fixed schema for product's downloads
Download ID are generated with wp_generate_uuid4() for while now.
Also we allow users to manipulate it.
2018-10-16 13:19:41 -03:00
Claudio Sanches 00c1a9016a Check if file ID is not empty and exists
Closes #21587
2018-10-16 13:01:51 -03:00
Mike Jolley a480cff0d2 Logic is not grouped specific; only for product types with children 2018-06-29 15:24:17 +01:00
Claudio Sanches b0617a13c4 Removed unnecessary ternary operators 2018-03-21 20:05:19 -03:00
Claudio Sanches f60cd7cca4 [REST API] Fixed products shipping_class_id type 2018-02-20 17:16:26 -03:00
Mike Jolley effbf87e22 API should generate or set file ID when setting downloads. Closes #18330 2018-01-03 11:02:38 +00:00
Mike Jolley 1bf47c2a81 API: Use KSES for purchase_note like admin 2017-12-08 11:47:27 +00:00
Farhad Sakhaei 5062831b50 spelling
spelling
2017-10-23 13:44:44 +03:30
Claudio Sanches 78a6585f19 [REST API] Allow unset product shipping_class
Closes #15960
2017-07-04 14:01:17 -03:00
Job 8b48accc01 Upsell/up-sell
We had a few different usages of up-sells and upsells in the copy -
“Upsells” were used more and also seems to be more correct English so
I’ve updated the “up-sells”
2017-06-15 15:56:01 +02:00
Mike Jolley 84c96046f0 Check objects are not false/null 2017-04-07 16:01:51 +01:00
Claudio Sanches be8036869e [REST API] Ignore 0 category while querying products 2017-03-30 13:43:59 -03:00
Claudio Sanches afccb22f58 [REST API] Fixed all products v1 query parameters 2017-03-28 14:44:11 -03:00
Claudio Sanches 54c353d67f [REST API] Fixed taxonomies query arguments.
Fixed the follow error:

PHP Warning: explode() expects parameter 2 to be string, array given in
includes/api/v1/class-wc-rest-products-controller.php on line 156

Error caused since terms are sanitized by wp_parse_id_list() that
already creates an array.

Closes #13790
2017-03-28 14:34:41 -03:00
Claudio Sanches 8371882002 [REST API] Fixed a minor bug that prevents saving default_attributes 2017-03-23 17:19:07 -03:00
Claudio Sanches 7dfd62ecfc [REST API] Fixed download_type context for products v1 2017-03-23 02:28:21 -03:00
Mike Jolley 94148cf512 Text changes 2017-03-20 16:01:55 +00:00
Claudio Sanches 59c2849736 Changed version 2.7 to 3.0 2017-03-15 13:36:53 -03:00
Mike Jolley dd1b8e35dc API endpoints 2017-03-13 20:26:52 +00:00
Claudio Sanches 8d28e966c4 Let product CRUD handle terms IDs 2017-03-03 16:21:27 -03:00
Claudio Sanches 486a81bf12 Fixed coding standards 2017-02-17 16:10:15 -02:00
Claudio Sanches f08c10d068 Fixed and improved the variations endpoint 2017-02-16 03:07:51 -02:00
Claudio Sanches e48243aa0b No private methods in REST API 2017-02-16 02:30:04 -02:00
Claudio Sanches 036a2f6c92 Allow save meta data for products in v2 2017-02-16 01:39:30 -02:00
Claudio Sanches 5365fec1b3 V1 and V2 for products endpoint 2017-02-13 19:44:27 -02:00
Claudio Sanches 88d2875514 Restored REST API v1 2017-02-09 18:40:35 -02:00