Commit Graph

8791 Commits

Author SHA1 Message Date
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 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
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
Claudio Sanches 49a574e704 Move all JavaScript from system status page to a new file (#12283) 2016-11-09 11:36:14 +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 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
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
Mike Jolley 5605d2cc48 Correct the docblock
Closes #12217
2016-11-02 19:15:06 +00:00