Claudio Sanches
40c90ac2d0
Use ID to query coupons
2016-11-18 17:10:41 -02:00
Claudio Sanches
dd3a59d169
Return empty prices for deprecated cart_discount and order_discount in order legacy v1
2016-11-18 17:06:33 -02:00
Claudio Sanches
fdb0cf499f
Query coupons only by ID
2016-11-18 16:51:45 -02:00
Claudio Sanches
7a6bc5f9f5
Removed extra get_post() for orders
2016-11-18 16:46:59 -02:00
Claudio Sanches
a8a5763b47
Removed extra )
2016-11-18 16:39:31 -02:00
Claudio Sanches
073c924b98
Stop doing new queries only to get coupons gmt dates
2016-11-18 16:36:02 -02:00
Claudio Sanches
3074bd180f
Apply GMT date for legacy v1 customers endpoint
2016-11-18 16:34:30 -02:00
Claudio Sanches
359e0a5a56
Use GMT dates in legacy API
2016-11-18 16:33:16 -02:00
Claudio Sanches
526a46325f
Allow convert date to GMT in the legacy API
2016-11-18 16:13:46 -02:00
Mike Jolley
1b6d7acd24
Data store for downloads
2016-11-18 17:13:02 +00:00
Claudio Sanches
6d66391a68
Merge pull request #12388 from woocommerce/terms-performance
...
Optimize terms queries
2016-11-18 13:01:38 -02:00
Claudio Sanches
2a4aa26a31
Removed extra …
2016-11-18 12:19:44 -02:00
Claudio Sanches
a27ac728f3
Fixed undefined post
2016-11-18 12:17:29 -02:00
Mike Jolley
ac3be6ba50
Order stores complete
2016-11-18 14:07:21 +00:00
Mike Jolley
da2cc7144c
Merge pull request #12396 from woocommerce/update-customer-crud-endpoints
...
Apply Customer CRUD to legacy customer API endpoint
2016-11-18 12:35:24 +00:00
Mike Jolley
d6c5a725ad
Merge pull request #12397 from woocommerce/customer-crud-validation
...
Stop ignore the wc_create_new_customer() error messages
2016-11-18 12:34:08 +00:00
Claudio Sanches
7bf6fa0f11
Merge pull request #12391 from woocommerce/support-wp47-bulk-actions
...
Use new WP 4.7 bulk actions filters
2016-11-18 09:14:24 -02:00
Mike Jolley
5d9a9b4dec
Fix tests
2016-11-18 11:14:09 +00:00
Claudio Sanches
c0809d0b72
Fixed a typo and missing comma
2016-11-18 09:13:37 -02:00
Claudio Sanches
ebf1fb55f3
Merge pull request #12392 from woocommerce/remove-legacy-code
...
Remove legacy dependency code
2016-11-18 09:12:30 -02:00
Mike Jolley
7e977f60e2
Feedback
2016-11-18 10:13:54 +00:00
Claudio Sanches
65c9a1b26b
Fixed undefined method WC_Order_Item_Product::get_qty()
2016-11-18 06:08:00 -02:00
Claudio Sanches
714244faf0
Stop ignore the wc_create_new_customer() error messages
...
- Transform wc_create_new_customer() error message in exceptions
- Added new actions to match WC_Coupon_Data_Store_CPT and make easy to
use in webhooks
2016-11-18 05:53:18 -02:00
Claudio Sanches
91d6c74701
Apply Customer CRUD methods to update and create legacy API endpoints
2016-11-18 04:16:38 -02:00
Claudio Sanches
e032001953
Fixed undefined variable on update_customer_meta_fields()
2016-11-18 03:37:59 -02:00
Claudio Sanches
4fd47e1b02
Use wc_get_orders() to query customer orders
2016-11-17 22:11:05 -02:00
Claudio Sanches
aba4699ee2
Removed old get avatar method
2016-11-17 22:01:55 -02:00
Claudio Sanches
14996ef97a
Updated customer legacy API endpoints
2016-11-17 21:55:52 -02:00
opportus
42bb48abf1
layered nav OR hide attributes applying to 0 product
2016-11-17 23:33:24 +01:00
Claudio Sanches
375b6e9789
Remove legacy dependency code
2016-11-17 19:06:46 -02:00
Claudio Sanches
92c7cafff8
Use new WP 4.7 bulk actions filters, closes #12379
2016-11-17 18:57:48 -02:00
Claudio Sanches
f5a228509a
Fixed coding standards
2016-11-17 18:07:58 -02:00
Claudio Sanches
e1aeba9f21
Remove all wp_get_post_terms() and wp_get_object_terms() terms occurrences
2016-11-17 17:02:05 -02:00
Claudio Sanches
4c54143743
Created new helpers to prevent use non-cached functions to query terms
2016-11-17 17:00:56 -02:00
Mike Jolley
c933f82961
Refunds
2016-11-17 16:53:13 +00:00
Mike Jolley
792a92e166
Factory
2016-11-17 16:12:04 +00:00
Mike Jolley
8d6f236d47
Fix save
2016-11-17 16:02:09 +00:00
Mike Jolley
717f712b3d
save addresses
2016-11-17 15:32:52 +00:00
Mike Jolley
d88b512143
Setters
2016-11-17 15:17:23 +00:00
Mike Jolley
286cb2d1c8
get_address_prop for customers
2016-11-17 15:05:40 +00:00
Mike Jolley
87aadaa7cf
getters
2016-11-17 15:02:33 +00:00
Mike Jolley
52c866c57b
Main order interface
2016-11-17 14:37:29 +00:00
Mike Jolley
83813bb9bb
Interface
2016-11-17 13:18:24 +00:00
James Koster
1039babe2c
manual order creation - make address load/copy icons text links to improve usability. closes #12356
2016-11-17 12:38:15 +00:00
Mike Jolley
eafd7c9fa5
Use data store for methods
2016-11-17 12:34:39 +00:00
Mike Jolley
81a2d6345f
Setters
2016-11-17 11:26:24 +00:00
Mike Jolley
b37db6eb7b
Getters
2016-11-17 11:22:24 +00:00
Mike Jolley
d387afbba3
Added data store
2016-11-17 10:53:22 +00:00
Justin Shreve
151f39d559
Merge pull request #12374 from woocommerce/update/quick-and-bulk-edit-crud
...
Product quick and bulk edit.
2016-11-16 14:19:58 -08:00
Justin Shreve
20fca44334
Handle product quick and bulk edit.
2016-11-16 12:54:53 -08:00
Claudio Sanches
4a20b2a8a1
Merge pull request #12371 from woocommerce/product-visible-by-default
...
Make products visible by default
2016-11-16 18:27:34 -02:00
Claudio Sanches
003728ff11
Merge pull request #12319 from woocommerce/allow-password-strength-lost-pass-page
...
[2.6] Allow password strength meter in "Lost Password" page
2016-11-16 17:15:00 -02:00
Claudio Sanches
240e58ea31
Merge pull request #12368 from woocommerce/exclude-webhoook_delivery-from-count-comments
...
[2.6] Exclude webhook_delivery from wp_count_comments()
2016-11-16 17:11:24 -02:00
Claudio Sanches
c5a00a3120
Make products visible by default
2016-11-16 16:56:40 -02:00
Lee Willis
837007af83
Make docs for wc_get_products() match implementation
2016-11-16 13:24:01 -02:00
Mike Jolley
29ddaca8e8
Merge branch 'update/shipping-zone-data-store'
...
# Conflicts:
# includes/api/class-wc-rest-products-controller.php
# tests/unit-tests/product/data-store.php
2016-11-16 15:11:13 +00:00
Mike Jolley
ecc503c2c7
Merge branch 'product-crud-test-fixes'
...
# Conflicts:
# includes/class-wc-data-store.php
# woocommerce.php
2016-11-16 15:09:32 +00:00
Claudio Sanches
3b4be48a1c
[2.6] Exclude webhook_delivery from wp_count_comments(), closes #12344
2016-11-16 12:04:05 -02:00
Justin Shreve
85cfe59988
Fix product related tests after product CRUD merge
2016-11-16 05:18:03 -08:00
Justin Shreve
a6155c2d7c
Add zone_id to get_zones output for ajax.
2016-11-16 04:54:42 -08:00
Justin Shreve
421d0331b6
Make sure we don't try to ->read when creating a new shipping zone.
2016-11-16 04:54:42 -08:00
Justin Shreve
564098f26a
Handle feedback
2016-11-16 04:54:42 -08:00
Justin Shreve
23a325ca8d
Make sure we error out on read if a zone is not found.
2016-11-16 04:53:23 -08:00
Justin Shreve
6f51fce88b
A few coding standards fixes
2016-11-16 04:53:23 -08:00
Justin Shreve
735c1b7a14
Finish moving queries to the shipping zone data store, update usage of deprecated get_zone_id, legacy updates.
2016-11-16 04:53:23 -08:00
Justin Shreve
61d1b29789
Shipping Zone Data Store
2016-11-16 04:53:23 -08:00
Mike Jolley
76b32c9aa5
WIP - Product CRUD ( #12065 )
...
* Created function to get the catalog visibility options
* First methods for WP_Product crud
* Product set methods
* Fixed several erros while setting data
* First methods for WP_Product crud
* Product set methods
* Fixed several erros while setting data
* Hardcode the get_type per product class
* Initial look through getters and setters and abstract data
* Missing var
* Add related product functions and deprecate those in class.
* No need to exclude ID
* Fixed coding standards and improved the docblocks
* Get cached terms from wc_get_related_terms()
* Fixed wrong variable in wc_get_related_terms
* Use count() instead of sizeof()
* Sanitize ids later
* Remove unneeded comments
* 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.
* 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.
* Bump template version
* 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
* Made abstract function useful
* External Product CRUD
* _virtual meta should be 'no', not taxable, in product unit test helper
* Grouped product class
* Tests
* Move children to meta and update test
* Use get_upsell_ids
* Spacing in query
* Moving and refactoring methods
* Availability html
* Tidy/add todos
* Rename method
* Put back review functions (still todo)
* missing $this
* get_price_including_tax/excluding_tax functions
* wc_get_price_to_display
* Price handling
* [Product CRUD] Variable (#12146 )
* [Product CRUD] Variable Products
* Handle PR feedback.
* [Product CRUD] Grouped Handling (#12151 )
* Handle grouped product saving
* Update routine
* [Product CRUD] Product crud terms (#12149 )
* Category and tag id handling
* Replace template functions
* Remove todo
* Handle default name in save function
* 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
* [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
* REST API CRUD Updates
* Additional API updates/fixes. Added some todos
* Fix final failing tests and implementing setters/getters and attributes functionality.
* Fix comparison for is_on_sale and remove download_type from WC_Product.
* Add a wc_get_products wrapper.
* Remove the download type input from the product data metabox for downloadable products. (#12221 )
* [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
* Implement CRUD in the legacy REST API
* Handle PR feedback
* [Product CRUD] Getter setter proxy methods (#12236 )
* 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
* get_prop implementation in abstract and data classes
* Implement set_prop
* Change handling
* Array key exists
* set_object_read
* Use get_the_terms() instead of wp_get_post_terms()
wp_get_post_terms() is a wrapper around wp_get_object_terms() which does not
use the object cache, and generates a database query every time it is used.
get_the_terms() however can use data from the object cache if present.
* Allow WP_Query to preload post data, and meta in wc_get_products()
Allow WP_Query to bulk query for post data and meta if more than
just IDs are requested from wc_get_products(). Reduces query count
significantly.
* [Product CRUD] Variable, variation, notices, and stock handling (#12277 )
* No longer needed
* Remove old todos
* Use getters in admin list
* Related and upsells update for CRUD
* Fix notice in gallery
* Variable fixes and todos
* Context
* Price sync
* Revert variation attributes change
* Return parent data in view context
* Defer term counting
* wc_find_matching_product_variation
* Stock manage tweaks
* Stock fixes
* Correct id
* correct id
* Better sync
* Data logic setter fix
* feedback
* First methods for WP_Product crud
* Product set methods
* Fixed several erros while setting data
* Hardcode the get_type per product class
* Initial look through getters and setters and abstract data
* Missing var
* Fixed coding standards and improved the docblocks
* Get cached terms from wc_get_related_terms()
* Fixed wrong variable in wc_get_related_terms
* Use count() instead of sizeof()
* Add related product functions and deprecate those in class.
* No need to exclude ID
* Sanitize ids later
* 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.
* Remove unneeded comments
* 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.
* 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
* External Product CRUD
* _virtual meta should be 'no', not taxable, in product unit test helper
* Bump template version
* Made abstract function useful
* Grouped product class
* Tests
* Move children to meta and update test
* Use get_upsell_ids
* Spacing in query
* Moving and refactoring methods
* Availability html
* Tidy/add todos
* Rename method
* Put back review functions (still todo)
* missing $this
* get_price_including_tax/excluding_tax functions
* wc_get_price_to_display
* Price handling
* [Product CRUD] Variable (#12146 )
* [Product CRUD] Variable Products
* Handle PR feedback.
* [Product CRUD] Grouped Handling (#12151 )
* Handle grouped product saving
* Update routine
* [Product CRUD] Product crud terms (#12149 )
* Category and tag id handling
* Replace template functions
* Remove todo
* Handle default name in save function
* 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
* [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
* REST API CRUD Updates
* Additional API updates/fixes. Added some todos
* Fix final failing tests and implementing setters/getters and attributes functionality.
* Fix comparison for is_on_sale and remove download_type from WC_Product.
* Add a wc_get_products wrapper.
* Remove the download type input from the product data metabox for downloadable products. (#12221 )
* [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
* Implement CRUD in the legacy REST API
* Handle PR feedback
* [Product CRUD] Getter setter proxy methods (#12236 )
* 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
* get_prop implementation in abstract and data classes
* Implement set_prop
* Change handling
* Array key exists
* set_object_read
* Use get_the_terms() instead of wp_get_post_terms()
wp_get_post_terms() is a wrapper around wp_get_object_terms() which does not
use the object cache, and generates a database query every time it is used.
get_the_terms() however can use data from the object cache if present.
* [Product CRUD] Variable, variation, notices, and stock handling (#12277 )
* No longer needed
* Remove old todos
* Use getters in admin list
* Related and upsells update for CRUD
* Fix notice in gallery
* Variable fixes and todos
* Context
* Price sync
* Revert variation attributes change
* Return parent data in view context
* Defer term counting
* wc_find_matching_product_variation
* Stock manage tweaks
* Stock fixes
* Correct id
* correct id
* Better sync
* Data logic setter fix
* feedback
* Prevent notices
* Handle image_id from parent
* Fix error
* Remove _wc_save_product_price
* Remove todo
* Fixed wrong variation URLs
* Fixed undefined $image_id in WC_Product_Variation::get_image_id()
* Allow wc_rest_prepare_date_response() handle timestamps
* Updated get methods on REST API for variations
* Use variations CRUD to save variations metadata
* [Product CRUD] Abstract todos (#12305 )
* Get dimensions and weights, with soft deprecation
* Product attributes
* Ratings
* Fix read method
* Downloads
* Feedback
* Revert "[Product CRUD] Abstract todos (#12305 )"
This reverts commit 9a6136fcf8
.
* Remove deprecated get_variation_id()
* New default attributes method
* [Product CRUD] Product Datastore (#12317 )
* Fix up tests in the product/* folder.
* Handle data store updates for grouped, variable, external, simple, and general data store updates for products.
* Variations & variable changes.
* Update -functions.php calls to use data store.
* Add an interface for the public product data store methods.
* Finished product factory tests
* Correctly delete in the api, fix up some comments, and implement an interface for the public variable methods.
* Fix up delete in all versions of the api
* Handle feedback
* Match protected decloration to parent
* Product crud abstract todos (#12316 )
* Get dimensions and weights, with soft deprecation
* Product attributes
* Ratings
* Fix read method
* Downloads
* Feedback
* Fix up store
* Fixed method returning in write context
* Fix error in variation admin
* Check for parent value - fixes tax class
* Remove old/complete todos
* Allow set tax class as "parent"
* Removed duplicated sync
* Fixed wrong variation URLs
* Fixed undefined $image_id in WC_Product_Variation::get_image_id()
* Allow wc_rest_prepare_date_response() handle timestamps
* Updated get methods on REST API for variations
* Use variations CRUD to save variations metadata
* Remove deprecated get_variation_id()
* New default attributes method
* Fixed method returning in write context
* Allow set tax class as "parent"
* Removed duplicated sync
* Fixed coding standards
* TODO is not accurate.
* Should pass WC_Product instancies to WC_Comments methods (#12327 )
* Use new method in abstract order class to prevent headers sent issue in tests
* Fixed variable description in REST API
* Updated how create initial product variation
* Fixed a few fatal errors and warnings in Products CRUD (#12329 )
* Fixed a few fatal errors and warnings in Products CRUD
* Fixed sync functions
* Add variations CRUD to legacy API (#12331 )
* Apply crud to variable products in legacy API v1
* New REST API do not need fallback for default attributes
* Apply variations CRUD to legacy API v2
* Legacy v2 - save default attributes
* Variations in legacy API v2 do not have descriptions
* Fixed legacy API v2 variations params
* Applied variations CRUD to legacy API v3
* Sync before save in legacy apis
* Punc
* Removed API todos
* Removed test
* Products endpoint tweaks (#12354 )
* Var type already normalized on CRUD
* Let Product CRUD handle with validation, sanitization and conditional checks
* Set downloads using WC_Product_Download
* Stop try catch exceptions more than one time
* Handle WC_Data_Exception in legacy API
* Complete remove products when fails on creating
* On creating I mean!
* Already have a method to complete delete products
* Fixed standards using WP CodeSniffer
* get_the_terms() returns false when empty
* get_manage_stock returns boolean
@claudiosanches
* Merge conflict
* Variations API endpoint fixes
* Product CRUD improvements (#12359 )
* args is not used any more - remove todo
* Added test for attributes
* wc_get_price_excluding_tax usage
* parent usage
* Fix rating counts
* Test fixes
* Cleanup after tests
* Make sure status transition code runs even during API calls, not just in admin.
* Default visibility
* Fix attribute setting in API
* Use get name instead of get title
* variation id usage
* Improved cross sell templates
* variation_data
* Grouped product sync
* Notices
* Sync is not needed in API
* Delete
* Rename interfaces
* Update counts in data store
2016-11-16 12:38:24 +00:00
Mike Jolley
af3496402d
Merge branch 'master' into product-crud
...
# Conflicts:
# includes/class-wc-data-store.php
# woocommerce.php
2016-11-16 12:37:57 +00:00
Mike Jolley
599a2ad296
Product CRUD improvements ( #12359 )
...
* args is not used any more - remove todo
* Added test for attributes
* wc_get_price_excluding_tax usage
* parent usage
* Fix rating counts
* Test fixes
* Cleanup after tests
* Make sure status transition code runs even during API calls, not just in admin.
* Default visibility
* Fix attribute setting in API
* Use get name instead of get title
* variation id usage
* Improved cross sell templates
* variation_data
* Grouped product sync
* Notices
* Sync is not needed in API
* Delete
* Rename interfaces
* Update counts in data store
2016-11-16 12:17:00 +00:00
Justin Shreve
e83ec0c235
Call apply_changes when updating and creating a coupon.
2016-11-15 15:25:36 -08:00
Justin Shreve
53524141b7
Fix up the other delete signatures.
2016-11-15 11:35:10 -08:00
Mike Jolley
eade55041c
Delete args
2016-11-15 18:11:25 +00:00
Mike Jolley
d8fcfcefb8
Variations API endpoint fixes
2016-11-15 12:51:26 +00:00
Mike Jolley
ef990355fd
Merge conflict
2016-11-15 11:52:29 +00:00
Mike Jolley
c18f6efeb4
Conflicts from master
2016-11-15 11:52:05 +00:00
Claudio Sanches
b1c32e5e50
Products endpoint tweaks ( #12354 )
...
* Var type already normalized on CRUD
* Let Product CRUD handle with validation, sanitization and conditional checks
* Set downloads using WC_Product_Download
* Stop try catch exceptions more than one time
* Handle WC_Data_Exception in legacy API
* Complete remove products when fails on creating
* On creating I mean!
* Already have a method to complete delete products
* Fixed standards using WP CodeSniffer
* get_the_terms() returns false when empty
* get_manage_stock returns boolean
@claudiosanches
2016-11-15 10:26:42 +00:00
Mike Jolley
dc60ea4c23
Merge branch 'master' into customer-data-store
...
# Conflicts:
# includes/class-wc-data-store.php
# woocommerce.php
2016-11-14 18:21:30 +00:00
Mike Jolley
cce4eef99d
Payment Token Data Store ( #12348 )
...
* Payment Token Data Store
* Handle feedback
* Rename interface file
2016-11-14 18:20:00 +00:00
Mike Jolley
00ed627b29
Data stores
2016-11-14 18:18:08 +00:00
Claudio Sanches
8650365e32
Removed test
2016-11-14 15:19:28 -02:00
Justin Shreve
d986d1bba1
Rename interface file
2016-11-14 09:13:55 -08:00
Justin Shreve
944e5d658b
Handle feedback
2016-11-14 09:08:46 -08:00
Claudio Sanches
657bd226f8
Removed API todos
2016-11-14 14:43:30 -02:00
Claudio Sanches
60f1fcf9e3
Merge pull request #12334 from sabbir1991/master
...
Fix toggle download and virtual in variation bulk action #12333
2016-11-14 14:11:30 -02:00
Justin Shreve
370166a6b0
Payment Token Data Store
2016-11-14 06:20:41 -08:00
Justin Shreve
b0f859f6a2
Merge pull request #12345 from woocommerce/remove/cli
...
Remove CLI
2016-11-14 03:44:02 -08:00
Justin Shreve
ad67277a9b
Blank file for wc-cli.php
2016-11-14 03:36:26 -08:00
Claudio Sanches
4827225454
Add variations CRUD to legacy API ( #12331 )
...
* Apply crud to variable products in legacy API v1
* New REST API do not need fallback for default attributes
* Apply variations CRUD to legacy API v2
* Legacy v2 - save default attributes
* Variations in legacy API v2 do not have descriptions
* Fixed legacy API v2 variations params
* Applied variations CRUD to legacy API v3
* Sync before save in legacy apis
* Punc
2016-11-14 11:31:52 +00:00
Claudio Sanches
6de7984f2d
Fixed a few fatal errors and warnings in Products CRUD ( #12329 )
...
* Fixed a few fatal errors and warnings in Products CRUD
* Fixed sync functions
2016-11-14 11:02:56 +00:00
Justin Shreve
365a834d92
Remove CLI from WooCommerce. Moving to a new package.
2016-11-14 02:42:40 -08:00
Justin Shreve
4b33f11bf2
Move queries from coupon-functions.php to the coupon data store.
2016-11-14 02:31:04 -08:00
Sabbir Ahmed
7cd5488f26
Fix toggle download and virtual in variation bulk action #12333
2016-11-13 11:45:12 +06:00
Claudio Sanches
83f74145ee
Updated how create initial product variation
2016-11-11 17:29:56 -02:00
Claudio Sanches
1f31de39d9
Fixed variable description in REST API
2016-11-11 16:36:58 -02:00
Mike Jolley
c4806e63d1
Use new method in abstract order class to prevent headers sent issue in tests
2016-11-11 18:30:18 +00:00
Claudio Sanches
096622c9e4
Should pass WC_Product instancies to WC_Comments methods ( #12327 )
2016-11-11 18:13:56 +00:00
Mike Jolley
bc9d2c72aa
TODO is not accurate.
2016-11-11 18:09:06 +00:00
Claudio Sanches
93ecafebec
[2.6] Allow password strength meter in Lost Password page, closes #12314
2016-11-11 15:21:06 -02:00
Claudio Sanches
3dfb4c98e3
Fixed coding standards
2016-11-11 15:19:40 -02:00
Claudio Sanches
cc109a7e0a
Removed duplicated sync
2016-11-11 14:58:03 -02:00
Claudio Sanches
518c3a3467
Allow set tax class as "parent"
2016-11-11 14:58:03 -02:00
Claudio Sanches
c8e34f3403
Fixed method returning in write context
2016-11-11 14:58:03 -02:00
Claudio Sanches
a17af7ad30
New default attributes method
2016-11-11 14:56:03 -02:00
Claudio Sanches
47e3f22810
Remove deprecated get_variation_id()
2016-11-11 14:56:03 -02:00
Claudio Sanches
5cab607be7
Use variations CRUD to save variations metadata
2016-11-11 14:56:03 -02:00
Claudio Sanches
9fd64f49e4
Updated get methods on REST API for variations
2016-11-11 14:56:02 -02:00
Claudio Sanches
4083f5b8d7
Allow wc_rest_prepare_date_response() handle timestamps
2016-11-11 14:56:02 -02:00
Claudio Sanches
57b75bb95d
Fixed undefined $image_id in WC_Product_Variation::get_image_id()
2016-11-11 14:56:02 -02:00
Claudio Sanches
d039e12f47
Fixed wrong variation URLs
2016-11-11 14:53:53 -02:00
Mike Jolley
3d58459246
Remove old/complete todos
2016-11-11 16:28:47 +00:00
Mike Jolley
4600ccd146
Check for parent value - fixes tax class
2016-11-11 16:22:51 +00:00
Mike Jolley
e1c4c4ab96
Fix error in variation admin
2016-11-11 16:22:39 +00:00
Mike Jolley
ac6bda2f62
Product crud abstract todos ( #12316 )
...
* Get dimensions and weights, with soft deprecation
* Product attributes
* Ratings
* Fix read method
* Downloads
* Feedback
* Fix up store
2016-11-11 15:31:00 +00:00
Justin Shreve
90e43d97de
[Product CRUD] Product Datastore ( #12317 )
...
* Fix up tests in the product/* folder.
* Handle data store updates for grouped, variable, external, simple, and general data store updates for products.
* Variations & variable changes.
* Update -functions.php calls to use data store.
* Add an interface for the public product data store methods.
* Finished product factory tests
* Correctly delete in the api, fix up some comments, and implement an interface for the public variable methods.
* Fix up delete in all versions of the api
* Handle feedback
* Match protected decloration to parent
2016-11-11 14:31:15 +00:00
Mike Jolley
4fc03c9930
Revert "[Product CRUD] Abstract todos ( #12305 )"
...
This reverts commit 9a6136fcf8
.
2016-11-11 11:58:57 +00:00
Lee Willis
e0f4698813
Remove unused JOINS from query in _wc_term_recount. ( #12302 )
...
See #12197
2016-11-11 11:55:11 +00:00
Mike Jolley
9a6136fcf8
[Product CRUD] Abstract todos ( #12305 )
...
* Get dimensions and weights, with soft deprecation
* Product attributes
* Ratings
* Fix read method
* Downloads
* Feedback
2016-11-11 11:43:52 +00:00
Mike Jolley
d5a98e1ce2
Incorrect code comment closes #12300
2016-11-11 11:16:53 +00:00
Mike Jolley
c3b4f87d4a
Fix text
...
Closes #12294
2016-11-10 16:18:05 +00:00
Claudio Sanches
10f10d1644
[2.6] Ensure that PayPal always receive float amounts, closes #12291 ( #12293 )
2016-11-10 10:18:35 +00:00
Krzysztof Grabania
4711066490
Removed empty string param in _deprecated_function function ( #12301 )
...
`_deprecated_function` has conditional which is checking if third param (replacement) is null. Passing replacement as empty string to this function will fail this test and the end of triggered error will look like this: `Use instead.` instead of `with no alternative available.`. This PR removes all occurrences of empty strings in this function.
2016-11-10 10:17:32 +00:00
Justin Shreve
8612ce877c
Merge pull request #12284 from woocommerce/system-status-security-section
...
New system status security section
2016-11-10 00:53:48 -08:00
Claudio Sanches
4d4fb839be
Applied REST API methods for security section on system status page
2016-11-09 22:19:47 -02:00
Claudio Sanches
fe4b45481d
Include security data in system status endpoint
2016-11-09 22:19:12 -02:00
Justin Shreve
1fb8479358
Merge pull request #12289 from leewillis77/feature/wc_get_products_optimisation
...
Allow WP_Query to preload post data, and meta in wc_get_products()
2016-11-09 12:02:37 -08:00
Claudio Sanches
d66e8bd7c0
Fixed declaration of WC_Coupon_Data_Store_CPT::delete
2016-11-09 16:07:20 -02:00
Mike Jolley
c4facef4bf
Remove todo
2016-11-09 17:34:41 +00:00
Mike Jolley
8a78cc212b
Remove _wc_save_product_price
2016-11-09 17:32:40 +00:00
Mike Jolley
aa2ce1a1cc
Fix error
2016-11-09 17:29:28 +00:00
Mike Jolley
f46c024862
Handle image_id from parent
2016-11-09 16:59:14 +00:00
Mike Jolley
b9d60965d2
Conflicts
2016-11-09 16:53:23 +00:00
Mike Jolley
36d8e3b401
Prevent notices
2016-11-09 16:20:34 +00:00
Mike Jolley
09ea4ba91f
[Product CRUD] Variable, variation, notices, and stock handling ( #12277 )
...
* No longer needed
* Remove old todos
* Use getters in admin list
* Related and upsells update for CRUD
* Fix notice in gallery
* Variable fixes and todos
* Context
* Price sync
* Revert variation attributes change
* Return parent data in view context
* Defer term counting
* wc_find_matching_product_variation
* Stock manage tweaks
* Stock fixes
* Correct id
* correct id
* Better sync
* Data logic setter fix
* feedback
2016-11-09 16:10:37 +00:00
Lee Willis
07eef044c2
Use get_the_terms() instead of wp_get_post_terms()
...
wp_get_post_terms() is a wrapper around wp_get_object_terms() which does not
use the object cache, and generates a database query every time it is used.
get_the_terms() however can use data from the object cache if present.
2016-11-09 16:07:29 +00:00
Mike Jolley
31e5882bb8
[Product CRUD] Getter setter proxy methods ( #12236 )
...
* 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
* get_prop implementation in abstract and data classes
* Implement set_prop
* Change handling
* Array key exists
* set_object_read
2016-11-09 16:07:29 +00:00
Justin Shreve
9072b1da43
Handle PR feedback
2016-11-09 16:05:50 +00:00
Justin Shreve
e551a846b8
Implement CRUD in the legacy REST API
2016-11-09 16:05:50 +00:00
Mike Jolley
5f4dbdb733
[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-09 16:05:49 +00:00
Justin Shreve
cee91cccbf
Remove the download type input from the product data metabox for downloadable products. ( #12221 )
2016-11-09 15:47:23 +00:00
Justin Shreve
a8742a2bcc
Add a wc_get_products wrapper.
2016-11-09 15:47:23 +00:00
Justin Shreve
1985620f33
Fix comparison for is_on_sale and remove download_type from WC_Product.
2016-11-09 15:47:23 +00:00
Justin Shreve
37c8e62fcf
Fix final failing tests and implementing setters/getters and attributes functionality.
2016-11-09 15:47:23 +00:00
Justin Shreve
e31a75d584
Additional API updates/fixes. Added some todos
2016-11-09 15:47:23 +00:00
Justin Shreve
bcae6fb1d6
REST API CRUD Updates
2016-11-09 15:47:23 +00:00
Mike Jolley
038104c8a8
[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-11-09 15:44:02 +00:00
Mike Jolley
af32b3ea91
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-11-09 15:43:20 +00:00
Mike Jolley
611ac8b651
[Product CRUD] Product crud terms ( #12149 )
...
* Category and tag id handling
* Replace template functions
* Remove todo
* Handle default name in save function
2016-11-09 15:41:48 +00:00
Mike Jolley
7dd64662f0
[Product CRUD] Grouped Handling ( #12151 )
...
* Handle grouped product saving
* Update routine
2016-11-09 15:41:48 +00:00
Justin Shreve
5b09c9f063
[Product CRUD] Variable ( #12146 )
...
* [Product CRUD] Variable Products
* Handle PR feedback.
2016-11-09 15:41:25 +00:00
Mike Jolley
f57601d755
Price handling
2016-11-09 15:41:08 +00:00
Mike Jolley
67c01ff101
wc_get_price_to_display
2016-11-09 15:41:08 +00:00
Mike Jolley
38ab3d63f6
get_price_including_tax/excluding_tax functions
2016-11-09 15:40:52 +00:00
Mike Jolley
9e23b0d2cc
missing $this
2016-11-09 15:40:52 +00:00
Mike Jolley
cf8fba5900
Put back review functions (still todo)
2016-11-09 15:40:51 +00:00
Mike Jolley
a85ad09e7e
Rename method
2016-11-09 15:40:51 +00:00
Mike Jolley
e5cbb91472
Tidy/add todos
2016-11-09 15:40:51 +00:00
Mike Jolley
731df74bad
Availability html
2016-11-09 15:40:38 +00:00
Mike Jolley
bc220c3b73
Moving and refactoring methods
2016-11-09 15:39:39 +00:00
Mike Jolley
06fb79ec03
Spacing in query
2016-11-09 15:39:18 +00:00
Mike Jolley
f58829a316
Grouped product class
2016-11-09 15:38:44 +00:00
Justin Shreve
19949d369d
External Product CRUD
2016-11-09 15:38:44 +00:00
Mike Jolley
745c31176d
Made abstract function useful
2016-11-09 15:38:44 +00:00
Justin Shreve
79f2d0eb8c
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-11-09 15:38:44 +00:00
Justin Shreve
432d736520
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-11-09 15:38:44 +00:00
Mike Jolley
ac9574e25e
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-11-09 15:38:44 +00:00
Mike Jolley
68282e9661
Remove unneeded comments
2016-11-09 15:38:44 +00:00
Mike Jolley
34f579cfc4
Sanitize ids later
2016-11-09 15:38:27 +00:00
Claudio Sanches
a5cf2922ee
Use count() instead of sizeof()
2016-11-09 15:38:27 +00:00
Claudio Sanches
1c73ffb3f6
Fixed wrong variable in wc_get_related_terms
2016-11-09 15:38:27 +00:00
Claudio Sanches
ee82a198da
Get cached terms from wc_get_related_terms()
2016-11-09 15:38:27 +00:00
Claudio Sanches
f5c42c60c8
Fixed coding standards and improved the docblocks
2016-11-09 15:38:27 +00:00
Mike Jolley
3b3a83df8e
Add related product functions and deprecate those in class.
2016-11-09 15:38:27 +00:00
Mike Jolley
b254ecf16d
Missing var
2016-11-09 15:37:51 +00:00
Mike Jolley
eb61503210
Initial look through getters and setters and abstract data
2016-11-09 15:37:51 +00:00
Mike Jolley
4c0cc54f79
Hardcode the get_type per product class
2016-11-09 15:37:51 +00:00
Claudio Sanches
70e13702ae
Fixed several erros while setting data
2016-11-09 15:37:20 +00:00
Claudio Sanches
7491085bcf
Product set methods
2016-11-09 15:37:20 +00:00
Claudio Sanches
474b343746
First methods for WP_Product crud
2016-11-09 15:37:20 +00:00
Claudio Sanches
6b5786e35f
Updated messages
2016-11-09 11:54:28 -02:00
Claudio Sanches
81f3fe2e7e
Merge pull request #12288 from leewillis77/product-crud
...
Use get_the_terms() instead of wp_get_post_terms()
2016-11-09 10:57:23 -02:00
Claudio Sanches
1360f6fc3e
Docblock for #12287
2016-11-09 10:54:08 -02:00
Claudio Sanches
3b147be755
Merge pull request #12287 from woocommerce/add-get-formatted-order-total-filter-paramas-and-docblock
...
Add more arguments to filter woocommerce_get_formatted_order_total
2016-11-09 10:50:43 -02:00
Mike Jolley
ed46abf3a3
[Product CRUD] Variable, variation, notices, and stock handling ( #12277 )
...
* No longer needed
* Remove old todos
* Use getters in admin list
* Related and upsells update for CRUD
* Fix notice in gallery
* Variable fixes and todos
* Context
* Price sync
* Revert variation attributes change
* Return parent data in view context
* Defer term counting
* wc_find_matching_product_variation
* Stock manage tweaks
* Stock fixes
* Correct id
* correct id
* Better sync
* Data logic setter fix
* feedback
2016-11-09 12:26:46 +00:00
Justin Shreve
b41626c555
Implement Coupon Data Store ( #12280 )
...
* Implement a Coupon Data Store using CPTs..
* Handle PR feedback.
2016-11-09 12:21:18 +00:00
Justin Stern
a3e371e0d7
Make WooCommerce core play nice with Codeception ( #11845 )
...
If is_blog_installed() is false then skip some installation steps that
are performed on the 'init' action and which require the database to be
available
2016-11-09 11:53:39 +00:00
Lee Willis
90d8291ace
Allow WP_Query to preload post data, and meta in wc_get_products()
...
Allow WP_Query to bulk query for post data and meta if more than
just IDs are requested from wc_get_products(). Reduces query count
significantly.
2016-11-09 11:44:11 +00:00
Claudio Sanches
49a574e704
Move all JavaScript from system status page to a new file ( #12283 )
2016-11-09 11:36:14 +00:00
Lee Willis
2c2239a3b0
Use get_the_terms() instead of wp_get_post_terms()
...
wp_get_post_terms() is a wrapper around wp_get_object_terms() which does not
use the object cache, and generates a database query every time it is used.
get_the_terms() however can use data from the object cache if present.
2016-11-09 11:27:24 +00:00
Dwain Maralack
5f87161c06
add function arguments to the filter to give more context when filter is applied
2016-11-09 12:49:38 +02:00
Claudio Sanches
3a2ebb854d
WC_Object_Data_Store::delete always not force delete
2016-11-09 02:37:50 -02:00
Claudio Sanches
52f09d9fda
New system status security section
2016-11-08 21:00:46 -02:00
Claudio Sanches
208fa011b9
Fixed deprecated warnings
2016-11-08 19:00:57 -02:00
Claudio Sanches
d0fae22528
Fixed undefined property on admin addons
2016-11-08 18:31:39 -02:00
Claudio Sanches
8858e74c56
Fixed coding standards and tests
2016-11-08 18:27:21 -02:00
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
Mike Jolley
ad37a68ffb
[Product CRUD] Getter setter proxy methods ( #12236 )
...
* 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
* get_prop implementation in abstract and data classes
* Implement set_prop
* Change handling
* Array key exists
* set_object_read
2016-11-03 12:03:19 +00: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
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
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
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
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
Justin Shreve
b07879adc6
Add a wc_get_products wrapper.
2016-10-28 10:46:59 -07:00
proArtex
8798ee4632
Removed redundant condition ( #12210 )
...
Exception object cannot be empty()
2016-10-28 16:53:54 +01: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
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
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
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
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
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
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
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
Justin Shreve
880dc53ac9
[Product CRUD] Variable ( #12146 )
...
* [Product CRUD] Variable Products
* Handle PR feedback.
2016-10-24 08:28:56 +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
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
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
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
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
Shiva Poudel
64c6ec8537
Update wp.org plugin review rating link
2016-10-19 11:29:20 +05:45
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
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
a8b7ee6929
Grouped product class
2016-10-18 18:38:42 +01: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
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
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
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
Claudio Sanches
ee061f98ec
[REST API] Better sanitization for product taxonomy filters
2016-10-17 14:39:02 -02: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
Mike Jolley
717bb62f19
Merge branch 'product-crud' into product-crud-related-products
2016-10-17 15:57:10 +01:00
Mike Jolley
803709cb94
Add related product functions and deprecate those in class.
2016-10-17 15:57:09 +01:00
Mike Jolley
627beecd42
Missing var
2016-10-17 15:56:16 +01:00
Mike Jolley
a74de70dc3
Initial look through getters and setters and abstract data
2016-10-17 14:46:46 +01:00
Mike Jolley
30a164ea67
Hardcode the get_type per product class
2016-10-17 12:22:23 +01: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
Claudio Sanches
9dce511dde
Removed dead $limit_data param from generate_product_data()
2016-10-13 19:44:12 -03:00
Claudio Sanches
fae8574619
Make methods less complex and more legible
2016-10-13 19:40:15 -03:00
Claudio Sanches
8484c8657e
Display structured data in WC_Emails::order_schema_markup()
2016-10-13 19:39:27 -03:00
Claudio Sanches
f3275be8d2
Fixed undeclared array variables
2016-10-13 19:05:51 -03:00
Claudio Sanches
7dc74f6dfc
Improved WC_Structured_Data::generate_* methods
...
- Less conditional code
- Better docblocks
- Fixed mixed variables
- Stop returning bool since it's only displaying
2016-10-13 18:51:20 -03:00
Claudio Sanches
48210fa39a
No need to declare 0 or 1 params in add_action()
2016-10-13 18:21:12 -03:00
Claudio Sanches
5967762e01
Already obvious
2016-10-13 18:19:41 -03:00
Claudio Sanches
b9dfdacad4
Removed confuse helper
2016-10-13 18:19:13 -03:00
Claudio Sanches
68b864313a
Fixed conflicts
2016-10-13 16:58:20 -03:00
Claudio Sanches
07ae13c51b
Fixed coding standards recommended by WPCS
2016-10-13 16:51:18 -03:00
Claudio Sanches
2e38033ca6
Merge pull request #12086 from attiladonath/master
...
Make it easier to extend Cash on Delivery payment gateway class
2016-10-13 16:30:40 -03:00
Rami Yushuvaev
fec057c993
Use get_admin_page_title() function to display admin titles ( #12077 )
...
* Use get_admin_page_title() function to display admin titles
* revert
* i18n: use sprintf() in translation strings
2016-10-13 13:34:48 -03:00
Attila Donáth
2968850786
Setup general properties in a separate method #12085
...
It is easier to extend the gateway class like that.
2016-10-13 18:23:51 +02:00
Attila Donáth
14f563fe02
Eliminate hardcoded payment method IDs #12085
2016-10-13 18:23:41 +02:00
James Koster
3823b78318
Add/product galleries ( #11665 )
...
* register prettyPhoto but don't enqueue. #10721
* Remove lightbox option. #10721
Also registers the prettyPhoto styles instead of enqueueing
* Stip all prettyPhoto related stuff from the templates and tidy up some logic. #10721
* Add flexslider assets #10721
* styling and re-adds `woocommerce_single_product_image_thumbnail_html`. #10721 .
* Add zoom functionality. #10721
* Move js to single-product.js. #10721
* styling of the gallery thumbnails when using the `product_page` shortcode. #10721
* Only enable the zoom if the image is large enough. #10721
* Use a 4 column layout by default. #10721
* Make the carousel options filterable. #10721
* rtl styles for gallery. #10721
* Don't zoom on handheld devices. #10721
* markup tweaks in prep for photoswipe
* disable zoom for now
* Add and enqueue photoswipe assets
* add the photoswipe template
* initialise photoswipe - it's alive!
* tidy up js. add title. add separate trigger. #10721
* Move photoswipe functions to single-product.js. #10721
* reactivate the zoom! #10721
* style the photoswipe trigger. #10721
* disable flexslider animation loop. #10721
* js tidy up. #10721
* Fix jshint
* Abstract the product gallery scripts
* Minify
* Fixed conflict with the admin bar
* Photoswipe conflict with admin bar
* Index. #10721
* photoswipe button styles. #10721
* Styling. #10721
* No animation on zoom
* Image width on mobile
* No shadows please. #10721
Looking at you, Twenty Twelve.
* code tidy and add class to placeholder figure. #10721
* simplify rtl query
* photoswipe button styles
* Comma should not be here
* zoom icon #10721
* gallery thumb styles. #10721
* trigger icon. #10721
* Image margins. #10721
* icon hover states. #10721
* Variation handling
* Fix zoom and heights
* Resize after timeout
2016-10-13 15:25:42 +01:00
Mike Jolley
42f420b16c
Correct admin link for variable product.
2016-10-13 15:18:44 +01:00
Mike Jolley
5304d6ef9d
Add filters and include meta in item names sent to paypal
...
Closes #12022
2016-10-13 15:18:01 +01:00
Mike Jolley
e3fa4de7c8
Hide shipping tax class setting when shipping is disabled
...
Closes #11960
2016-10-13 12:14:41 +01:00
Mickael Desgranges
7d0139e735
add argument on woocommerce_shipping_rate_label ( #12075 )
...
add $this argument for woocommerce_shipping_rate_label.
That may be veryhandy for modifying for a label with a specific method_id before the rate price was added.
2016-10-12 17:06:51 +01:00
Claudio Sanches
62aec00a59
Merge pull request #12071 from woocommerce/show-in-rest
...
Get media working when assign to product
2016-10-12 11:23:03 -03:00
Rami Yushuvaev
b8f2f29d5a
Remove deprecated admin screen icons ( #12074 )
2016-10-12 10:57:24 -03:00
Mike Jolley
7ab8c1e35f
Get media working when assign to product
...
Fixes #11760
2016-10-12 13:02:07 +01:00
Manos Psychogyiopoulos
4658245625
Revise the stock + stock status saving logic ( #11858 )
...
* use set_stock to reset stock meta when not managing stock
Ensures that the 'woocommerce_{ variation | product }_set_stock' hooks fire to refllect the fact that stock becomes infinite.
* track state of Manage Stock? option
* quick/bulk edit fixes
* reapply quick and bulk edit fixes
* improve conditional reset logic that prevents actions from *_set_stock actions from firing with every save
2016-10-12 12:51:40 +01:00
Mike Jolley
a426004975
Fixed numbered properties
2016-10-12 12:02:51 +01:00
Mike Jolley
705dc18991
Merge branch 'pr/12064'
2016-10-12 11:54:40 +01:00
Mike Jolley
e6d4729453
Code standards
2016-10-12 11:54:21 +01:00
Mike Jolley
a7e531e26d
Made wc_get_wildcard_postcodes return the orignal postcode plus * since wildcards should match empty strings too.
...
Fixes #12016
2016-10-12 11:52:39 +01:00
Mike Jolley
0829200299
Merge remote-tracking branch 'origin/master'
...
# Conflicts:
# includes/admin/class-wc-admin-help.php
2016-10-12 11:18:27 +01:00
Rami Yushuvaev
eae583fc3c
Update wp.org plugin directory links
2016-10-12 11:16:58 +01:00
Claudio Sanches
657c312cae
Fix strings case ( #12069 )
...
* Fixed case for all _e, esc_attr_e and esc_html_e strings
* Fixed case for all _n_noop strings
* Fixed case for all _x strings
* Fixed case for all __, esc_html__ and esc_attr__ strings
* Fixed a few more strings
* Fixed strings in unit tests
* Fix PayPal Standard case.
* Save Order text
2016-10-12 11:16:30 +01:00
Claudio Sanches
77722ecbe3
Fixed missing text domains ( #12066 )
2016-10-12 11:05:37 +01:00
Rami Yushuvaev
65cf1bcb6f
Merge branch 'master' of https://github.com/ramiy/woocommerce into i18n/similar-strings
2016-10-11 21:14:56 +03:00
Manos Psychogyiopoulos
75b3042d9c
[2.6] Variations script errors when 'empty' option is omitted ( #11944 )
...
* fix variation script malfunctioning when show_option_none arg is set to false
* add minified version
2016-10-11 18:26:08 +01:00
Mike Jolley
50544233f5
Wrap layered nav term in filter
...
Closes #11922
2016-10-11 18:23:25 +01:00
Mike Jolley
ed37f592bf
Set custom_attributes earlier
2016-10-11 18:08:02 +01:00
Mike Jolley
c2958bcaa6
Remove unused autocomplete/maxlength
2016-10-11 18:03:27 +01:00
Mike Jolley
9aea350628
Merge branch 'pr/11906'
2016-10-11 17:51:45 +01:00
Mike Jolley
d4a7490ff0
Simplify autofocus code
2016-10-11 17:51:05 +01:00
Mike Jolley
2a51a76e4e
Merge branch 'pr/12056'
2016-10-11 17:36:40 +01:00
Mike Jolley
a7ccc38096
Define classnames to choose what gets hidden
2016-10-11 17:36:34 +01:00
Mike Jolley
cfa2ee3605
Round the totals
...
Closes #11803
2016-10-11 15:56:18 +01:00
Claudio Sanches
f3a45aa388
Merge pull request #12063 from woocommerce/hide-template-select-box
...
Add notice and hide templates
2016-10-11 11:53:41 -03:00
Nirav Mehta
a0c3c29005
Allow extending customer available downloads ( #12019 )
...
* Fix: Escape HTML entities during output of coupon description on admin page
* Added filter for customer available downloads
2016-10-11 15:36:03 +01:00
Claudio Sanches
81dc55ad40
Merge pull request #12062 from danielhuesken/master
...
Rest-API fix action not called if no core attribute param updated
2016-10-11 11:34:01 -03:00
Claudio Sanches
60b1361305
Fixed several erros while setting data
2016-10-11 14:53:23 +01:00
Claudio Sanches
42b96346b5
Product set methods
2016-10-11 14:53:23 +01:00
Claudio Sanches
43fd79cfcd
First methods for WP_Product crud
2016-10-11 14:53:23 +01:00
Lucas Stark
3e11e168cd
Only display price meta when price is not empty
2016-10-11 09:15:45 -04:00
Claudio Sanches
d627d7f764
Created function to get the catalog visibility options
2016-10-11 14:11:37 +01:00
Mike Jolley
cee978e6f7
Add notice and hide templates
2016-10-11 12:44:54 +01:00
Daniel Hüsken
9b12df381e
Rest-API fix action not called if no core attribute param updated
2016-10-11 13:40:54 +02:00
Mike Jolley
321a72b957
Add missing comma
2016-10-11 11:53:47 +01:00
Mike Jolley
2396c0e18e
Fix new zone
2016-10-11 11:53:07 +01:00
Mike Jolley
d7f2d29ddc
Add row actions back
2016-10-11 11:46:23 +01:00
Rami Yushuvaev
83e938af1e
i18n: Merge similar translation strings to reduce the total strings count #11905
2016-10-11 04:39:13 +03:00
Mike Jolley
8a510994ef
Merge branch 'master' into shipping-zone-ui
...
# Conflicts:
# assets/css/admin.css
2016-10-10 18:45:54 +01:00
Mike Jolley
2d270fb405
Fix saving and rest of world
2016-10-10 18:41:07 +01:00
Mike Jolley
160049eddd
Remove save button from zones screen.
2016-10-10 17:50:29 +01:00
Mike Jolley
96f05bb49a
Add woocommerce_sort_by_subtotal_callback filter
...
Closes #11973
2016-10-08 13:22:52 +01:00
Mike Jolley
0dc20c3a58
Merge branch 'add/dismiss-store-notice'
2016-10-08 12:48:16 +01:00
Claudio Sanches
3425e82236
Merge pull request #12045 from woocommerce/improve-cc-number-input
...
Change credit card fields from text to tel
2016-10-08 01:51:16 -03:00
Claudio Sanches
a1e2c24c9c
Credit card input attribute like Stripe
2016-10-07 17:11:47 -03:00
Claudio Sanches
c08aec0680
Only the product name should have quotes #12039
2016-10-07 16:09:28 -03:00
Claudio Sanches
843efae178
Change cc number field from text to tel, closes #12037
2016-10-07 15:53:12 -03:00
James Koster
b8150ec49f
Make the Store Notice dismissible.
...
* Adds new-style css classes to store notice
* Adds a ‘dismiss’ link to the store notice
* Hide the notice when the ‘dismiss’ link is clicked and set a cookie
to keep it hidden
2016-10-07 13:41:13 +01:00
Nico Mollet
35537814d8
Fixing syntax errors
2016-10-07 13:56:42 +02:00
Nico Mollet
9147d124a8
Product name in quotes in cart, after being removed
...
The product name should be in quotes after being removed in cart page.
2016-10-07 11:18:30 +02:00
Claudio Sanches
e6a956f795
Improve password reset using WP functions
2016-10-05 19:01:59 -03:00
Claudio Sanches
4a5638aa74
Merge pull request #11927 from davefx/patch-1
...
Create new filter to custom log messages
2016-10-05 16:39:10 -03:00
Claudio Sanches
47b4b5d4f3
Merge pull request #12026 from woocommerce/layered-nav-dropdown-filter
...
Wrap the "Any % (taxonomy)" string in a filter (to help with translation)
2016-10-05 15:42:14 -03:00
Justin Shreve
0d8e993cc3
Coding style fix. Add $taxonomy to the filter args.
2016-10-05 11:37:53 -07:00
Claudio Sanches
f36f6af0d2
Merge pull request #12027 from woocommerce/text-changes
...
Change Add-ons to Extensions within the admin
2016-10-05 15:36:54 -03:00
Jonathan Belcher
45739697e0
Change Add-ons to Extensions within the admin
2016-10-05 14:25:28 -04:00
Justin Shreve
c7d191f84b
Wrap the "Any % (taxonomy)" string in a filter so admins/dev can customize the text correctly for languages with genders.
2016-10-05 10:45:09 -07:00
Claudio Sanches
0d756deb1c
[REST API] Allow filter order note by type
2016-10-05 12:27:06 -03:00
Claudio Sanches
226482baf5
Fixed coding standards
2016-10-04 14:36:18 -03:00
Justin Shreve
ca95b190f7
Merge pull request #12013 from woocommerce/fix-api-remove-line-items
...
[REST API] Updated values to check if line item is null
2016-10-04 10:28:59 -07:00
Claudio Sanches
81ffb798a1
Removed nav menu rename hack
2016-10-04 13:55:50 -03:00
Claudio Sanches
a8a77101f3
Fixed product taxonomies names
2016-10-04 13:53:32 -03:00
Claudio Sanches
c62c5b835e
Updated values to check if line item is null
2016-10-04 13:39:37 -03:00
Claudio Sanches
514d8899ba
Merge pull request #12012 from woocommerce/fix-add-ons
...
Only display image if src is provided
2016-10-04 13:23:00 -03:00
Jonathan Belcher
f740497883
Update class-wc-admin-addons.php
2016-10-04 12:15:52 -04:00
Jonathan Belcher
1ef33a0452
Only display image if src is provided
2016-10-04 11:47:38 -04:00
Claudio Sanches
dc3dbefa94
Fixed woocommerce_sessions primary key, closes #11999
2016-10-04 12:26:57 -03:00
Claudio Sanches
8f7816a8e4
Merge pull request #12005 from ttarpinyan/fix-issue-12004
...
fix issue 12004 (sales price does not automatically revert to regular…
2016-10-04 12:07:20 -03:00
Toros Tarpinyan
4c61ed03e5
fix comment spacing
2016-10-04 11:20:49 -04:00
Toros Tarpinyan
2fc3c62943
fix issue 12004 (sales price does not automatically revert to regular price on the store front at the end of the sales event)
2016-10-04 08:25:12 -04:00
Justin Shreve
2cc04663ee
Don't run expiry date through date() if it isn't set. Also don't do a string comparison check on an integer.
2016-09-30 14:16:41 -07:00
rspublishing
180ac717a8
Coding standards
2016-09-30 16:23:17 +02:00
rspublishing
424948f4de
Coding standards
2016-09-30 16:15:56 +02:00
rspublishing
5814dc3a97
Adds a system status tool for clearing orphaned variations
2016-09-30 10:39:37 +02:00
Justin Shreve
1fbc48abeb
Merge pull request #11932 from franticpsyx/fix-variation-on-backorder-with-parent-managing-stock
...
[2.6] Variation is_on_backorder fails when parent manages stock and child doesn't...
2016-09-29 15:51:45 -07:00
Justin Shreve
ca10cca69b
Merge pull request #11990 from woocommerce/variations-rest-api
...
Implement Variation Endpoints & Tests
2016-09-29 15:48:36 -07:00
Justin Shreve
c1d7111240
Implement separate variation endpoints for managing a product's variations. Also adds tests.
2016-09-29 14:44:14 -07:00
Claudio Sanches
1230be795e
Fixed REST API docs, codeclimate and coveralls URLs
2016-09-28 09:09:06 -03:00
Matty
d037c4a3f2
Ensures any checks for 'woothemes.com' in logic also check for 'woocommerce.com'.
2016-09-28 12:19:58 +02:00
Matty
ae75f8b8cd
Adjusts all references of 'woothemes' to 'woocommerce' in relevant URLs, excluding the Travis CI integration which correctly uses 'woocommerce/woocommerce'.
2016-09-28 12:17:40 +02:00
Justin Shreve
0aa65fa0d0
Merge pull request #11951 from woothemes/feature-add-ons
...
[feature] Add ons screen update
2016-09-27 11:25:53 -07:00
Claudio Sanches
2104f95ea1
Merge pull request #11978 from vishalkakadiya/master
...
Fixed typo mistake
2016-09-27 14:52:09 -03:00
Vishal Kakadiya
14b2e4f609
Fixed typo mistake
2016-09-27 21:52:46 +05:30
Claudio Sanches
150ce8b7ee
Merge pull request #11965 from woothemes/iMazed-patch-1
...
Change Twitter handle to WooCommerce
2016-09-27 12:45:36 -03:00
Claudio Sanches
e972c1aac2
Change woothemes.com to woocommerce.com, closes #11966
2016-09-27 12:44:48 -03:00
Jonathan Belcher
1d066234d5
[feature] Add ons screen update
2016-09-26 15:45:10 -04:00
Vishal Kakadiya
611460317a
Fixed whitespace issue
2016-09-24 10:16:22 +05:30
Mike Jolley
83cc0c7066
Work on shipping zone screens
2016-09-24 03:22:57 +01:00
Vishal Kakadiya
c4a62e215f
Added @return in add_additional_fields_schema()
2016-09-24 00:33:39 +05:30
Ines
53391bad01
Change Twitter handle to WooCommerce
...
Tweets were sending out with the @WooThemes handle still, the account we're phasing out. Changed `data-via=` from WooThemes to WooCommerce.
2016-09-23 10:34:23 +02:00
Mike Jolley
e408391fa9
[2.6] Merge pull request #11903 from A5hleyRich/background-processing-session-locking
...
Fix session locking in background processing class
2016-09-22 17:36:30 -07:00
Claudio Sanches
e0572c782d
Included @since in wc_get_product()
2016-09-21 20:19:04 -03:00
Claudio Sanches
baceb4621b
Fixed KGS currency symbol.
...
Fixes based in the http://www.nbkr.kg website
2016-09-21 15:15:51 -03:00
opportus
af26ab6f3d
improved structured data - valids TCI checks
2016-09-21 16:37:54 +02:00
opportus
cff7189a87
improved structured data - branch update
...
Travis CI check...
2016-09-21 15:52:27 +02:00
corsonr
97e95e3e99
fixed extra space and escaped $args[autofocus]
2016-09-16 09:53:33 -07:00
Mike Jolley
74063fe52c
Merge pull request #11908 from woothemes/download-layout-11806
...
Tweak download layout
2016-09-15 20:56:39 +01:00
Manos Psychogyiopoulos
55f4a846db
fix variation is_on_backorder when parent manages stock
2016-09-15 22:56:33 +03:00
David Marín
22229d1e2e
Fix space between parenthesis
2016-09-15 21:43:56 +02:00
Ashley Rich
fa66dfa935
Fix session locking on async requests
2016-09-15 19:05:16 +01:00
James Kemp
b2bf294e03
Min/Max Modifications
...
CAST min/max as decimal. Otherwise, a max of 59.99 will return 59 instead of 60 - so the product will be missed when using the filter.
Added filter on post_type so I can add product_variation for compatibility with one of my plugins.
2016-09-15 12:05:59 +01:00
David Marín
3ab087212b
Update class-wc-logger.php
2016-09-15 11:04:35 +02:00
opportus
8123ba6184
improved structured data - merge conflict fix
2016-09-14 22:15:49 +02:00
opportus
eaa7def18a
improved structured data - some little tweaks
2016-09-14 22:08:57 +02:00
Claudio Sanches
7172429244
Fixed coding standards
2016-09-14 16:00:14 -03:00
Claudio Sanches
0fced8d5d5
Fixed wrong "quantity" while reducing stock
...
cc @mikejolley
2016-09-14 15:35:17 -03:00
Claudio Sanches
9817caccdd
Removed multiple lines #11915
2016-09-14 11:27:11 -03:00
Claudio Sanches
651a4cb26b
Merge pull request #11907 from woothemes/ua-tracking-11848
...
User agent tracking
2016-09-14 10:33:37 -03:00
David Marín
d74e4e27a7
Update class-wc-logger.php
2016-09-14 13:28:28 +02:00
Taylor Lovett
01a92a3bcb
Add filter to continue uploading images if one fails (api)
2016-09-13 21:03:05 -04:00
Claudio Sanches
16eb18a0ab
[REST API] Include variation description, closes #11815
2016-09-13 19:28:25 -03:00
Claudio Sanches
2e26752e47
Introduces the woocommerce_after_save_address_validation action, closes #11877
2016-09-13 19:13:12 -03:00
Claudio Sanches
089b5e93f2
Fixed coding standards
2016-09-13 19:04:33 -03:00
Claudio Sanches
c5c1e9ecbe
Merge pull request #11904 from BIOSTALL/patch-1
...
Fix settings sectionend
2016-09-13 18:53:15 -03:00
Claudio Sanches
e72af424ac
Check if FS_CHMOD_FILE is defined #11901
2016-09-13 18:38:16 -03:00
Claudio Sanches
be029374ce
Fixed coding standards
2016-09-13 18:24:21 -03:00
Claudio Sanches
5de8dd0d65
Fixed coding standards
2016-09-13 17:47:19 -03:00
rspublishing
e640707f89
Use numbered index in sprintf
2016-09-13 14:39:16 +02:00
rspublishing
8265295862
Minor text changes
2016-09-13 13:56:49 +02:00
rspublishing
9ec739c167
Link to SSL/HTTPS doc from checkout settings
2016-09-13 13:50:52 +02:00
rspublishing
2526ba49a8
Replace WooThemes.com with WooCommerce.com
2016-09-13 13:47:40 +02:00
Mike Jolley
4d041b2ce2
chmod file when closed.
2016-09-12 23:37:02 +01:00
Mike Jolley
78bde4ad09
Tweak download layout
2016-09-12 23:00:31 +01:00
Mike Jolley
b5cb254941
Add zone ID for bw comp
2016-09-12 22:16:32 +01:00
Mike Jolley
0e6bbc8210
User agent tracking
2016-09-12 22:11:05 +01:00
corsonr
b3236b4088
Add autofocus support
2016-09-12 21:33:52 +02:00
Steve Marks
9f007e0875
Fix settings sectionend
...
Fixed incorrect sectionend reference in Email settings
2016-09-12 15:40:28 +01:00
Mike Jolley
e0489e4706
[2.6][api] Skip empty attribute.
2016-09-12 15:13:32 +01:00
Ashley Rich
33048e742c
Fix session locking in background processing class
2016-09-12 15:10:04 +01:00
Mike Jolley
1037f9b8c4
Merge pull request #11895 from tlovett1/api-silent-images-fail
...
(API) Add filter to continue uploading images if one fails
2016-09-12 14:53:58 +01:00
Mike Jolley
481471a64c
Merge remote-tracking branch 'origin/master'
2016-09-12 14:53:10 +01:00
Mike Jolley
f9b2ed88c2
Merge branch 'pr/11883'
...
# Conflicts:
# includes/class-wc-shortcodes.php
2016-09-12 14:53:04 +01:00
Mike Jolley
8b8c2780b4
Merge pull request #11901 from rasmusbe/patch-1
...
Make WC_Logger follow FS_CHMOD_FILE when file is created
2016-09-12 14:49:21 +01:00
Mike Jolley
18b5648211
Merge branch 'slash1andy-patch-1'
2016-09-12 14:41:08 +01:00
Mike Jolley
63b6323b54
no www.
2016-09-12 14:41:03 +01:00
Mike Jolley
22c9c3aebf
[2.6][api] Also need to decode the input. Passes unit tests.
2016-09-12 14:39:00 +01:00
Mike Jolley
978fa976f7
[2.6][api] Convert posted names to the API to slugs before save.
...
Fixes #11871
@claudiosmweb can you review the API changes made today - there are a
few like this - for inclusion in 2.6 asap. Let me know on slack.
2016-09-12 14:37:44 +01:00
Mike Jolley
8d19028754
Merge branch 'pr/11876'
2016-09-12 14:23:10 +01:00
Mike Jolley
0b6f1cbca8
[2.6][API] decode before sanitize
...
Fixes #11874
2016-09-12 13:46:01 +01:00
Mike Jolley
804178b6d1
[2.6] Remove empty ids.
...
Fixes #11887
2016-09-12 13:10:08 +01:00
Mike Jolley
e7fb89be5f
Protocol relative images
...
Closes #11884
2016-09-12 13:03:44 +01:00
Rasmus
9e8670015e
Make WC_Logger follow FS_CHMOD_FILE when file is created
...
When WC_Logger creates a file it should use the permissions defined in FS_CHMOD_FILE
See https://codex.wordpress.org/Editing_wp-config.php#Override_of_default_file_permissions
2016-09-12 12:59:18 +02:00
Taylor Lovett
6eae03c6df
Make sure to continue to next image on error
2016-09-09 23:49:45 -04:00
Taylor Lovett
3c164427ca
Add filter to continue uploading images if one fails (api)
2016-09-09 22:41:41 -04:00
Andrew Wikel
a489d492b8
Change the "Premium Support" link to updated link
...
Change the domain to WooCommerce.com and then used the link from the menu on WooCommerce.com
2016-09-09 14:50:26 -05:00
Claudio Sanches
25b42700c2
Added support for the new US postcode format with 9 digits
2016-09-09 14:51:41 -03:00
Aristeides Stathopoulos
230c0398b3
fix failing test from master
2016-09-09 19:39:09 +03:00
Aristeides Stathopoulos
831b4463d0
Merge pull request #5 from woothemes/master
...
sync
2016-09-09 16:49:48 +03:00
Justin Shreve
c8ddca0635
Merge pull request #11882 from woothemes/settings-and-api-fixes
...
Settings & API Fixes
2016-09-09 05:52:23 -07:00
Justin Shreve
e1e6c682b5
* Stop using _ as a prefix for protected or private vars and functions. We have a keyword for that.
...
* Introduces set_id and get_id to WC_Data for the CRUD classes to share
2016-09-09 05:36:54 -07:00
Aristeides Stathopoulos
888ad9bfdd
another PHP syntax fix for lower PHP versions
2016-09-09 15:34:46 +03:00
Aristeides Stathopoulos
88da683f0a
Merged branch master into master
2016-09-09 14:49:32 +03:00
Aristeides Stathopoulos
0cf5fc4904
fix PHP Fatal errors on lower PHP versions
...
Fatal error: Can't use method return value in write context
2016-09-09 14:49:14 +03:00
Aristeides Stathopoulos
7a509f53d4
Merge pull request #4 from woothemes/master
...
sync
2016-09-09 03:17:28 +03:00
Aristeides Stathopoulos
9668247b95
WordPress.PHP.YodaConditions.NotYoda
2016-09-09 03:14:28 +03:00
Justin Shreve
a36b25a68f
Add setting validation to the REST API
2016-09-08 15:20:15 -07:00
Justin Shreve
b665f5e1c6
Setting IDs do not need to be unique across the entire system.. just the group.
2016-09-08 15:20:15 -07:00
Justin Shreve
49676d1781
Hook up email settings to the API
...
Add support for option_key when registering settings, so we can also manage settings that are stored in the array of a single option.
2016-09-08 15:20:15 -07:00
Justin Shreve
9889222bd1
Swap "doesn't" with "does not" in 404 error messages.
2016-09-08 15:17:02 -07:00
Chase Wiseman
51b5d11b97
Prevent average product rating meta from being set for other post types
2016-09-08 09:36:56 -07:00
Daniel Hüsken
47561278b8
API: Attribute slug will not be sanitize correctly #11874
2016-09-08 15:06:19 +02:00
Daniel Hüsken
367e16ffa9
API Variation returns sanitize attribute names #11868
2016-09-08 14:13:39 +02:00
Mike Jolley
238483ff2b
No need to strip pa_ here
...
Closes #11868
2016-09-08 12:04:51 +01:00
Mike Jolley
c96a3ea395
[2.6] Merge pull request #11860 from jobthomas/taxes-ux
...
Taxes ux
2016-09-08 10:07:45 +01:00
Mike Jolley
459d5584a4
Merge pull request #11865 from iconicwp/patch-1
...
[actions] Pass $atts into do_action
2016-09-08 10:06:56 +01:00
Mike Jolley
7c134d7f7c
Do action when login fails.
...
Closes #11864
2016-09-08 10:06:16 +01:00
Aristeides Stathopoulos
734f284fa4
WordPress.PHP.YodaConditions.NotYoda
2016-09-08 01:32:24 +03:00
Iconic
2dbeabffe1
[actions] Pass $atts into do_action
2016-09-07 19:17:46 +01:00
Mike Jolley
9cca27f21e
Take out admin check
...
@justinshreve I’m not sure why we had the admin check there, but I’ve
removed it because the setting of WP_ADMIN was breaking unrelated unit
tests. I think we should leave constants alone if possible and just
modify gateways.
2016-09-07 12:37:39 +01:00
Job
ff9c553b1b
coding standards
2016-09-07 13:34:37 +02:00
Job
ffa2c4dec2
crucial update
2016-09-07 13:25:34 +02:00
Job
d086cf3248
update function
2016-09-07 13:12:18 +02:00
Job
50fe611cdb
again small update after review
2016-09-07 13:01:55 +02:00
Job
a0274e9dc5
small update
2016-09-07 12:47:24 +02:00
Job
d0aaf68f27
Update UX for disabled taxes
...
If taxes are disabled in the “General settings tab”, then the “Tax” tab
disappears, and the suffix can no longer be edited, but is still
displayed in the store
This fix makes sure that the suffix is only displayed if taxes are
enabled
2016-09-07 12:38:38 +02:00
Mike Jolley
311c540662
Merge pull request #11833 from aristath/master
...
Coding Standards (2nd pass)
2016-09-07 10:14:17 +01:00
Mike Jolley
e4c91aef62
[2.6] Don't SUM meta
...
#11838
2016-09-07 10:05:17 +01:00
Mike Jolley
3f9ab31461
Fix CRUD refunds
2016-09-07 10:04:56 +01:00
Mike Jolley
ed2b7a9f57
[2.6] refunded_order_items should be reset per loop
...
#11838
2016-09-07 09:31:17 +01:00
Mike Jolley
cf59524dd7
Fix order total race condition in CRUD
2016-09-07 09:28:11 +01:00
Mike Jolley
d4fb2b4ade
[2.6] Sync variations only
...
Closes #11852
2016-09-07 08:28:53 +01:00
Mike Jolley
0e409a4526
[2.6] Add missing tables to wpmu_drop_tables
...
Closes #11850
2016-09-07 08:26:51 +01:00
Justin Shreve
5113a8d19f
Fix unusued variable in Payment Gateway's prepare_item_for_response and fix the phpdoc for get_gateway
2016-09-06 13:34:25 -07:00
Justin Shreve
376a53de04
Merge pull request #11846 from woothemes/payment-gateway-api
...
Add Payment Gateways API
2016-09-06 10:34:09 -07:00
Justin Shreve
3dc0c5242a
Update method_title and method_description to use their get_ methods, also update the resource does not exist message, based on feedback.
2016-09-06 10:32:54 -07:00
Claudio Sanches
22fd124b31
Merge pull request #11843 from terence1990/master
...
Order statuses valid for Order Again
2016-09-06 13:40:05 -03:00
terence1990
7f686c2f73
Spaces
2016-09-06 13:00:52 +01:00
Mike Jolley
0618719b03
[2.6] Dynamic max run text
...
fixes #11849
2016-09-06 12:52:10 +01:00
Mike Jolley
940170edc8
Tweak date format
2016-09-06 12:03:27 +01:00
Mike Jolley
0c78ed7f9b
[2.6] Start sale on variation save if applicable
...
Fixes #11804
2016-09-06 11:37:20 +01:00
Mike Jolley
cf5da4adb3
[2.6] Don't remove hyphens in attribute labels
...
Closes #11832
2016-09-06 10:40:08 +01:00
Justin Shreve
fd952e8efa
Payment Gateways API
2016-09-05 14:49:29 -07:00
terence1990
36311b76f6
Fix: Order Again Statuses
2016-09-05 17:30:58 +01:00
terence1990
8b838c88a8
Order statuses valid for Order Again
2016-09-05 17:25:17 +01:00
Aristeides Stathopoulos
6ac7f03241
Generic.Formatting.DisallowMultipleStatements.SameLine
2016-09-02 06:40:52 +03:00
Aristeides Stathopoulos
9dc4949e0a
Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis
2016-09-02 06:17:42 +03:00
Aristeides Stathopoulos
2346c3b735
Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace
2016-09-02 06:15:49 +03:00
Aristeides Stathopoulos
c6a87301c1
Squiz.Commenting.InlineComment.SpacingBefore
2016-09-02 05:48:11 +03:00
Aristeides Stathopoulos
5280722f21
Squiz.Commenting.InlineComment.SpacingAfter
2016-09-02 05:47:24 +03:00
Aristeides Stathopoulos
15bec47475
Squiz.Commenting.InlineComment.NoSpaceBefore
2016-09-02 05:42:33 +03:00
Aristeides Stathopoulos
39d4d4bd69
Squiz.Commenting.DocCommentAlignment.SpaceBeforeStar
2016-09-02 05:40:36 +03:00
Aristeides Stathopoulos
cc0b29ccf4
PEAR.Functions.FunctionCallSignature.SpaceAfterCloseBracket
2016-09-02 05:00:46 +03:00
Aristeides Stathopoulos
d4e3faf014
PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket
2016-09-02 04:51:31 +03:00
Aristeides Stathopoulos
0516e96843
PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket
2016-09-02 04:33:57 +03:00
Aristeides Stathopoulos
8fe4cd65a4
PEAR.Functions.FunctionCallSignature.SpaceBeforeOpenBracket
2016-09-02 04:12:22 +03:00
Aristeides Stathopoulos
d922d045a7
Squiz.Commenting.BlockComment.NoNewLine + indentation on class-wc-cart
2016-09-02 04:03:52 +03:00
Aristeides Stathopoulos
f648657432
enabling more tests
2016-09-02 03:50:48 +03:00
Aristeides Stathopoulos
e07511502d
Additional coding-standards fixes.
2016-09-02 03:26:24 +03:00
Aristeides Stathopoulos
c823236098
Fix failing tests.
2016-09-02 00:33:36 +03:00
Aristeides Stathopoulos
fde1037757
fix failing tests.
2016-09-01 23:50:14 +03:00
opportus
53a257bb91
improved structured data - merge conflict fix
2016-09-01 14:15:15 +02:00
Mike Jolley
1b2df3dd3b
Merge branch 'pr/11797'
...
# Conflicts:
# includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php
# includes/api/class-wc-rest-coupons-controller.php
# includes/class-wc-coupon.php
# tests/unit-tests/api/coupons.php
# tests/unit-tests/coupon/crud.php
2016-09-01 11:46:05 +01:00
Mike Jolley
402d0ff077
Merge branch 'master' into pr/11797
...
# Conflicts:
# includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php
# includes/api/class-wc-rest-coupons-controller.php
# includes/class-wc-coupon.php
# tests/unit-tests/api/coupons.php
# tests/unit-tests/coupon/crud.php
2016-09-01 11:43:31 +01:00
Mike Jolley
4e14c4abeb
Merge pull request #11821 from woothemes/customer-exceptions
...
Customer CRUD/API exceptions
2016-09-01 10:58:35 +01:00
Claudio Sanches
f6d20eb324
[REST API] Fixed products query by SKU
2016-08-31 19:36:55 -03:00
Claudio Sanches
6def1188ab
Force post_type in products controller
2016-08-31 19:22:27 -03:00
Justin Shreve
43e55c3336
Instead of catching just the post_status, don't overwrite any filter args.
2016-08-31 15:15:28 -07:00
Justin Shreve
6cb9e1b613
Since we support WP_Query filtering via the API, make sure post_status filtering works too.
2016-08-31 14:39:37 -07:00
Claudio Sanches
06280a7003
HTTPS for google maps
2016-08-31 14:18:55 -03:00
Mike Jolley
d30c54ef84
Fix coupon notice in cart.
2016-08-31 18:11:41 +01:00
Mike Jolley
e7493b33cb
Merge branch 'pr/11817'
2016-08-31 17:52:10 +01:00
Mike Jolley
0a3506777b
Inline comments to make this clearer
2016-08-31 17:52:03 +01:00
Gabor Javorszky
219480b329
Save the version on the property too
2016-08-31 16:21:17 +01:00
Mike Jolley
8624156144
Merge pull request #11802 from corsonr/issue_11801
...
Fixes #11801
2016-08-31 15:50:32 +01:00
Mike Jolley
19f051c7ff
Merge branch 'master' into customer-exceptions
2016-08-31 15:45:27 +01:00
Mike Jolley
d9a0d0988b
Handle meta data and fix unit tests
2016-08-31 15:43:34 +01:00
Mike Jolley
1595cc5767
remove changed
2016-08-31 13:25:13 +01:00
Gabor Javorszky
9cfa231167
Fixes reset cache and version assignment for variable product prices
...
Fixes #11812
$this->array was only used to return to the user. Comparison was done with $prices_array, which did not contain the version information because it was never saved in the transient.
2016-08-31 11:12:49 +01:00
Mike Jolley
335a5e262a
use switch in read_manual_coupon
2016-08-30 18:58:28 +01:00
Mike Jolley
62d0619b1a
Avoid legacy keys
2016-08-30 18:03:00 +01:00
Mike Jolley
7439f6d79f
Use set_props
2016-08-30 17:59:41 +01:00
Mike Jolley
047242515d
Make API and CRUD use consistent keys and make use of data
2016-08-30 17:50:35 +01:00
Mike Jolley
b82415dfa3
Handle exceptions in API
2016-08-30 15:57:45 +01:00
Mike Jolley
1d7c8d8370
Handle read with set_props
2016-08-30 14:48:29 +01:00
Mike Jolley
ee356d2f29
Add WC_Data_Exception
2016-08-30 14:34:58 +01:00
corsonr
8cb17c1923
branch conflict fix
2016-08-30 14:30:05 +02:00
Mike Jolley
c4c863ffb0
Merge pull request #11792 from WPprodigy/price-filter-fix
...
Cast as decimal when querying prices
2016-08-30 11:48:51 +01:00
Mike Jolley
499e190efb
Merge pull request #11785 from woothemes/coupon-exceptions
...
Coupon Exceptions and REST/CRUD improvements
2016-08-30 11:44:19 +01:00
Mike Jolley
df35845d4d
wc_get_coupon_id_by_code
2016-08-30 11:43:53 +01:00
Claudio Sanches
f54ada22ba
Merge pull request #11796 from webmandesign/patch-1
...
Making sure `wc_get_screen_ids` function exists
2016-08-29 14:48:06 -03:00
Justin Shreve
de4296dd15
Add some missing API pieces:
...
* Value was missing from the settings schema (but was still present in the response).
* Added delete endpoint for shipping zones.
* Corrected permissions check/error for shipping zone methods.
2016-08-29 10:22:29 -07:00
opportus
db8cb4cf15
improved structured data - fixes missused `@uses` docblock tags
2016-08-28 09:24:17 +02:00
opportus
2fd3e107ab
improved structured data - branch update
2016-08-28 09:09:05 +02:00
Oliver Juhas
9a0c283b10
Making sure `wc_get_screen_ids` function exists
...
This is a fix for issue #11795
2016-08-27 16:46:23 +02:00
Aristeides Stathopoulos
69e6b05205
typo fix
2016-08-27 17:10:12 +03:00
Aristeides Stathopoulos
1c2a67554b
fix typo
2016-08-27 16:56:21 +03:00
Aristeides Stathopoulos
3267ce6522
WordPress.WhiteSpace.OperatorSpacing.SpacingBefore
2016-08-27 09:16:28 +03:00
Aristeides Stathopoulos
72696901f3
WordPress.WhiteSpace.OperatorSpacing.SpacingAfter
2016-08-27 09:14:06 +03:00
Aristeides Stathopoulos
fb62d280b5
WordPress.WhiteSpace.OperatorSpacing.NoSpaceBefore
2016-08-27 09:07:42 +03:00
Aristeides Stathopoulos
e69fafbda7
WordPress.WhiteSpace.OperatorSpacing.NoSpaceAfter
2016-08-27 09:06:22 +03:00
Caleb Burks
417d707996
Cast as decimal when querying prices
2016-08-27 01:03:06 -05:00
Aristeides Stathopoulos
f2730eea02
WordPress.WhiteSpace.ControlStructureSpacing.BlankLineAfterEnd
2016-08-27 08:57:05 +03:00
Aristeides Stathopoulos
7c589cf7e1
WordPress.WhiteSpace.ControlStructureSpacing.ExtraSpaceAfterCloseParenthesis
2016-08-27 07:53:52 +03:00
Aristeides Stathopoulos
a19848978a
WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterCloseParenthesis
2016-08-27 07:47:24 +03:00
Aristeides Stathopoulos
dea39df779
WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterOpenParenthesis
2016-08-27 07:38:29 +03:00
Aristeides Stathopoulos
2101dae5a0
WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen
2016-08-27 07:35:04 +03:00
Aristeides Stathopoulos
9543c7fe1c
WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeCloseParenthesis
2016-08-27 07:29:49 +03:00
Aristeides Stathopoulos
82f3cc221e
WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeOpenParenthesis
2016-08-27 07:23:02 +03:00
Aristeides Stathopoulos
4e3c1fd865
WordPress.WhiteSpace.ControlStructureSpacing.OpenBraceNotSameLine
2016-08-27 07:09:12 +03:00
Aristeides Stathopoulos
538f8e02cc
WordPress.WhiteSpace.ControlStructureSpacing.SpaceBeforeFunctionOpenParenthesis
2016-08-27 07:06:25 +03:00
Aristeides Stathopoulos
d430dabb37
Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines
2016-08-27 07:04:18 +03:00
Aristeides Stathopoulos
741f2b954a
Squiz.WhiteSpace.SuperfluousWhitespace.EndLine
2016-08-27 07:01:22 +03:00
Aristeides Stathopoulos
56fd004a72
WordPress.Arrays.ArrayDeclaration.FirstIndexNoNewline
2016-08-27 06:56:09 +03:00
Aristeides Stathopoulos
55075ce3a4
WordPress.Arrays.ArrayDeclaration.IndexNoNewline
2016-08-27 06:35:20 +03:00
Aristeides Stathopoulos
6c30f84fa2
WordPress.Arrays.ArrayKeySpacingRestrictions.SpacesAroundArrayKeys
2016-08-27 06:23:21 +03:00
Aristeides Stathopoulos
ff852038c9
WordPress.Arrays.ArrayKeySpacingRestrictions.NoSpacesAroundArrayKeys
2016-08-27 06:11:30 +03:00
Aristeides Stathopoulos
17961f6484
WordPress.Arrays.ArrayDeclaration.ValueNoNewline
2016-08-27 06:04:10 +03:00
Aristeides Stathopoulos
478a914494
WordPress.Arrays.ArrayDeclaration.SpaceInEmptyArray
2016-08-27 05:48:53 +03:00
Aristeides Stathopoulos
72ee94d11b
WordPress.Arrays.ArrayDeclaration.SpaceBeforeComma
2016-08-27 05:46:40 +03:00
Aristeides Stathopoulos
730069db06
WordPress.Arrays.ArrayDeclaration.SpaceAfterKeyword
2016-08-27 05:39:16 +03:00
Aristeides Stathopoulos
0b0f67ad28
WordPress.Arrays.ArrayDeclaration.SpaceAfterDoubleArrow
2016-08-27 05:36:32 +03:00
Aristeides Stathopoulos
14ec612760
WordPress.Arrays.ArrayDeclaration.NoSpaceBeforeDoubleArrow
2016-08-27 05:29:01 +03:00
Aristeides Stathopoulos
58b9df6564
WordPress.Arrays.ArrayDeclaration.NoSpaceAfterOpenParenthesis
2016-08-27 05:23:54 +03:00
Aristeides Stathopoulos
7d571bec44
WordPress.Arrays.ArrayDeclaration.NoSpaceAfterDoubleArrow
2016-08-27 05:16:12 +03:00
Aristeides Stathopoulos
32ddc22465
WordPress.Arrays.ArrayDeclaration.NoSpaceAfterComma
2016-08-27 05:14:16 +03:00
Aristeides Stathopoulos
ec8a0b288b
PHPCS: WordPress.Arrays.ArrayDeclaration.NoCommaAfterLast
2016-08-27 05:08:49 +03:00
Aristeides Stathopoulos
b063bcfe4c
last item in a multiline-array should end in a comma
2016-08-27 04:46:45 +03:00
opportus
a25e296782
improved structured data - fixes the previous mistake
2016-08-26 18:52:31 +02:00
opportus
e61c48272e
improved structured data - a little revision
2016-08-26 18:37:19 +02:00
Mike Jolley
8eef062079
Merge pull request #11781 from woothemes/shipping-method-api
...
Shipping Methods API
2016-08-26 16:51:55 +01:00
Mike Jolley
b0672a000a
Fixed unit tests
2016-08-26 16:44:00 +01:00
Shiva Poudel
330215db42
Check tax object name before modifying label
2016-08-26 21:14:50 +05:45
Mike Jolley
7d8bacc2b3
Missing $wpdb
2016-08-26 16:15:18 +01:00
opportus
f0af39a0fa
improved structured data - branch update
2016-08-26 17:01:01 +02:00
opportus
fff204490c
improved structured data - limits product structured data on archives and shop page
2016-08-26 16:57:49 +02:00
Mike Jolley
f034e1f69d
Exception handling and REST optimisation
2016-08-26 15:42:42 +01:00
Mike Jolley
3ff41ceea4
No need to add meta since CRUD handles this
2016-08-26 15:26:05 +01:00
Mike Jolley
5c40236d79
Fixes notices
2016-08-26 15:24:01 +01:00
Mike Jolley
ed01282340
Made data match schema
2016-08-26 15:20:44 +01:00
Mike Jolley
210763e536
use CRUD in admin
2016-08-26 14:50:17 +01:00
Mike Jolley
b4746e28cf
Optimise read_manual_coupon
2016-08-26 13:13:50 +01:00
Justin Shreve
849a208e54
Fix issues based on feedback. Make sure to use WC_Shipping_Zone's methods when avaiable, fix up some coding standards, and add a new delete_shipping_method to WC_Shipping_Zone
2016-08-26 04:57:30 -07:00
Mike Jolley
69c48db0a8
Correct ids method
2016-08-26 12:53:02 +01:00
Mike Jolley
cd81622d15
Read props
2016-08-26 12:52:22 +01:00
Mike Jolley
7405053a6a
Add exceptions
2016-08-26 12:33:33 +01:00
Mike Jolley
48243109c0
This is ran on set
2016-08-26 12:23:53 +01:00
Mike Jolley
c6d0d059fd
Remove typecasts on get
2016-08-26 12:22:05 +01:00
Mike Jolley
4cf54e445b
Merge pull request #11777 from leewillis77/feature/wc_attribute_label_optimisation
...
Use wc_get_attribute_taxonomies() in wc_attribute_label()
2016-08-26 11:27:06 +01:00
Mike Jolley
6b6c856cc7
Filter the template path
...
Closes #11774
2016-08-26 11:03:08 +01:00
Mike Jolley
f5cc89eec2
Merge pull request #11762 from woothemes/WC_Data_Exception
...
WC Data Exceptions
2016-08-26 10:57:41 +01:00
Mike Jolley
bd2e8ce0cc
Remove returns
2016-08-26 10:54:18 +01:00
Mike Jolley
9bd57414c5
Remove set and get prop - no longer need the extra overhead since functions won't return wp_error now.
2016-08-26 10:48:17 +01:00
Justin Shreve
147c18c197
Add the ability to update/create/delete shipping method instances
2016-08-25 20:34:26 -07:00
Justin Shreve
3ceb189118
Add GET /shipping_methods and GET /shipping_methods/METHOD_ID
...
Also adds tests.
2016-08-25 11:48:17 -07:00
Lee Willis
9a1aa1fd93
Use get_the_terms instead of wp_get_post_terms to take advantage of caching
2016-08-25 18:26:37 +01:00
Mike Jolley
461ec4da16
Return false instead of throwing exception
2016-08-25 17:48:36 +01:00
Mike Jolley
627b08ba37
Test coverage
2016-08-25 17:42:47 +01:00
Lee Willis
e3d5419b97
Use wc_get_attribute_taxonomies() in wc_attribute_label()
...
Currently wc_attribute_label() runs a SQL query every time it is called,
with no caching. Swap to using wc_get_attribute_taxonomies() which gives
us transient caching of the underlying data.
2016-08-25 17:34:18 +01:00
Mike Jolley
658970cbc8
No string required here
2016-08-25 17:12:32 +01:00
Mike Jolley
885231baba
yoda
2016-08-25 17:10:59 +01:00
Mike Jolley
4ea396aab1
When deleting a tax rate class, remove its rates
...
Closes #11759
2016-08-25 15:58:30 +01:00
Mike Jolley
1e037684eb
[2.6] Rest of the world ID 0 zone handling
...
Fixes #11688 Using NULL rather than 0 as default so rest of the world
can be treated different to a new zone. Prevents dupes.
2016-08-25 15:41:47 +01:00
Mike Jolley
1f1868195b
Write context error
2016-08-25 14:32:28 +01:00
Mike Jolley
b4e05154d7
Error handling for adding items
2016-08-25 14:22:27 +01:00
Mike Jolley
7f87800d8d
Fix save order item function
2016-08-25 13:50:37 +01:00
Mike Jolley
3637814b92
Revert use of default_data for default args and just set that in constructor
2016-08-25 13:31:03 +01:00
Mike Jolley
25883f8687
Set_props helper to load data from DB and handle errors
2016-08-25 13:05:27 +01:00
Mike Jolley
077f57f139
Merge branch 'master' into WC_Data_Exception
2016-08-25 11:03:14 +01:00
Mike Jolley
d936dfa87e
[2.6] Allow has_shipping_method to deal with instance ids
...
Fixes #11772
2016-08-25 10:58:11 +01:00
Mike Jolley
3c13ce6fcd
[2.6] Handle object when generate_cart_id is used.
...
Closes #11767
2016-08-25 10:58:11 +01:00
Mike Jolley
2d30e8469f
Merge pull request #11768 from WPprodigy/recently-viewed-widget-sorting
...
Sort “Recently Viewed” products by the view order
2016-08-25 10:48:07 +01:00
Mike Jolley
aa0078de8f
Merge pull request #11769 from WPprodigy/nav-menus-metabox
...
Nav menus metabox
2016-08-25 10:47:40 +01:00
Mike Jolley
543fc31d81
Fix filter and unit test
...
#11771
2016-08-25 10:45:50 +01:00
Mike Jolley
95db2f26cd
Set meta to 'null' to delete it during save.
...
Fixes #11771
2016-08-25 10:32:42 +01:00
Caleb Burks
a3524c95f3
Filter instead of action
2016-08-24 18:26:14 -05:00
Caleb Burks
dc876749cc
Rename taxonomies at Appearance > Menus > Pages
2016-08-24 18:22:47 -05:00
Caleb Burks
306e1dfa39
Sort “Recently Viewed” products by the view order
...
orderby ‘post__in’, and reverse the array so the most recently viewed product shows up on top.
2016-08-24 17:46:23 -05:00
Claudio Sanches
d4d1a95f21
Merge pull request #11765 from woothemes/system-status-tools-options
...
Remove checkbox options in system status tools
2016-08-24 14:19:19 -03:00
Claudio Sanches
16e386c873
Merge pull request #11757 from woothemes/get-coupon-code-by-id
...
Get coupon code by
2016-08-24 14:18:23 -03:00
Mike Jolley
0667c1cde1
Remove option based tools
2016-08-24 17:35:13 +01:00
Mike Jolley
84487d0f4b
Shipping debug mode moved to shipping settings
2016-08-24 16:55:34 +01:00
Mike Jolley
2dc3e5252f
Made WC_TEMPLATE_DEBUG_MODE a constant only
2016-08-24 16:46:07 +01:00
Mike Jolley
26c4b3ce13
Delete if qty = 0
2016-08-24 16:09:39 +01:00
Mike Jolley
a8dc46cfdf
Default line item data
2016-08-24 16:06:35 +01:00
Mike Jolley
938361535f
Exception handling
2016-08-24 16:02:19 +01:00
Mike Jolley
cde78abed3
Working on catching errors
2016-08-24 15:26:35 +01:00
Mike Jolley
d9798f7226
Set reading to prevent exceptions during DB load
2016-08-24 14:37:19 +01:00
Mike Jolley
7e30e8dda3
Set defaults and handle order reads without exceptions
2016-08-24 12:34:19 +01:00
Mike Jolley
53f01b52a8
Bring back WC_Data_Exception
2016-08-24 10:46:29 +01:00
Mike Jolley
c839944d46
Revert "Remove exception class"
...
This reverts commit 7c271e5dc5
.
2016-08-24 10:20:58 +01:00
Claudio Sanches
c8726cc42b
Fixed method return value in write context
...
cc @justinshreve
2016-08-24 01:50:12 -03:00
Claudio Sanches
3633960165
Removed dead global variables
2016-08-23 20:02:38 -03:00
Claudio Sanches
00b2e43250
DRY
2016-08-23 20:00:30 -03:00
Claudio Sanches
4513e33031
Introduces the wc_get_coupon_code_by_id() function
2016-08-23 19:52:14 -03:00
Claudio Sanches
5e069a4f4e
Merge pull request #11756 from woothemes/update/coupon-api-crud
...
Update Coupon API to use CRUD
2016-08-23 19:51:27 -03:00
Justin Shreve
77088a4a22
Coupon ID will also be an integer, so we can switch the prepare statement to expect that
2016-08-23 13:55:21 -07:00
Mike Jolley
b727acd96e
Implement get and set prop methods
2016-08-23 18:48:48 +01:00
Mike Jolley
e08e5a816d
2d array handling
2016-08-23 15:49:34 +01:00
Mike Jolley
2636d04ba6
Setters
2016-08-23 15:25:50 +01:00
Mike Jolley
b1bd1c2227
Fee
2016-08-23 15:02:57 +01:00
Mike Jolley
3e3e35d50d
Add set prop/get prop helper, error handler, and validation to item product class
2016-08-23 14:58:44 +01:00
opportus
9001f094ff
improved structured data - branch update
2016-08-23 15:49:20 +02:00
opportus
713adf2439
improved structured data - disable variable offers for looped products
2016-08-23 15:44:46 +02:00
Mike Jolley
7c271e5dc5
Remove exception class
2016-08-23 13:43:35 +01:00
Mike Jolley
74c96e305b
Error method
2016-08-23 13:43:26 +01:00
Mike Jolley
aa5fee3372
Merge pull request #11752 from corsonr/issue_11751
...
Fix issue 11751
2016-08-23 10:35:21 +01:00
corsonr
f430c23cdc
fix issue 11751
2016-08-23 11:16:38 +02:00
Multidots
41d079f086
Fixes add reply-to to admin emails ref #11630
2016-08-23 13:09:27 +05:30
Multidots
c7fc7cce07
Merge branch 'master' of https://github.com/nishitlangaliya/woocommerce
2016-08-23 12:41:22 +05:30
Claudio Sanches
2407a880f7
Updated the default colors for emails to match the Woo Style Guide
...
Closes #11748
cc @jameskoster
2016-08-22 20:59:56 -03:00
Justin Shreve
a243829db6
Convert Coupon Controller to use CRUD operations
2016-08-22 15:06:21 -07:00
Justin Shreve
7da590e422
Coupon Tests:
...
* Move tests for legacy endpoints to a legacy test folder.
* Create a test class to test the WC-API coupons endpoint.
2016-08-22 13:50:32 -07:00
Claudio Sanches
eb55096a32
Allow oAuth1.0a authentication using headers
2016-08-22 17:39:41 -03:00
Claudio Sanches
7a0c5bc19b
REST API expect meta data ID as an integer value
...
cc @mikejolley
2016-08-22 16:59:03 -03:00
Claudio Sanches
38e1be71eb
ID first for all elements in the REST API
...
cc @mikejolley
2016-08-22 16:58:34 -03:00
Claudio Sanches
0da91bb7d7
Merge pull request #11746 from woothemes/crud-meta-id
...
Swaps meta_id for id across crud and api
2016-08-22 16:43:57 -03:00
Mike Jolley
f34f1aa635
Simplify prepare_line_items logic
2016-08-22 19:58:30 +01:00
Mike Jolley
39f4a1cdca
Swaps meta_id for id across crud and api
2016-08-22 19:37:34 +01:00
Mike Jolley
169780d31b
woocommerce-message--success
...
Followed
https://github.com/woothemes/woocommerce/wiki/CSS-SASS-coding-guidelines
-and-naming-conventions
Closes #11722
2016-08-22 18:41:38 +01:00
Mike Jolley
2cea613566
Fix shipping meta save
...
#11601
2016-08-22 18:07:52 +01:00
Mike Jolley
a8e47992a6
Put back add_product for convenience. Fix unit tests.
2016-08-22 18:00:52 +01:00
Mike Jolley
3d696266d2
Set_address
2016-08-22 17:03:59 +01:00
Mike Jolley
7cf75f5085
Remove use of deprecated functions
2016-08-22 16:57:54 +01:00
Mike Jolley
95b11606fc
get_product_from_item -> get_product
2016-08-22 16:51:24 +01:00
Mike Jolley
c88984eb0e
Replace add methods
2016-08-22 16:48:19 +01:00
Mike Jolley
e079895c08
Set rate in one go for tax rate items
2016-08-22 14:52:03 +01:00
Mike Jolley
fc2e039882
Deprecate add_product etc
...
#11601
2016-08-22 14:51:53 +01:00
Mike Jolley
09e43cf797
read only refunded by
2016-08-22 13:15:15 +01:00
Mike Jolley
fdd7e797ba
API get refunds
2016-08-22 13:15:15 +01:00
Mike Jolley
9e45927803
Create refund with crud
2016-08-22 13:15:15 +01:00
Mike Jolley
7eb9720fde
Merge pull request #11737 from thii/add/paypal-here-txn-type
...
Add PayPal Here as a valid transaction type
2016-08-22 09:50:29 +01:00
Mike Jolley
698c84827d
Merge pull request #11717 from woothemes/improve-configure-terms
...
Change "Configure terms" into a link
2016-08-22 09:49:27 +01:00
Mike Jolley
9558c9e99a
Merge pull request #11730 from woothemes/improve-log-viewer
...
Removed internal scroll from log viewer
2016-08-22 09:48:55 +01:00
nishit.langaliya
94ed2fd96d
Fixes: Add reply-to to admin emails ref #11630
2016-08-22 11:42:21 +05:30
Claudio Sanches
8fe4c14e78
[REST API] Fixed customer last order data
2016-08-20 14:29:48 -03:00
Claudio Sanches
a6ffd4cafd
Update customer fields
2016-08-20 14:29:27 -03:00
Claudio Sanches
f7bf0b1184
Improve save customer meta fields and removed extra escape function #11733
2016-08-20 13:02:04 -03:00
Claudio Sanches
4c8a60fa06
Allow checkboxes in customer profiles, closes #11733
2016-08-20 12:57:35 -03:00
Thi
43cd8c9578
Add PayPal Here as a valid transaction type
2016-08-20 18:19:49 +09:00
Claudio Sanches
80ee7016f8
Fixed conflicts
2016-08-19 20:31:59 -03:00
Claudio Sanches
b3c0bee7fc
Sort by top rated widget with meta
...
ref #11711
cc @mikejolley
2016-08-19 19:57:42 -03:00
Claudio Sanches
d3e732322e
Fixed indentation for #11583
2016-08-19 19:37:03 -03:00
Claudio Sanches
e02d75bd9c
Merge pull request #11583 from opportus/seo-tweaks
...
Seo Tweaks
2016-08-19 19:34:29 -03:00
Claudio Sanches
47177667aa
Removed internal scroll from log viewer, closes #11729
2016-08-19 18:48:49 -03:00
Mike Jolley
3f4ffe8a49
More crud updates
2016-08-19 17:05:47 +01:00
Mike Jolley
190cd0bf86
Remove direct access of item props in admin
2016-08-19 15:08:00 +01:00
Mike Jolley
21ad196297
Use CRUD in wc_save_order_items
2016-08-19 13:43:33 +01:00
Claudio Sanches
d60d3d5b1e
Merge branch 'order-crud-api'
2016-08-19 02:07:10 -03:00
opportus
afa67364cd
improved structured data - some code optimization - revision1
2016-08-18 20:57:11 +02:00
opportus
363ec85c91
improved structured data - some code optimization
2016-08-18 20:37:34 +02:00
Claudio Sanches
acd8a70a30
[2.6] [REST API] Allow save refund reason, closes #11718
2016-08-18 15:20:52 -03:00
Mike Jolley
03110e755f
Unit tests
2016-08-18 17:24:44 +01:00
Claudio Sanches
9da3f79f41
Introduces the woocommerce_webhook_order_payload_filters filter
2016-08-18 13:22:13 -03:00
Mike Jolley
f1e517130a
Feedback from @claudiosmweb
2016-08-18 13:30:10 +01:00
Mike Jolley
fb585e9633
Add transient caching to product_loop
...
Closes #11708
2016-08-18 13:19:57 +01:00
opportus
7c9374f7f9
improved structured data - makes generators usable outside of template loop
2016-08-18 13:24:17 +02:00
Mike Jolley
5a740b7837
Merge pull request #11710 from woothemes/rest-api-load-priority
...
REST API hook load priority
2016-08-18 11:39:14 +01:00
Mike Jolley
747c48c13b
Sort by rating with meta
...
Closes #11711
2016-08-18 11:33:19 +01:00
Mike Jolley
eab72bd48e
Sync rating after clear_transients so meta exists
...
#11711
2016-08-18 11:10:16 +01:00
opportus
92513c6ad1
seo tweaks - branch update
2016-08-18 10:39:55 +02:00
Claudio Sanches
838f3737ea
[2.6] Fixed downloadable variable product URL, closes #11699
2016-08-18 00:53:27 -03:00
Claudio Sanches
74484c7009
[2.6] [REST API] Fixed undefined order ID, closes #11707
2016-08-18 00:41:46 -03:00
Claudio Sanches
2799bbdb27
Changed "Configure terms" into a link
2016-08-18 00:02:18 -03:00
opportus
f5187d650a
improved structured data - PHP<=5.4 compatibility fix plus few little tweaks
2016-08-18 02:31:13 +02:00
opportus
2189cc17e2
improved structured data - `get_structured_data()` method refactor for
...
PHP<=5.4 compatibility and code optimization reasons
2016-08-18 01:02:43 +02:00
opportus
8bd46f81fb
improved structured data - branch update
2016-08-17 22:12:45 +02:00
opportus
88929a9d35
improved structured data - add `methhod_exists()` statement into
...
`generate_output_structured_data()` method
2016-08-17 21:14:59 +02:00
Mike Jolley
7852eecb06
Fix get param usage
2016-08-17 17:25:29 +01:00
Mike Jolley
594bceedf2
Comment out exception code - see #11715
2016-08-17 17:07:30 +01:00
Mike Jolley
709dec9ef1
Create and update handling
2016-08-17 16:53:01 +01:00
Mike Jolley
3755049d86
Fix item data
2016-08-17 11:45:07 +01:00
Mike Jolley
0b9a5998cc
Exception class
2016-08-17 11:44:56 +01:00
Mike Jolley
b4599d9254
Schema update
2016-08-17 11:44:39 +01:00
Claudio Sanches
b1ac42220a
Merge pull request #11690 from sumnermic/patch-1
...
Add anchor attribute target "_blank"
2016-08-16 18:40:12 -03:00
Claudio Sanches
525b11a2a2
Defined a priority for the REST API init method
2016-08-16 17:44:32 -03:00
Claudio Sanches
49b7dd6dfa
Removed custom hooks introduced in #11668
2016-08-16 17:43:09 -03:00
Claudio Sanches
3cf8058f9b
DRY #11614
2016-08-16 16:55:26 -03:00
JLuis Freitas
5a0f0cf5b4
add PT (Portugal) address format
...
add $postcode_before_city format to portuguese addresses
2016-08-16 17:10:09 +01:00
Mike Jolley
92ebb933b4
Finish order get
2016-08-16 15:18:16 +01:00
Mike Jolley
3e88ec1f20
Product formatting
2016-08-16 14:49:30 +01:00
Mike Jolley
b64c55de49
Format item meta
2016-08-16 13:55:10 +01:00
Mike Jolley
99be0167b4
Order type doesn't appear to be used anywhere, and I'd expect other plugins extending orders to have their own classes anyway making this a bit pointless.
...
@thenbrent
2016-08-16 13:02:22 +01:00
Mike Jolley
b70a979fce
Get product item data
2016-08-16 13:01:38 +01:00
Mike Jolley
1baef12395
qty -> quantity
2016-08-16 12:36:38 +01:00
Mike Jolley
71ce5f77d0
Replace order_item_id with just id
2016-08-16 12:27:00 +01:00
Mike Jolley
0621db57d3
Merge branch 'master' into order-crud-api
2016-08-16 12:20:34 +01:00
Mike Jolley
e99798f16e
Date modified is read only and set by WP after update
2016-08-16 11:57:25 +01:00
opportus
c04cfa9d15
seo tweaks - adds to loop product and loop category headings a specific css class
2016-08-16 12:34:38 +02:00
opportus
26367d1108
seo tweaks - branch update
2016-08-16 12:19:29 +02:00
Multidots
dd445d8f09
Fixes:'File' link on My Accounts->Downloads incorrect for variations
2016-08-16 15:47:35 +05:30
Mike Jolley
bc75c60227
Merge branch 'master' into order-crud-api
2016-08-16 11:09:14 +01:00
Mike Jolley
46b6ca0f3b
Only read users from current site
2016-08-16 11:08:54 +01:00
Mike Jolley
de7e522835
Remove customer order queries for performance reasons and offer get_last_order() method instead.
...
Same for order counts - these don’t need to be populated after read,
only when needed. cc @justinshreve
2016-08-16 10:04:52 +01:00
opportus
6f3974d0e2
improved structured data - fixes fatal error with grouped products, thanks @leewillis77
2016-08-15 22:05:06 +02:00
Mike Jolley
c6f6713e47
Write context in coupon api
...
@justinshreve
2016-08-15 19:28:07 +01:00
Mike Jolley
589ce2f544
Write context
2016-08-15 18:26:00 +01:00
Mike Jolley
5afac69f10
Fix write context errors
2016-08-15 17:50:02 +01:00
Mike Jolley
c7ae2c31ea
leave wp meta alone and handle serialisation
2016-08-15 17:37:18 +01:00
Mike Jolley
3f08d116d8
Start using crud for order requests
2016-08-15 17:27:33 +01:00
Mike Jolley
9138d8a9e1
order api notices
2016-08-15 16:56:55 +01:00
Mike Jolley
83dca89d0c
Correct customer escaping and tests
2016-08-15 16:53:48 +01:00
Mike Jolley
14b40ea340
Handle first and last name fields
...
@justinshreve
2016-08-15 14:13:20 +01:00
Mike Jolley
e1318d9175
Stop WP core meta data being removed for customers
...
@justinshreve
2016-08-15 13:17:43 +01:00
opportus
17cc4bbd63
improved structured data - branch update
2016-08-15 14:16:14 +02:00
opportus
6c1990c3cf
improved structured data - some final little tweaks
2016-08-15 14:10:14 +02:00
Multidots
63c3a979f4
Fixes Add reply-to to admin emails
2016-08-15 16:31:12 +05:30
Mike Jolley
23e13fbfa6
created_via
2016-08-15 11:29:29 +01:00
Mike Jolley
0113dbd7c5
Use wc_do_deprecated_action
2016-08-15 11:08:36 +01:00
Mike Jolley
46793622df
wc_do_deprecated_action helper
2016-08-15 11:02:49 +01:00
Mike Jolley
6090e3cd00
set_backorder_meta helper
2016-08-15 11:02:38 +01:00
Mike Jolley
0dd41179aa
Prefix item ids and revert some changes to add_products method for ease of use.
2016-08-15 11:02:25 +01:00
opportus
5535da6a5b
improved structured data - added generate_output_structured_data() method
...
| modified some methods names | few other tweaks
2016-08-15 00:39:01 +02:00
opportus
017929dfdd
improved structured data - class refactor - revision7
2016-08-12 23:53:37 +02:00
opportus
f89408884b
improved structured data - class refactor - revision6
2016-08-12 22:58:23 +02:00
opportus
7290e93a33
improved structured data - removed SoftwareApplication and MusicAlbum
...
which were inappropriately replacing the Product type
2016-08-12 18:13:11 +02:00
Mike Jolley
7796fe9cf1
Clean item/group cache when remove_order_items is used.
2016-08-12 16:48:48 +01:00
Mike Jolley
eec9ce5b41
Revert addition of _delete_extra_meta_data
...
This essentially removes the ability to delete meta which is not great.
@justinshreve you added this in
https://github.com/woothemes/woocommerce/commit/e3b1f6dbc9558bae606fa76e
6941175582a301b7 - can you tell me what problems it was causing you so
we can add a different fix if needed?
2016-08-12 16:41:06 +01:00
Mike Jolley
eb45acf0d5
[2.6] Use method title in admin shipping dropdown
...
fixes #11678
2016-08-12 14:23:59 +01:00
opportus
ec3cce27ad
improved structured data - class refactor - fixed bugs
2016-08-12 15:19:26 +02:00
sumnermic
e336886afa
Add anchor attribute target "_blank"
...
Add anchor attribute target "_blank" to Regenerate Thumbnails link. It's pretty annoying for it to not open in a new window/tab.
2016-08-12 13:58:54 +01:00
Mike Jolley
f3651a9881
Fix user agent calls
2016-08-12 12:53:09 +01:00
Mike Jolley
f7958f2b20
[2.6] Drafts don't have post_date_gmt
...
Fixes #11686
@claudiosmweb @justinshreve
2016-08-12 12:53:09 +01:00
Mike Jolley
cfc31dd311
wc_prevent_adjacent_posts_rel_link_wp_head
...
Closes #11683
2016-08-12 11:03:28 +01:00
Mike Jolley
97618fa2af
Made stock notes consistent
...
Fixes #11673
2016-08-12 10:47:01 +01:00
Mike Jolley
bb50ca8a6c
Merge remote-tracking branch 'origin/master'
2016-08-12 10:39:47 +01:00
Mike Jolley
584b1ce4cb
Merge branch 'pr/11674'
2016-08-12 10:39:45 +01:00
Mike Jolley
3b0af0c54b
Merge pull request #11670 from woothemes/fix-reports-custom-daterange
...
Reports: Clean up custom date range UI
2016-08-12 10:36:48 +01:00
opportus
8ea2842a39
improved structured data - class refactor - revision5
2016-08-12 11:01:02 +02:00
opportus
637e64a6b5
improved structured data - class refactor - revision4
2016-08-12 02:55:52 +02:00
opportus
1e52d903f0
improved structured data - class refactor - revision3
2016-08-12 01:29:35 +02:00
kellychoffman
f41321fb27
input length: increased to 11
2016-08-11 15:59:25 -06:00
Justin Shreve
a610c6a804
Update the Customers API to use the WC_Customer CRUD Class
...
Also:
* Introduces Tests for the Customer REST API
* Fixes a few API and test issues from recent CRUD changes
* Adds some missing billing_ and shipping_ meta data functions to Customer CRUD
2016-08-11 10:30:44 -07:00
corsonr
51060807c4
remove un-necessary slashes
2016-08-11 16:07:40 +02:00
opportus
42637e85c7
improved structured data - class refactor - revision2 + coding standards tweaks
2016-08-11 14:58:05 +02:00
opportus
8176bc5282
improved structured data - class refactor - revision1
2016-08-11 12:04:12 +02:00
opportus
39dce5a450
improved structured data - tabulation fix
2016-08-11 11:17:14 +02:00
rspublishing
f3956131bf
Copy update in setup wizard
2016-08-11 08:40:12 +02:00
Gabor Javorszky
ddd34a4460
Fix add to cart variation AJAX mode when cart fragments are dequeued
...
No issue.
* high traffic site, so wc-cart-fragments are dequeued (#7777 )
* variable product with a lot of variations, so stock lookup happens through ajax
* previously the add-to-cart-variation.js used the wc_cart_fragments_params for the ajax URL, which in this case wasn't available, the result was a hung page
* decoupled from cart fragments: added the wc_ajax_url to the params that wc_add_to_cart_variation_params gets, so no more hung pages.
2016-08-11 01:17:43 +01:00
opportus
93088f45ac
improved structured data - merge conflict fix
2016-08-11 00:49:20 +02:00
opportus
b61aae01bf
improved structured data - email order structured data integration +
...
WC_Structured_Data refactor + coding standards tweaks
2016-08-11 00:23:26 +02:00
Claudio Sanches
43c654a04b
[2.6] [REST API] Fixed wrong get order notes error message, closes #11672
2016-08-10 17:55:41 -03:00
kellychoffman
9a7b391b74
custom date: add en dash, larger inputs, no hidden text
2016-08-10 10:35:42 -06:00
Justin Shreve
dd0ddac577
Merge pull request #11668 from woothemes/add/wc-api-loading-hooks
...
Add a new hook and filter for loading new REST API files.
2016-08-10 06:30:26 -07:00
Justin Shreve
1c333b4a18
Merge pull request #11667 from woothemes/issues/11664/fix-func_get_args-warning
...
Fix func_get_args warning thrown by php7cc.
2016-08-10 06:27:06 -07:00
Justin Shreve
7def54c528
Add a new hook and filter for loading new REST API files.
2016-08-10 06:19:06 -07:00
Akeda Bagus
2fb71e6ec6
Fix func_get_args warning thrown by php7cc.
...
Although unlikely to happens, this is an attempt to prevent any modification
before func_get_args().
See https://github.com/php/php-src/blob/PHP-7.0/UPGRADING#L190-L213
Fixes #11664 .
2016-08-10 19:00:20 +07:00
Mike Jolley
efd390e951
Merge pull request #11645 from woothemes/orders-crud-function-update
...
Orders crud functions
2016-08-10 12:19:38 +01:00
Mike Jolley
d4cc1f80d4
[2.6] Fix ship to specific counties option
...
Fixes #11642
2016-08-10 12:04:52 +01:00
Mike Jolley
dff1fc84de
Merge pull request #11651 from rodrigoprimo/comment-type-index
...
Add an index to the field comment_type
2016-08-10 11:02:10 +01:00
Mike Jolley
1a4576b95c
Merge branch 'pr/11661'
2016-08-10 10:36:58 +01:00
Mike Jolley
51f3efd5c4
Don't need both cases
2016-08-10 10:36:51 +01:00
Justin Shreve
486f7cc738
Correct the avatar_url Customer API response to use the correct email field.
2016-08-09 14:02:58 -07:00
Gregory Karpinsky
b08d0bc1d2
woocommerce_taxonomy_archive_description
...
Check for `is_product_taxonomy()` to show the description on the product attribute archives.
2016-08-09 16:22:50 -04:00
Justin Shreve
35cae38aa2
Fix issues from PR review: sanitize/escape fixes in wp-admin, remove modes.
2016-08-09 10:14:47 -07:00
Justin Shreve
72d665d464
Remove @todo
2016-08-09 09:51:30 -07:00
Justin Shreve
b198e6d65b
Add the ability to see and update system status modes (shipping debug, template debug, uninstall...)
2016-08-09 09:51:30 -07:00
Justin Shreve
9609998505
Add tools controller
2016-08-09 09:51:30 -07:00
Justin Shreve
9dbd365be8
First pass at system status tools. Fully functioning endpoints for listing tools, listing data about a specific tool, and executing a tool.
2016-08-09 09:51:30 -07:00
Mike Jolley
30b0045d8a
Fix more notices
2016-08-09 14:30:10 +01:00
Mike Jolley
71afe5fdf7
Fix get_items
2016-08-09 14:21:54 +01:00
Mike Jolley
f4a4f6c361
Reduce stock and other notices
2016-08-09 14:15:04 +01:00
Mike Jolley
8d58febaf8
Merge branch 'master' into orders-crud-function-update
...
# Conflicts:
# includes/class-wc-checkout.php
2016-08-09 14:03:06 +01:00
Mike Jolley
7861b76e9b
Checkout handling
...
Also introduces add_item so you can add items to an order before the
order exists. Save at once is more efficient.
2016-08-09 14:02:40 +01:00
Rodrigo Primo
7acf712e45
Check if there is a comment_type index before adding one
...
Adding this check to avoid a MySQL error when running the query if the index already exists.
2016-08-09 14:28:41 +02:00
Mike Jolley
f4b45001ec
Merge conditonal
2016-08-09 11:17:47 +01:00
Mike Jolley
b7dcd97572
Sanitize on set only
2016-08-09 11:16:54 +01:00
Mike Jolley
01a4c81094
Spacing
2016-08-09 11:16:13 +01:00
Mike Jolley
4ac4bcaa08
Merge branch 'master' into WC-CRUD
...
# Conflicts:
# tests/unit-tests/cart/cart.php
2016-08-09 11:08:21 +01:00
Rodrigo Primo
2e8f02f6a4
Add an index to the field comment_type
...
This index improves the response time of the query used by WC_Comments::wp_count_comments() to get the number of comments by type.
2016-08-09 10:00:51 +02:00
Justin Shreve
2d0aeec5c5
Fix customer batch error
2016-08-08 14:54:12 -07:00
Justin Shreve
fe7e26d68d
Error fixes:
...
* Typos
* Consistent edit error handles
* Consistent error messages
2016-08-08 14:52:46 -07:00
Mike Jolley
971cff77b8
Fixed unit tests
2016-08-08 17:47:50 +01:00
Mike Jolley
39eb584321
Merge branch 'master' into orders-crud-function-update
2016-08-08 17:24:40 +01:00
Mike Jolley
e8d85005d7
Handle default status
2016-08-08 17:24:39 +01:00
Mike Jolley
6a493f7350
order total
2016-08-08 17:06:12 +01:00
Mike Jolley
9d66367699
Status change fixes
2016-08-08 17:03:43 +01:00
Mike Jolley
31803f4e51
Billing/shipping
2016-08-08 16:46:58 +01:00
Mike Jolley
7bdda1f707
more dates
2016-08-08 16:34:01 +01:00
Mike Jolley
a6bb78b34a
date created
2016-08-08 16:32:03 +01:00
Mike Jolley
30742798ed
Order table
2016-08-08 16:31:06 +01:00
Mike Jolley
7b0d9a3e61
IP and notes
2016-08-08 16:24:16 +01:00
Mike Jolley
a8759fc0aa
Meta/product handling
2016-08-08 16:20:15 +01:00
Mike Jolley
c3aa933ad2
coupon
2016-08-08 15:25:22 +01:00
Mike Jolley
75975de58a
Item meta
2016-08-08 15:22:00 +01:00
Mike Jolley
9bbf5df1fd
Billing/shipping details
2016-08-08 14:49:53 +01:00
Job
f5e45d254e
update woothemes > woocommerce
...
changes in the help tab
WooThemes Helpdesk > WooCommerce Helpdesk
2016-08-08 15:37:30 +02:00
Mike Jolley
cfe28c9b25
Made WC_Logger pluggable via wc_get_logger function.
...
Closes #11474
2016-08-08 13:59:23 +01:00
Mike Jolley
87443763d8
Hook in the no products found template
...
Closes #11257
cc @jameskoster
2016-08-08 13:43:42 +01:00
Mike Jolley
40d395c16c
Merge pull request #11629 from woothemes/price-inc-tax-hell-11626
...
Prices including taxes and what gets stored/presented.
2016-08-08 12:17:36 +01:00
Mike Jolley
48f52af35d
Merge pull request #11632 from nathanielks/patch-1
...
Update class-wc-form-handler.php
2016-08-08 12:16:19 +01:00
Mike Jolley
5eaee825f1
Ensure page_object is valid
...
Closes #11641
2016-08-08 12:14:41 +01:00
Mike Jolley
4a8db96c91
[2.6][api] ID needs to be capitalized
...
Sorting won’t work with lowercase id
Fixes #11635
@claudiosmweb
2016-08-08 12:10:29 +01:00
Mike Jolley
61e2969b83
[2.6][API] Fix coupon description field
...
fixes #11633
2016-08-08 11:27:07 +01:00
Paul Kilmurray
4484877481
initialize $tax_rates variable
...
There are situations where the $tax_rates may not be initialized in the conditional, which in turn throws an error later in the function.
2016-08-08 10:36:04 +07:00
Nathaniel
92b28baeb4
Update class-wc-form-handler.php
...
As a user, I would expect to be returned to the Edit Address page as opposed to the My Account page.
2016-08-06 11:54:44 -07:00
opportus
a918db0983
improved structured data - @leewillis77 feature - revision1
2016-08-06 19:20:51 +02:00
opportus
79ef06b6ad
improved structured data - added div into short description template
2016-08-06 00:49:31 +02:00
opportus
4d5e641f11
improved structured data - @leewillis77 feature
2016-08-06 00:32:32 +02:00
Mike Jolley
6bf05396c2
date_paid
2016-08-05 16:14:30 +01:00
Mike Jolley
f4727c0cae
billing_email
2016-08-05 16:11:23 +01:00
Mike Jolley
b8bf05df11
get_user_agent
2016-08-05 16:10:45 +01:00
Mike Jolley
0a0330bac0
customer_user
2016-08-05 16:09:40 +01:00
Mike Jolley
007a767657
billing_phone
2016-08-05 16:09:04 +01:00
Mike Jolley
7685587b22
payment_method
2016-08-05 16:04:41 +01:00
Mike Jolley
693e5ece36
billing_company
2016-08-05 16:03:09 +01:00
Mike Jolley
8d3b4bc5a4
payment_method_title
2016-08-05 15:59:55 +01:00
Mike Jolley
4d87665d95
get_customer_note
2016-08-05 15:59:32 +01:00
Mike Jolley
1c18c2f44a
billing_first_name
2016-08-05 15:58:44 +01:00
Mike Jolley
84c52370fa
more getters
2016-08-05 15:57:40 +01:00
Mike Jolley
39b4831e95
get_id
2016-08-05 15:56:23 +01:00
Mike Jolley
9181c107a8
get_currency
2016-08-05 15:49:17 +01:00
Mike Jolley
1c592b3872
Merge pull request #11208 from woothemes/orders-crud-classes
...
Orders crud classes
2016-08-05 15:44:15 +01:00
Mike Jolley
0b04ee195c
Over sanitization
2016-08-05 15:43:12 +01:00
Mike Jolley
c346a1b711
Merge pull request #11540 from woothemes/tax-rate-auto-ordering
...
Automatic Tax Rate Sorting
2016-08-05 15:06:03 +01:00
Mike Jolley
54256c4123
Round prices being saved to DB
2016-08-05 14:06:51 +01:00
Mike Jolley
ccad4d2df3
Merge pull request #11561 from woothemes/add/product-reviews-create-and-update
...
Add tests, create, update, delete, and batch to the Product Reviews API
2016-08-05 11:16:42 +01:00
Justin Shreve
e3b1f6dbc9
A few fixes to customer CRUD:
...
* Implement some missing legacy functions
* Stop calling legacy functions from some pages
* Prevent extra meta from being deleted, unless requested by the CRUD (was causing problems with user/customer)
* Prevent save when loading from session AND logged out
2016-08-04 13:13:07 -07:00
Justin Shreve
f4353f6aa9
Don't save to the database if we are working with sessions, save to the session when save() is called instead.
2016-08-04 11:39:34 -07:00
Justin Shreve
47c299583d
Merge pull request #11618 from woothemes/update/wp-admin-system-status
...
Update wp-admin's system status page to share backend code with the API
2016-08-04 10:55:19 -07:00
Mike Jolley
a3ae757106
Make set/get_order_id methods private
2016-08-04 17:05:05 +01:00
Mike Jolley
b0963ddb0d
Merge pull request #11176 from woothemes/add/10954-shipping-zones-api
...
Add Shipping Zones API Endpoints.
2016-08-04 15:45:23 +01:00
Mike Jolley
387cd745c2
Add missing textdomains
2016-08-04 14:43:34 +01:00
Mike Jolley
c61c08f405
Merge branch 'master' into tax-rate-auto-ordering
...
# Conflicts:
# assets/css/admin.css
2016-08-04 14:06:52 +01:00
Mike Jolley
644cf79866
Move all query string vars to form in price widget using wc_query_string_form_fields
...
Closes #11593
@claudiosmweb @justinshreve look fine to you?
2016-08-04 13:37:39 +01:00
Mike Jolley
75895f71f9
made comparison strict
...
#11326
2016-08-04 13:09:21 +01:00
Mike Jolley
1bc9da3e91
Merge branch 'master' into WC-CRUD
...
# Conflicts:
# includes/class-wc-coupon.php
2016-08-04 12:10:04 +01:00
Mike Jolley
1b71c1b0e7
Merge pull request #11619 from woothemes/fix/product-bulk-edit-webhook
...
Make sure product update webhook fires on bulk and quick edit.
2016-08-04 11:31:12 +01:00
Mike Jolley
475d8fc5ed
[2.6] More password check to else block
...
Closes #11623
2016-08-04 11:27:41 +01:00
Mike Jolley
c416a6d2d1
Merge pull request #11622 from WPprodigy/fix-responsive-category-images
...
Add responsive image markup for category thumbnails
2016-08-04 11:19:40 +01:00
Mike Jolley
fea9a3bce8
Merge pull request #11615 from woothemes/variable-weight-display-10621
...
Show variable weights/dimensions even when parent values are not set.
2016-08-04 11:12:30 +01:00
Mike Jolley
b0064bddf6
Remove boolval
2016-08-04 11:12:14 +01:00
Caleb Burks
a32f65df60
Formatting fix
2016-08-04 03:28:03 -04:00
Caleb Burks
abc954dc83
Add responsive image markup to category thumbnails
2016-08-04 03:16:58 -04:00
Justin Shreve
cad08747b9
Add bulk edit and quick edit to the list of hooks for the product.updated webhook.
2016-08-03 13:32:02 -07:00
Justin Shreve
8df6ff3c7b
Convert wp-admin's system status page to use the same backend code as the API.
2016-08-03 10:50:47 -07:00
Mike Jolley
5a9dacd595
Show variable weights/dimensions even when parent values are not set.
2016-08-03 16:07:34 +01:00
Maciej Swoboda
24235564d5
ZIP Code formatting for Poland
...
In Poland we use ZIP code formatting: XX-XXX. So the "-" sign should
not be removed.
2016-08-03 16:06:30 +02:00
Mike Jolley
f694f297e8
Use get_id()
2016-08-03 12:57:32 +01:00
Mike Jolley
b8db53c2c1
made set_type private
2016-08-03 12:54:16 +01:00
Mike Jolley
a053d234c9
get_order() method
2016-08-03 12:52:51 +01:00
Mike Jolley
1310ff09b5
Deprecated function replacements
2016-08-03 12:52:45 +01:00
Mike Jolley
837e08143b
Merge branch 'master' into orders-crud-classes
...
# Conflicts:
# includes/abstracts/abstract-wc-order.php
2016-08-03 12:32:27 +01:00
Claudio Sanches
4271617c79
Merge pull request #11594 from woothemes/multisite-login-11409
...
Add user to site on login
2016-08-02 16:00:33 -03:00
Justin Shreve
5d521b0da5
Fix product review endpoint based on PR feedback: Code cleanup, prepare_item_for_database like WP-API's comments does, better error handling on create, required arg simplification, trash support for reviews.
2016-08-02 11:03:44 -07:00
Justin Shreve
7529b0b3e9
Code cleanup
2016-08-02 10:30:43 -07:00
Justin Shreve
a305da25ef
Add batch support to the product reviews endpoint.
2016-08-02 10:30:43 -07:00
Justin Shreve
b8ec255ea8
First pass at a product reviews REST API that supports creating/updating/deleting product reviews.
2016-08-02 10:30:43 -07:00
Mike Jolley
ffb74a7b09
Add user to site on login
...
Closes #11409
2016-08-02 18:28:31 +01:00
Justin Shreve
9396c5436b
Make sure that the create shipping zone uses the correct permissions function. Also makes sure creating the shipping zone returns 201, with the location of the new entity, like other endpoints.
2016-08-02 10:26:26 -07:00
Justin Shreve
e761edd8d9
Make sure to load abstract-wc-rest-shipping-zones-controller.php
2016-08-02 10:10:47 -07:00
Justin Shreve
069ee3b9ac
Add an error check when creating a new shipping zone via the API, incase create() fails.
2016-08-02 10:10:47 -07:00
Justin Shreve
33e0b367ac
Add new line at end of files.
2016-08-02 10:10:47 -07:00
Jeff Stieler
ea4285b1ec
Ensure “rest of the world” zone retrieval doesn’t fail by using the core method instead of the REST controller wrapper.
2016-08-02 10:10:47 -07:00
Jeff Stieler
bb23d2eaae
Ensure _links are added to the single shipping zone method endpoint.
2016-08-02 10:10:47 -07:00
Jeff Stieler
5e7c495e10
Add “rest of the world” zone to API response.
2016-08-02 10:10:47 -07:00
Jeff Stieler
61a5bf8a68
Add single shipping zone method instance endpoint.
2016-08-02 10:10:47 -07:00
Jeff Stieler
288496b22b
Separate shipping zone endpoint permissions check between read and write operations.
2016-08-02 10:10:47 -07:00
Jeff Stieler
7ebb466287
REST API item schemas should be singular objects.
...
Use single object schemas for Shipping Zone Locations and Methods.
2016-08-02 10:10:47 -07:00
Jeff Stieler
f2bb438e98
Add _links to each shipping zone method.
2016-08-02 10:10:47 -07:00
Jeff Stieler
92f0c2bd2c
Add endpoint to retrieve all shipping zone methods.
2016-08-02 10:10:47 -07:00
Jeff Stieler
510229e13d
Add initial controller for Shipping Zone Methods endpoint, with schema definition.
2016-08-02 10:10:47 -07:00
Jeff Stieler
5400f94f86
Shipping zone location “type” field sanitization callback should be for text values.
2016-08-02 10:10:47 -07:00
Jeff Stieler
5d147ae287
Fix @extends annotation in shipping zone controller classes.
2016-08-02 10:10:47 -07:00
Jeff Stieler
6d891e1247
Handle case where no locations are sent in update request.
2016-08-02 10:10:47 -07:00
Jeff Stieler
626819f9b8
Add shipping zone locations update endpoint and handler.
2016-08-02 10:10:47 -07:00
Jeff Stieler
c041e69e86
Correct locations schema, should be an array of location objects.
2016-08-02 10:10:47 -07:00
Jeff Stieler
9946d028f2
Add “described by” link to shipping zones endpoint response.
2016-08-02 10:10:47 -07:00
Jeff Stieler
96c18abb8d
Add shipping zone locations retrieval endpoint.
2016-08-02 10:10:47 -07:00
Jeff Stieler
56ef442624
Move common methods to an abstract base shipping zones controller class.
2016-08-02 10:10:47 -07:00
Jeff Stieler
7a142af215
Initial Shipping Zone Locations endpoint controller, with schema.
2016-08-02 10:10:47 -07:00
Jeff Stieler
5718e66b2c
Add create shipping zone endpoint and handler.
2016-08-02 10:10:47 -07:00
Jeff Stieler
29e150612f
Add update shipping zone endpoint and handler.
2016-08-02 10:10:47 -07:00
Jeff Stieler
1480741998
Cast returned zone ID and order as integers.
2016-08-02 10:10:47 -07:00
Jeff Stieler
69a40b0648
Refactor Shipping Zone retrieval into a reusable method.
2016-08-02 10:10:47 -07:00
Jeff Stieler
039f5d2300
Add route and handler for retrieving single Shipping Zones.
2016-08-02 10:10:47 -07:00
Jeff Stieler
fd042b88cf
Implement get_items() for Shipping Zones endpoint.
2016-08-02 10:10:47 -07:00
Jeff Stieler
0de6f42b51
Create GET route for shipping zones, handling case where shipping calculations are disabled.
2016-08-02 10:10:47 -07:00
Jeff Stieler
267e5cba9a
Add initial Shipping Zones REST API controller, with zone schema definition method.
2016-08-02 10:10:47 -07:00
Justin Shreve
72f01d9c0a
Merge pull request #11548 from woothemes/system-status-api
...
Add system status info REST API endpoint
2016-08-02 10:08:45 -07:00
Mike Jolley
b61d9cd5f1
Add index to search form IDs
...
Fixes #11557
2016-08-02 17:43:23 +01:00
Mike Jolley
6e1a640b1c
Prevent dirty sessions by removing data objects from the package hash
...
Closes #11269
2016-08-02 17:10:26 +01:00
Mike Jolley
d756b9c7ba
Merge branch 'pr/11337'
...
# Conflicts:
# assets/css/admin.css
2016-08-02 14:44:00 +01:00
Mike Jolley
922ba0337f
Fix removal and tweak buttons
2016-08-02 14:42:27 +01:00
Mike Jolley
4de8af8a83
Merge pull request #11367 from andyexeter/master
...
Add NOT IN operator to WC_Admin_Report::get_order_report_data()
2016-08-02 14:22:50 +01:00
Mike Jolley
e271825ffb
Merge branch 'master' into tax-rate-auto-ordering
...
# Conflicts:
# assets/css/admin.css
2016-08-02 14:17:23 +01:00
Mike Jolley
3c1f5e5e46
Tweak geoip instruction
...
Closes #11587
2016-08-02 14:06:48 +01:00
Mike Jolley
21fb2d5eb7
Merge pull request #11584 from saucal/fix-emails-not-encoded
...
Fixed emails not properly encoded in download URLs
2016-08-02 14:01:47 +01:00
opportus
43af0aae86
fixes #11588 - revision1
2016-08-02 05:27:30 +02:00
opportus
1caa1e09f4
fixes #11588
2016-08-02 02:20:50 +02:00
Matias Saggiorato
e97acc82b5
Fixed emails not properly encoded in download URLs
2016-08-01 15:22:39 -03:00
Mike Jolley
2ef55327b8
Don't allow variations to exist with invalid parents
...
Closes #11567
2016-08-01 16:24:31 +01:00
Mike Jolley
22133a92db
Avoid redirect if cart/checkout are the same
2016-08-01 16:19:41 +01:00
Mike Jolley
3f8af04a4e
This should be disallowed
...
Closes #11570
2016-08-01 15:50:04 +01:00
Mike Jolley
569f2f55c4
Revert "Rewrite rule workarounds"
...
This reverts commit 49e3275ad3
.
2016-08-01 15:48:24 +01:00
Mike Jolley
49e3275ad3
Rewrite rule workarounds
2016-08-01 14:42:14 +01:00
Mike Jolley
806f70416d
Don't run IPN code if processing or completed.
...
Closes #11566
2016-08-01 12:02:49 +01:00
Mike Jolley
ecf9f500d8
Merge pull request #11541 from woothemes/form-fields-11326
...
Query string -> form field helper function
2016-08-01 11:55:58 +01:00
Mike Jolley
a2c7f2bf83
feedback
2016-08-01 11:55:45 +01:00
Mike Jolley
163da08a47
Merge branch 'master' into paypal-auto-capture-10563
2016-08-01 11:52:05 +01:00
Mike Jolley
a5ed0e43fd
Adjustments from feedback
2016-08-01 11:51:27 +01:00
Mike Jolley
1f664e7c5e
Check for class not version
2016-08-01 11:42:03 +01:00
Mike Jolley
bc65d87fce
[2.6] Fixes add to cart message for IDs and allows the message to be returned
...
Fixes #11563
2016-08-01 11:41:52 +01:00
Mike Jolley
423a18f5c1
[2.6] When checking needs_shipping, ignore anything after : in the method ID
...
Fixes #11552
2016-08-01 10:31:05 +01:00
Mike Jolley
45d6b88ac6
woocommerce_after_/before prefixes
2016-08-01 10:27:15 +01:00
Moritz Meißelbach
97b0161c4c
Add hooks to edit form
2016-08-01 09:13:21 +02:00
Moritz Meißelbach
68abee516e
Rename hooks as suggested
2016-08-01 09:04:11 +02:00
Moritz Meißelbach
a98377a15c
Merge remote-tracking branch 'upstream/master'
2016-08-01 09:02:31 +02:00
opportus
bbfce08bb5
improved structured data - patch10
2016-07-30 13:59:38 +02:00
Claudio Sanches
35c499aa81
Fixed product archive on front #11500
2016-07-29 18:46:39 -03:00
opportus
b899a8991d
seo tweaks
2016-07-29 20:42:33 +02:00
Moritz Meißelbach
6591ff1866
Provide 2 hooks for adding fields to the attribute creation form
2016-07-29 16:31:16 +02:00
Nicola Mustone
9759d38265
coding standards and escaping
2016-07-29 11:51:58 +02:00
Mike Jolley
4a23c41ab2
Hook in woocommerce_widget_shopping_cart_buttons for greater flexibility
2016-07-28 15:06:55 +01:00
Justin Shreve
5d95b76e1a
Rename the endpoint from system-status to system_status (matches the rest of WC endpoints).
2016-07-27 14:06:14 -07:00
Justin Shreve
e436e96654
Add missing textdomains, remove wc_ prefix from a few fields, spacing/coding standard fixes.
2016-07-27 13:59:16 -07:00
Claudio Sanches
a5ba8a05ed
Fixed checkboxes in the admin settings
...
This allow set yes/no or null/1 for checkboxes
cc @mikejolley @jeffstieler
2016-07-27 17:52:11 -03:00
Justin Shreve
041b5745b4
Finish system status tests
2016-07-27 12:19:14 -07:00
Claudio Sanches
63a570f161
[2.6] Display proper screen render text for custom range reports, closes #11543
2016-07-27 16:16:54 -03:00
Claudio Sanches
8c5678f967
[2.6] Fixed shipping classes URLs, closes #11542
...
cc @mikejolley
2016-07-27 15:52:02 -03:00
Justin Shreve
e255602d91
System status controller
2016-07-27 10:29:10 -07:00
Lee Willis
15c6389326
Delete method options when deleting method
2016-07-27 18:14:50 +01:00
Mike Jolley
d45be39758
Capture and refund support
2016-07-27 16:55:42 +01:00
Claudio Sanches
4d80528559
Merge pull request #11533 from enricodeleo/master
...
Remove items from a pending order via rest api
2016-07-27 12:42:12 -03:00
Claudio Sanches
e0bfe9f9fa
Merge pull request #11168 from zakalwe2016/master
...
Add Filters For Product Lists in Widgets
2016-07-27 12:15:20 -03:00
Mike Jolley
a5d036d91c
New function to generate query strings
2016-07-27 14:10:31 +01:00
Mike Jolley
a816e8a92d
APIClass and hook basics
2016-07-27 13:48:10 +01:00
Mike Jolley
d2adabaf89
Redirect to login after password reset.
...
Closes #11376
2016-07-27 12:47:41 +01:00
opportus
0c5b11802b
improved structured data - patch9 - merge conflict fix
2016-07-27 13:28:20 +02:00
Mike Jolley
66c61eebc8
Define full path for includes
...
Closes #11087
2016-07-27 11:58:43 +01:00
Mike Jolley
31fdfcdec4
Remove prefix from tags and cats
...
Closes #11297
2016-07-27 11:47:30 +01:00
Mike Jolley
a259256550
Ordering in place
2016-07-27 11:30:12 +01:00
Mike Jolley
7328bd4a18
sort_rates placeholder function
2016-07-27 10:37:55 +01:00
Mike Jolley
0d6a3af108
Remove sorting function
2016-07-27 10:22:02 +01:00
Mike Jolley
052f4d9cc3
Update education text
...
Closes #11519
2016-07-27 10:13:06 +01:00
Enrico Deleo
6ef223057a
Merge branch 'master' of github.com:woothemes/woocommerce
2016-07-27 11:07:17 +02:00
Justin Shreve
1d4615aee3
Fix setting class case. REST should be uppercase.
2016-07-26 14:33:55 -07:00
Justin Shreve
55b37b3338
Rename helper class from 'legacy' to be more descriptive of whats happening. Registering wp-admin settings to the REST API.
2016-07-26 11:27:48 -07:00
Justin Shreve
838c27438e
Merge branch 'settings-api' of https://github.com/woothemes/woocommerce into settings-api
2016-07-26 11:11:09 -07:00
Justin Shreve
02915e6056
Rename helper class from 'legacy' to be more descriptive of whats happening. Registering wp-admin settings to the REST API.
2016-07-26 11:08:29 -07:00
Justin Shreve
226fdb870b
Misc cleanup of descriptions and some error strings.
2016-07-26 10:24:15 -07:00
Jeff Stieler
1a95055303
Call register_legacy_settings() directly instead of adding another hook.
2016-07-26 10:24:15 -07:00
Jeff Stieler
5c1b3a8d62
Remove now defunct WP API vendor file.
2016-07-26 10:24:15 -07:00
Jeff Stieler
383b5b2944
Move legacy setting API registration hooks into main WC_API class.
2016-07-26 10:24:15 -07:00
Jeff Stieler
d77373227a
Remove now defunct WC_REST_Settings_API_Controller class.
2016-07-26 10:24:15 -07:00
Jeff Stieler
af1e3d0417
Remove WC_REST_Settings_Options_Controller dependency on WC_REST_Settings_API_Controller.
2016-07-26 10:24:15 -07:00
Jeff Stieler
8ff799562b
Remove WC_REST_Settings_Controller dependency on WC_REST_Settings_API_Controller.
2016-07-26 10:24:15 -07:00
Jeff Stieler
2fcb15d9cf
Rename WC_Rest_Settings_Groups_Controller to WC_Rest_Settings_Controller.
2016-07-26 10:24:15 -07:00
Jeff Stieler
f168f356bc
Rename WC_Rest_Settings_Controller to WC_Rest_Settings_Options_Controller.
2016-07-26 10:24:15 -07:00
Jeff Stieler
e14d77a987
When saving settings, only allow values found in “options” for “select” type fields.
2016-07-26 10:24:15 -07:00
Jeff Stieler
b4eaa12f7a
Break “legacy” setting to “new” conversion into it’s own method.
2016-07-26 10:24:15 -07:00
Jeff Stieler
cca2a0ff5e
Reuse WC Admin Setting’s save_fields() instead of duplicating code for sanitizing saved values.
2016-07-26 10:24:15 -07:00
Jeff Stieler
f3e21123d1
Use WC Admin Settings’s get_option() in REST Settings controller instead of duplicating code.
2016-07-26 10:24:15 -07:00
Jeff Stieler
3de28d2356
Take in options data to be saved as an optional argument, defaulting to $_POST.
...
This allows for reuse of the options field saving mechanism.
2016-07-26 10:24:15 -07:00
Jeff Stieler
4f98586979
Add _links to returned settings groups.
2016-07-26 10:24:15 -07:00
Jeff Stieler
bbc5aec1d1
Don’t register legacy settings without IDs.
2016-07-26 10:24:15 -07:00
Jeff Stieler
9d9d318727
Handle select options in setting sanitization function.
2016-07-26 10:24:15 -07:00
Jeff Stieler
24014a5d04
Move bulk settings updating to the Settings controller, following existing batch endpoint patterns.
2016-07-26 10:24:15 -07:00
Jeff Stieler
7c119ac268
Add _links to /settings/<group> and /settings/<group>/<setting> responses.
2016-07-26 10:24:15 -07:00
Jeff Stieler
b2c628f0d8
Move settings group endpoint to Settings controller and only return settings-schema’d items.
2016-07-26 10:24:15 -07:00
Jeff Stieler
519be1c519
Add Settings controller getter method for all group settings.
2016-07-26 10:24:15 -07:00
Jeff Stieler
b69c9814af
Match parent signature of prepare_item_for_response(), add getter method for settings.
2016-07-26 10:24:15 -07:00
Claudio Sanches
7b78a6d9a7
Small tweaks to make it follow the REST API standards
2016-07-26 10:24:15 -07:00
Justin Shreve
56b769614d
edit_item should be update_item
2016-07-26 10:24:15 -07:00
Justin Shreve
3c35721bea
Rename update_ functions to edit_item, and get_groups/get_settings to get_item and get_items per feedback. Also move the namespace into each class.
2016-07-26 10:24:15 -07:00
Justin Shreve
fa27f277a1
Split settings and groups controllers into two separate files.
2016-07-26 10:24:15 -07:00
Justin Shreve
97e7c293d5
Rename classic settings file to legacy settings
2016-07-26 10:24:15 -07:00
Justin Shreve
3f90fecd6e
Rename classic -> legacy
2016-07-26 10:24:15 -07:00
Justin Shreve
bf1ffbeff8
Fix how classic groups/settings are registered so that they are always avaiable when calling filters.
2016-07-26 10:24:15 -07:00
Justin Shreve
3de423b5c2
Wrap up settings api
2016-07-26 10:24:15 -07:00
Justin Shreve
5de870bb08
Wrap up settings endpoints for updating, finish tests.
2016-07-26 10:24:15 -07:00
Justin Shreve
46028e0151
Refactor down to two concepts - settings groups and settings. Fix up tests, and start working on returning actual settings and their values.
2016-07-26 10:24:15 -07:00
Justin Shreve
8fee6bd3b9
Add a test for settings groups, make sure any bad keys/values are filtered out, update docs.
2016-07-26 10:24:15 -07:00
Justin Shreve
b8a45f031c
Add group info to the single locations endpoint & update our docs
2016-07-26 10:24:15 -07:00
Justin Shreve
12aa11d5be
Misc cleanup.
2016-07-26 10:24:15 -07:00
Justin Shreve
19d3bc4737
Add a permissions check to the locations endpoints and fill out the tests for them.
2016-07-26 10:24:15 -07:00
Justin Shreve
21b66f94ff
More setting location tests.
2016-07-26 10:24:15 -07:00
Justin Shreve
5ee4b5d4dd
Add the ability to get data on a single location.
2016-07-26 10:24:15 -07:00
Justin Shreve
11a3c89a2f
Make /settings/locations work properly. Add skeleton for tests and add register_routes test.
2016-07-26 10:24:15 -07:00
Justin Shreve
a9bb988873
Initial /settings API controller and /settings/locations route. Loads the WP-API and registers our namespace temporarily until WP-API is loaded by WC core.
2016-07-26 10:24:15 -07:00
Mike Jolley
374b1ff877
missing _media
2016-07-26 17:03:16 +01:00
Mike Jolley
f84d2e5954
5.2 changes
2016-07-26 16:50:23 +01:00
Mike Jolley
05539282fb
5.2 compat
2016-07-26 16:34:17 +01:00
Mike Jolley
b56abded63
Another emogrifier.php array
2016-07-26 15:52:14 +01:00
Enrico Deleo
8d3280f7b9
merging from official repo
2016-07-26 16:35:19 +02:00
Mike Jolley
4775cec578
Merge pull request #11534 from woothemes/localization-tweaks
...
Localization tweaks
2016-07-26 15:29:02 +01:00
Mike Jolley
15394af0af
[2.6] Merge pull request #11532 from woothemes/SiR-DanieL-patch-1
...
Typo
2016-07-26 15:27:34 +01:00
Enrico Deleo
b09b12f3af
converting shortsyntax array to legacy array() for PHP < 5.4
2016-07-26 16:27:21 +02:00
Mike Jolley
b5fa1e5756
More arrays
2016-07-26 15:19:11 +01:00
Nicola Mustone
0aed3bd8b8
missing )
2016-07-26 16:13:09 +02:00
Nicola Mustone
5613985882
Capitalise all the things
2016-07-26 15:47:04 +02:00
Nicola Mustone
e799b1e234
reduce number of strings
2016-07-26 15:46:50 +02:00
Enrico Deleo
2dede356d3
remove a line item if quantity is zero
2016-07-26 15:15:09 +02:00
Nicola Mustone
5fb8a05a19
typo 2
2016-07-26 14:50:31 +02:00
Nicola Mustone
624f3c2eb1
typo
2016-07-26 14:49:11 +02:00