Commit Graph

9218 Commits

Author SHA1 Message Date
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 `&rarr;` TO `&larr;`

* i18n: move the `&rarr;` into the translation string to allow RTL languages to translate to `&larr;`

* RTL: product filter indent using `&rarr;` and `&larr;` chars

* a11y: remove `&larr;` char, it's a bad accessibility practice to use visual indicators to point to menus

* a11y: remove `&larr;` 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