Justin Shreve
db9ca040af
Handle PR feedback
2016-11-03 02:24:28 -07:00
Justin Shreve
674a203487
Implement CRUD in the legacy REST API
2016-11-03 01:44:30 -07:00
Mike Jolley
db0ce210a3
[Product CRUD] Variations - setters, getters and admin. ( #12228 )
...
* Started on variation changes
* Stock functions
* Variation class
* Bulk change ->id to get_id() to fix variation form display
* Missing status
* Fix add to cart
* Start on stored data save
* save variation
* Save_variations
* Variation edit panel
* Save variations code works.
* Remove stored data code and fix save
* Improve legacy class
* wc_bool_to_string
* prepare_set_attributes
* Use wc_get_products
* More feedback fixes
* Feedback fixes
2016-11-02 18:50:42 +00:00
Justin Shreve
91ddc7ecbd
Remove the download type input from the product data metabox for downloadable products. ( #12221 )
2016-10-31 15:12:46 +00:00
Justin Shreve
b037108c93
Merge pull request #12214 from woocommerce/product-crud-wc_get_products
...
[Product CRUD] Add a wc_get_products wrapper
2016-10-30 08:11:44 -07:00
Justin Shreve
b07879adc6
Add a wc_get_products wrapper.
2016-10-28 10:46:59 -07:00
Justin Shreve
1b3b7fe21c
Merge pull request #12198 from woocommerce/product-crud-rest
...
[Product CRUD] REST API
2016-10-28 08:24:32 -07:00
Justin Shreve
12e3e4469d
Fix comparison for is_on_sale and remove download_type from WC_Product.
2016-10-28 08:13:46 -07:00
Justin Shreve
e2b90f11f3
Fix final failing tests and implementing setters/getters and attributes functionality.
2016-10-27 09:31:56 -07:00
Justin Shreve
11dfc44778
Additional API updates/fixes. Added some todos
2016-10-27 09:30:15 -07:00
Justin Shreve
7ed100dcac
REST API CRUD Updates
2016-10-27 09:30:15 -07:00
Mike Jolley
5855170c5a
[Product CRUD] Product crud admin use getters ( #12196 )
...
* Initial props
* Work on admin saving
* Set/get attributes
* Atom was moaning about this before but no longer.
* Update get_shipping_class
* WC_Product_Attribute
* Use getter in admin panel
* Fix attribute saving
* Move settings into new files
* Refactor panels and use getters
* Use getters for variation panel
* Revert save variation changes for now
* Add todos
* Fix downloads
2016-10-27 14:08:16 +01:00
Mike Jolley
38703f1907
Product crud admin save routine ( #12174 )
...
* Initial props
* Work on admin saving
* Set/get attributes
* Atom was moaning about this before but no longer.
* Update get_shipping_class
* WC_Product_Attribute
* Use getter in admin panel
* Fix attribute saving
* Spacing
* Fix comment
* wc_implode_text_attributes helper function
2016-10-26 18:02:50 +01:00
Mike Jolley
cc768c5406
[Product CRUD] Product crud terms ( #12149 )
...
* Category and tag id handling
* Replace template functions
* Remove todo
* Handle default name in save function
2016-10-24 10:32:15 +01:00
Mike Jolley
b1dbfd9c5b
[Product CRUD] Grouped Handling ( #12151 )
...
* Handle grouped product saving
* Update routine
2016-10-24 09:19:29 +01:00
Justin Shreve
880dc53ac9
[Product CRUD] Variable ( #12146 )
...
* [Product CRUD] Variable Products
* Handle PR feedback.
2016-10-24 08:28:56 +01:00
Justin Shreve
b6ec7367c7
Merge pull request #12143 from woocommerce/product-crud-price-html
...
[Product CRUD] Product crud price html
2016-10-20 09:33:13 -07:00
Mike Jolley
49b40ae4bc
Price handling
2016-10-20 17:15:03 +01:00
Mike Jolley
52aebdbc0d
wc_get_price_to_display
2016-10-20 16:40:17 +01:00
Mike Jolley
b13ef43498
get_price_including_tax/excluding_tax functions
2016-10-20 16:32:16 +01:00
Mike Jolley
53a4ca979f
Merge pull request #12141 from woocommerce/product-crud-abstract
...
[Product CRUD] Refactoring the abstract
2016-10-20 16:08:51 +01:00
Mike Jolley
096d2e4edf
missing $this
2016-10-20 15:13:51 +01:00
Mike Jolley
b5b7ea48f3
Put back review functions (still todo)
2016-10-20 15:08:49 +01:00
Mike Jolley
9a8681a713
Rename method
2016-10-20 15:07:50 +01:00
Mike Jolley
b6deb23e5c
Tidy/add todos
2016-10-20 15:06:44 +01:00
Mike Jolley
61a866f8f0
Availability html
2016-10-20 15:02:25 +01:00
Mike Jolley
0520f73a6b
Moving and refactoring methods
2016-10-20 12:42:24 +01:00
Mike Jolley
05b0b34c96
Merge pull request #12123 from woocommerce/product-crud-grouped
...
[Product CRUD] Grouped products
2016-10-19 11:13:23 +01:00
Mike Jolley
2a5a9faa61
Spacing in query
2016-10-19 11:13:08 +01:00
Mike Jolley
ad4e99c3e5
Merge pull request #12101 from woocommerce/product-crud-related-products
...
[Product CRUD] Product crud related products
2016-10-18 19:08:59 +01:00
Mike Jolley
95de56d402
Use get_upsell_ids
2016-10-18 19:08:40 +01:00
Mike Jolley
d705f4ceff
Move children to meta and update test
2016-10-18 19:05:33 +01:00
Mike Jolley
78931220b4
Merge branch 'product-crud' into product-crud-grouped
...
# Conflicts:
# tests/framework/helpers/class-wc-helper-product.php
2016-10-18 18:58:08 +01:00
Mike Jolley
2819fadd7f
Tests
2016-10-18 18:38:48 +01:00
Mike Jolley
a8b7ee6929
Grouped product class
2016-10-18 18:38:42 +01:00
Justin Shreve
cdaa40367a
Merge pull request #12121 from woocommerce/product-crud-external-type
...
[Product CRUD] External Products
2016-10-18 10:24:46 -07:00
Justin Shreve
c4fb1db46b
_virtual meta should be 'no', not taxable, in product unit test helper
2016-10-18 10:23:20 -07:00
Justin Shreve
b311caa1bc
External Product CRUD
2016-10-18 09:59:02 -07:00
Mike Jolley
c2a67803fc
Made abstract function useful
2016-10-18 17:13:12 +01:00
Mike Jolley
2fb0dd50d5
Merge pull request #12109 from woocommerce/product-crud-update-fields
...
[Product CRUD] Full Creation & Updating (Abstract)
2016-10-18 16:57:50 +01:00
Justin Shreve
6e69b0d924
Handle PR feedback: Remove duplicate regular_price update, allow changing of post status for products, remove deprecation for get_title since we might still offer it as a function
2016-10-18 07:47:28 -07:00
Mike Jolley
560513cde7
Bump template version
2016-10-18 11:19:35 +01:00
Justin Shreve
fde97df50f
Clean up the abstract product class a bit, deprecate two functions we have renamed, make update & create work properly, and add some tests for it.
2016-10-17 13:30:05 -07:00
Mike Jolley
50f21276fc
wc_get_product_term_ids instead of related wording and use in other places.
...
get_the_terms is used here and also handles caching, something
wp_get_post_terms does not.
2016-10-17 17:18:57 +01:00
Mike Jolley
e6e600ba8a
Remove unneeded comments
2016-10-17 17:07:19 +01:00
Mike Jolley
6bf077a367
Sanitize ids later
2016-10-17 17:04:24 +01:00
Claudio Sanches
f42d853453
Use count() instead of sizeof()
2016-10-17 13:31:49 -02:00
Claudio Sanches
aad06f6642
Fixed wrong variable in wc_get_related_terms
2016-10-17 13:29:12 -02:00
Claudio Sanches
c3b6135937
Get cached terms from wc_get_related_terms()
2016-10-17 13:28:52 -02:00
Claudio Sanches
92484d140c
Fixed coding standards and improved the docblocks
2016-10-17 13:23:49 -02:00