Commit Graph

54 Commits

Author SHA1 Message Date
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 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
Claudio Sanches f85bb56cb1 Less code on the fly inside ld+json 2016-11-03 15:00:57 -02: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
Claudio Sanches c58940258a Updated $order->id to $order->get_id() 2016-10-25 22:46:36 -02: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 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 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
opportus af26ab6f3d improved structured data - valids TCI checks 2016-09-21 16:37:54 +02:00
opportus eaa7def18a improved structured data - some little tweaks 2016-09-14 22:08:57 +02:00
opportus db8cb4cf15 improved structured data - fixes missused `@uses` docblock tags 2016-08-28 09:24:17 +02: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
opportus fff204490c improved structured data - limits product structured data on archives and shop page 2016-08-26 16:57:49 +02:00
opportus 713adf2439 improved structured data - disable variable offers for looped products 2016-08-23 15:44:46 +02: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
opportus 7c9374f7f9 improved structured data - makes generators usable outside of template loop 2016-08-18 13:24:17 +02: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 88929a9d35 improved structured data - add `methhod_exists()` statement into
`generate_output_structured_data()` method
2016-08-17 21:14:59 +02:00
opportus 6f3974d0e2 improved structured data - fixes fatal error with grouped products, thanks @leewillis77 2016-08-15 22:05:06 +02:00
opportus 6c1990c3cf improved structured data - some final little tweaks 2016-08-15 14:10:14 +02: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
opportus ec3cce27ad improved structured data - class refactor - fixed bugs 2016-08-12 15:19:26 +02: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
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
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
opportus a918db0983 improved structured data - @leewillis77 feature - revision1 2016-08-06 19:20:51 +02:00
opportus 4d5e641f11 improved structured data - @leewillis77 feature 2016-08-06 00:32:32 +02:00
opportus bbfce08bb5 improved structured data - patch10 2016-07-30 13:59:38 +02:00
opportus 7f12356d6b improved structured data - patch9 2016-07-25 00:38:59 +02:00
opportus 11ff1d535a improved structured data - patch8 2016-07-24 23:46:30 +02:00
opportus 2a5439bb7c improved structured data - patch7 2016-07-24 18:53:20 +02:00
opportus 5fa01c749b improved structured data - patch6 2016-07-24 09:31:12 +02:00