Commit Graph

48 Commits

Author SHA1 Message Date
Barry Kooij 94365791af Changed all use of get_product to wc_get_product 2014-08-19 12:09:29 +02:00
Barry Kooij 7cd2e8c10a Renamed get_product to wc_get_product 2014-08-19 12:05:02 +02:00
thenbrent 2d47d6b43b Improve display of multiword product attributes
Instead of displaying a variation's custom product attributes like this:

`name-with-dashes: attribute-with-dashes`

Display it like this:

`Name With Dashes: Attribute With Dashes`
2014-07-30 12:41:14 -07:00
Mike Jolley 3974c1028a Remove wp_cache_flush() Closes #5777
Carrying on from previous commits, the need for a wildcard delete for
products is unnecessary. This removes the $wpdb query and
wp_cache_flush()
2014-07-03 12:59:57 +01:00
Mike Jolley d1dbe4492e Clear comment transients only on wp_update_comment_count
Does not need to be flushed when editing a product. Part of #5777
2014-07-03 12:59:57 +01:00
claudiosmweb d3dc018ffc fixed the wc_product_has_unique_sku() function name 2014-06-27 16:03:25 -03:00
claudiosmweb 0a4b6387e6 introduces the wp_product_has_unique_sku() function 2014-06-27 15:59:24 -03:00
Mike Jolley c2475c2073 Merge pull request #5745 from claudiosmweb/4164-feature-products-api
Products API - PUT/POST/DELETE
2014-06-27 13:14:20 +01:00
Mike Jolley 50a4c5bd23 Merge branch 'variation-stock-management'
Conflicts:
	includes/class-wc-product-variation.php
2014-06-27 11:15:42 +01:00
Nicola Mustone 46df7ba249 Added $size and $dimensions parameters
Added $size and $dimensions parameters to palceholder image filter to have a better custom management of the placeholder image.
2014-06-25 11:46:50 +02:00
claudiosmweb 276ebd25e3 created the wc_get_product_types() function 2014-06-24 13:59:56 -03:00
Mike Jolley 0315e48187 Only call the method to update stock when it changes 2014-06-24 13:01:47 +01:00
Mike Jolley c66f2b8232 Split out several transient clearing functions to be called only when needed. 2014-06-19 12:25:10 +01:00
claudiosmweb 61c94f9e25 fixed some hard code strings 2014-06-11 17:12:23 -03:00
Coen Jacobs 3ad8935b20 Removed ununsed global variables in local scopes 2014-06-08 22:33:11 +02:00
Chris Broadbent ff0025a1f4 Fixes performance degredation on large wp_options tables 2014-05-24 14:04:49 +10:00
Mike Jolley 9665239ba7 param comment Fixes #5408 2014-05-06 16:06:32 +01:00
Gregory Karpinsky 424954743e Docblock fix: wc_product_post_type_link 2014-04-19 09:44:55 -04:00
Mike Jolley a569c9fd7d Clear featured transients when needed Closes #5254 2014-04-04 14:16:18 +01:00
Mike Jolley 8007e4c102 Fix encoding issue with attribute values and move variation data to tooltip Closes #5169 2014-03-20 15:47:52 +00:00
Mike Jolley 66b44c5cfe Related to #5041, there is not a way to retrieve these dynamic transient names and use delete_transient, so if using object caching we must flush 2014-03-20 11:20:54 +00:00
Mike Jolley b366523c2c Remove break #5041 2014-03-18 11:10:50 +00:00
Mike Jolley 251b8b411f Clear object cache for orders + products #5041 2014-03-18 11:09:56 +00:00
Coen Jacobs 3617316357 Updated expiry times for transients 2014-03-12 12:58:41 +01:00
Coen Jacobs 03163c54b0 set_transient calls should have expiration to prevent autoloading 2014-03-07 09:29:01 +01:00
splashingpixels 5cfa0306f4 wc_get_product_ids_on_sale should never return post id of 0 fixes #5002 2014-02-28 20:37:58 -08:00
Mike Jolley 37573a93e2 wc_get_product_ids_on_sale should return array of integers, not strings Closes #4825 2014-02-17 12:20:10 +00:00
Mike Jolley 65ca1753ae woocommerce_products_will_display improvements #4644
- Reduced number of conditionals required.
- Broken the massive category query into a loop which can break before
checking all cats
- Used a transient to further optimise the category check
2014-02-06 09:21:47 +00:00
Mike Jolley 67af66b96c Add classes for placeholder Closes #4432 2013-12-30 14:22:13 +00:00
Coen Jacobs 61a783886d Suggested code changes in #4266 2013-12-03 15:03:25 +01:00
Gregory K f937c36250 Inconsistent return types: TODOs 2013-12-03 14:53:49 +01:00
Mike Jolley 3408965b8a Product functions 2013-11-25 14:01:38 +00:00
Mike Jolley 3973beae5d woocommerce_ functions to wc_ - replaced attribute functions 2013-11-25 14:01:37 +00:00
Scott Basgaard 922fa990a5 esc_attr() all the things. 2013-11-20 20:11:59 +01:00
Mike Jolley 98d247eb76 Rather than storing prices themselves, store the ID's of variations during price sync - output prices using variation tax class Closes #4032 2013-11-08 15:53:57 +00:00
Mike Jolley 47df526518 Prepend main WC Session cookie with 'wp' so batcache doesn't cache pages, and set cookie only when cart has contents. #3513 2013-10-17 15:29:53 +01:00
Scott Basgaard af76647116 [sale_products] has incorrect post_type. Fixes #3934
In 2.1, woocommerce_get_product_ids_on_sale() used 'product1' instead of 'product' for post_type.
2013-10-17 12:48:49 +02:00
Mike Jolley 088f565b98 wp_list_pluck #3852 2013-10-01 10:24:29 +01:00
Manos Psychogyiopoulos 2b8da0ecbe Add woocommerce_delete_product_transients action 2013-09-27 12:00:42 +03:00
Mike Jolley 355dd16962 Removed @coenjacobs helpers and cleaned up main clas 2013-09-12 14:41:02 +01:00
Remi Corson 3499e6fd73 Added woocommerce_get_featured_product_ids() to retrieve featured products IDs within an array 2013-09-04 11:17:13 +02:00
Mike Jolley 3d078397b3 Merge branch 'Re-organise-settings'
Moves settings together. Fixes #3497
2013-08-22 11:58:03 +01:00
Mike Jolley 7dee6790eb Check sale price against active price, optimise woocommerce_get_product_ids_on_sale
Fixes #3563
2013-08-20 12:52:17 +01:00
Mike Jolley f0853d5208 Pass text attributes when ordering again Fixes #3422 2013-08-20 12:17:56 +01:00
Mike Jolley 16ed6e4faf Make sort orders affect other get_terms calls Closes #3439. 2013-08-19 14:31:52 +01:00
Mike Jolley d021980c10 Rather than have hooks *everywhere* use a single set stock function in admin and on the frontend Closes #3593 2013-08-13 16:56:09 +01:00
Mike Jolley b12d5a7377 Optimise sale query. Closes #3264. 2013-08-13 13:14:32 +01:00
Mike Jolley 57157db9bf Function refactoring. 2013-08-09 17:11:21 +01:00