Commit Graph

13280 Commits

Author SHA1 Message Date
Mike Jolley 6728f5c1fe singular_name context
Closes #8988
2015-09-01 12:42:45 +01:00
Florian Ludwig 4e0961333f Restored wc<2.4 behavior of order item meta keys
The previous version of woocommerce showed the machine readable names
in item_meta['key’] especially for the custom variation attributes but
after 2.4 it shows only meta ids in the key.

This commit reverts the behavior to the prior 2.4 behavior.
2015-08-31 17:59:41 +02:00
Mike Jolley 07237d9a09 Set charset when doing html_entity_decode
@claudiosmweb  Closes #8964
2015-08-31 12:29:36 +01:00
Mike Jolley 591725874a Merge pull request #8998 from toddlahman/master
Fix for Invalid argument supplied for foreach
2015-08-31 12:22:39 +01:00
toddlahman b631cc719c Fix for Invalid argument supplied for foreach 2015-08-30 21:18:21 -07:00
Jack Gregory f8cc75fe4f add woocommerce_dropdown_variation_args filter 2015-08-29 16:30:36 +01:00
Mike Jolley 7643712a52 Sync after save 2015-08-29 13:45:58 +01:00
Claudio Sanches 5520150133 Merge pull request #8984 from krautnerds/fix-wc-stock-amount-formatting-variation-admin
Use wc_stock_amount for ajax response in variation admin
2015-08-28 18:32:20 -03:00
Florian Ludwig b50a75ce23 Use wc_stock_amount for ajax response in variation admin
My previous pull request of old WC 2.3 didn’t get applied in the new
2.4 AJAX method for the variation admin. So let’s do it again ;) (old
pull request see #8304)
2015-08-28 18:17:54 +02:00
Didier Pérez 8bbb0f2878 Hide "Our Bank Details" heading when no bacs registered
The heading "Our Bank Details" is shown in emails even if there are not bacs registered. This fix prevent that.
2015-08-27 13:33:32 -05:00
Claudio Sanches 58df3604f8 Merge pull request #8962 from woothemes/simplify-ireland-support
Adds a filter on the supported countries for Simplify Commerce.
2015-08-26 11:32:41 -03:00
Matty 19c052428d Adds a space after (array) to comply with WordPress coding standards. #8960. 2015-08-26 15:16:42 +02:00
Mike Jolley 4849d7d56e Sync stock status during save
Closes #8950
2015-08-26 13:51:51 +01:00
Matty 7c679edf63 Adds a filter on the supported countries for Simplify Commerce, to add country support without the need to update WooCommerce itself. #8960. 2015-08-26 14:35:55 +02:00
Mike Jolley 9554fa1614 Merge pull request #8961 from woothemes/simplify-ireland-support
Adds support for Simplify Commerce in Ireland.
2015-08-26 13:30:48 +01:00
Matty 49b33ae89d Adjusts Simplify Commerce country support to reflect support for Ireland. Closes #8960. 2015-08-26 14:24:24 +02:00
Mike Jolley fdb25fa0c3 Pass through tax_display
Fixes #8951
2015-08-26 13:05:52 +01:00
Mike Jolley 1f3e8b984e use empty to check to see if attributes for variations exist
Closes #8959
2015-08-26 12:56:44 +01:00
Mike Jolley fa9c5480a9 Tidy variation styles
Fixes #8946
2015-08-26 12:53:48 +01:00
Mike Jolley 440a9b9710 Readme 2015-08-26 12:28:04 +01:00
Mike Jolley 28da8a40d8 Tweak wc_var_prices naming to allow them to be flushed on save 2015-08-26 12:28:04 +01:00
Mike Jolley ea3bebe301 Merge pull request #8957 from ibndawood/patch-1
Update class-wc-shortcodes.php
2015-08-26 12:26:19 +01:00
Ibrahim 6b60616ed3 Update class-wc-shortcodes.php
`ob_start` is used which is not required.
2015-08-26 12:08:17 +05:30
Mike Jolley c9901cec43 Merge pull request #8943 from woothemes/WPprodigy-patch-1
Support Link Updated
2015-08-25 11:34:31 +01:00
Mike Jolley 5fbdb06710 show_counts -> show_count 2015-08-25 10:48:36 +01:00
Caleb Burks 36f97365c7 Support Link Updated 2015-08-25 01:05:32 -05:00
George Stephanis f71af3b1de Account for the fact that when fetching all meta, maybe_unserialize() hasn't run yet.
@see
https://github.com/WordPress/WordPress/blob/a7b38bf90a8b4e070ae98faa076e
41403c59f951/wp-includes/meta.php#L499-L508
2015-08-24 16:08:04 -04:00
George Stephanis 6ef4cf0d18 Optimization. Don't call `get_post_meta` 17+ odd times.
As @pmgarman remarked here:
https://pmgarman.me/blog/woocommerce-and-coupon-_used_by-logging/ — for
very large values of postmeta, when using memcached that cannot handle
data stores of over 1M, the store seems to fail at pulling it back in,
resulting in large query results on each call.

At the least, this change should avoid those cache misses and
re-queries, although I do feel that not being able to keep the cached
in php’s memory and losing it in the cache is indeed a failing here of
the object cache plugin.

Still, this should have some optimizations, as we’re caching the data
right here, closer to usage.
2015-08-24 15:06:19 -04:00
George Stephanis a17addae0a Migrate the actual querying of the underlying data structure.
Move it into the relative class for tidiness, and have it be called via
an access function.
2015-08-24 14:30:13 -04:00
George Stephanis 4692afacdd Add a conditional to match `inc_usage_count()`
Otherwise, for empty $used_by values, it will fire off a needless db
query.
2015-08-24 14:20:30 -04:00
George Stephanis 40dfb59bde Clarify a comment as to why we're not using a core method. 2015-08-24 14:19:08 -04:00
George Stephanis fd3ceb3e04 Allow a user to be specified for validating the limit of. 2015-08-24 13:08:44 -04:00
George Stephanis e6b7d5c49a Simplify the data we're working with.
This provides slightly safer bounds for large data sets.
2015-08-24 13:08:23 -04:00
Claudio Sanches 24adcfa899 POT 2015-08-24 13:27:02 -03:00
Claudio Sanches 703a2dcace Minify 2015-08-24 13:25:44 -03:00
Nicola Mustone 6f7b534493 missing comma 2015-08-24 17:27:23 +02:00
Nicola Mustone 657728d778 _x for the order details admin page 2015-08-24 17:15:19 +02:00
Mike Jolley 5e984faebc Allow HTML in store notice. 2015-08-24 16:15:16 +01:00
Nicola Mustone beb97b279e _x for refund reports 2015-08-24 17:13:04 +02:00
Mike Jolley 869bf08031 Prevent remove button overlap 2015-08-24 16:05:09 +01:00
Mike Jolley a07824e8a7 Ensure product exists in add cart handler
Closes #8937
2015-08-24 15:28:57 +01:00
Mike Jolley f03be47e86 Handle non standard decimals in flat rate costs. 2015-08-24 15:26:08 +01:00
Mike Jolley 14b0c20bf2 Ensure variable stock status is based only on variations 2015-08-24 15:03:44 +01:00
Mike Jolley 3c7290a765 During updates, only recreate .htaccess if not using redirect download method.
Fixes #8923
2015-08-24 13:50:14 +01:00
Mike Jolley ae21b511f0 Support 0 value attributes 2015-08-24 13:32:20 +01:00
Mike Jolley d9e8787198 WC Setup wizard: Fix manual setting of decimal/thousand separator.
Closes #8930
2015-08-24 12:54:09 +01:00
Mike Jolley b681b189e7 readme 2015-08-23 21:47:34 +01:00
Mike Jolley ae207466d4 Ajax variation < 2.4 attribute name handling. 2015-08-23 21:47:04 +01:00
Mike Jolley 0cf74b5dba Set ajax endpoint headers like admin_ajax
@claudiosmweb does this make sense to you?
2015-08-23 21:17:03 +01:00
Shiva Poudel 9cf86e8494 Cleanup docblocks 2015-08-22 02:57:03 +05:45