Commit Graph

6545 Commits

Author SHA1 Message Date
Mike Jolley 0dba78acc0 Remove use of global 2016-02-10 10:19:32 +00:00
Mike Jolley 50407eb478 Run layered nav logic always 2016-02-10 10:08:44 +00:00
Mike Jolley 6bdd12d960 Rating counts 2016-02-10 10:02:50 +00:00
Mehul 9302f3ac6d template_html & template_plain variables duplicate code in both if and else conditions when there is no change in template files for partial refund or full refund 2016-02-10 15:32:34 +05:30
Mike Jolley 5f98720206 Combine count 2016-02-10 00:07:07 +00:00
Mike Jolley 2642454fee > is faster 2016-02-10 00:04:01 +00:00
Mike Jolley 8b922cc710 Cast is faster 2016-02-10 00:01:55 +00:00
Mike Jolley 8fd336cb0e Prime cache to reduce queries per cart item 2016-02-09 23:36:15 +00:00
Mike Jolley 114cbdd450 Autoload tweaks 2016-02-09 23:26:22 +00:00
Mike Jolley 854bc5d744 Don't auto load options for cart - reduce queries 2016-02-09 23:14:38 +00:00
Mike Jolley c9cae8b214 No need to include children 2016-02-09 23:11:50 +00:00
Mike Jolley 236c063cc2 Tidy 2016-02-09 23:11:38 +00:00
Mike Jolley d23c316326 Refactor queries to use WP_QUERY only 2016-02-09 21:14:55 +00:00
Mike Jolley 1d5349bc83 Keep rating meta synced for filtering 2016-02-09 20:53:18 +00:00
Mike Jolley 5b0abaaa1b Sync min and max price for better filtering! 2016-02-09 20:16:08 +00:00
jamez 5256cf47dc Canada Postal code validation
Added Postal Code validation for Canada (country-code=CA).  Also added
to the validation unit test for valid and invalid postal code examples.
2016-02-09 12:39:09 -05:00
Mike Jolley 75cbb74520 Rating widget standards 2016-02-09 15:18:27 +00:00
Mike Jolley e20565c498 Fix merge conflicts 2016-02-09 14:46:06 +00:00
Mike Jolley cae1fe6b85 Refactors/improvements to layered nav to support slugs
#7806
2016-02-09 14:41:17 +00:00
Mike Jolley 1ca9d8fbdc Merge pull request #9665 from seriusokhatsky/master
Slugs instead of IDs for layered nav by terms
2016-02-09 12:16:05 +00:00
Mike Jolley 1a976fba44 Merge pull request #10299 from shivapoudel/shortcode-tag
Introduce function to check shortcode tag
2016-02-09 11:05:55 +00:00
Shiva Poudel 4543cb9da1 Renamed the function to wc_post_content_has_shortcode 2016-02-09 16:16:45 +05:45
Fredrik Forsmo d6138a69e9 Add is set check for product_base permalink 2016-02-09 10:55:37 +01:00
Shiva Poudel 4f7858739d Introduce function to check shortcode tag 2016-02-09 00:10:48 +05:45
Mike Jolley 4c29b7607f Show notices on variation button clicks
Closes #10281
2016-02-08 16:21:02 +00:00
Shiva Poudel c5fdcb52ba Move remove meta box to its original method 2016-02-08 20:27:01 +05:45
Mike Jolley 8e85306ef1 Remove reviews/comments meta box for products
Closes #10175 @claudiosmweb
2016-02-08 13:29:54 +00:00
Mike Jolley 971f6a3dee Added email for on-hold orders.
Closes #9792
2016-02-08 13:20:19 +00:00
Mike Jolley 1fecd7efe2 If shipping < 999.99, use 'shipping' arg when passing values to PayPal.
Closes #9852
2016-02-08 13:10:15 +00:00
Mike Jolley 0c30999a67 When orders update, invalidate money spent user meta.
Closes #9562
2016-02-08 12:26:46 +00:00
Mike Jolley 564802a9c4 Enqueue scripts on pages with checkout shortcodes
Closes #10018
2016-02-08 12:21:34 +00:00
Mike Jolley aa4bfde937 Remove deprecated chosen js scripts 2016-02-08 12:10:42 +00:00
Mike Jolley 5525fadc09 Pass values to validation functions.
Closes #10032
2016-02-08 12:06:23 +00:00
Mike Jolley 98f40fed9e Enable SKU for grouped products and move to inventory tab.
SKU is a stock keeping unit, specifically for inventory purposes. So it
does make sense to have this on the inventory tab - this also allows it
to work on grouped products without showing new tabs there.

Closes #10034

cc @jameskoster @claudiosmweb
2016-02-08 11:50:01 +00:00
Mike Jolley a35c7d6aca Hide min order amount field when not needed
Closes #10129
2016-02-08 11:44:08 +00:00
Mike Jolley efd0304bb0 Color code manual, system and customer notes
Closes #7225
2016-02-08 11:39:31 +00:00
Mike Jolley 5cae61cb69 Show net sales on dashboard
Closes #9948
2016-02-08 11:28:40 +00:00
Mike Jolley 620394c4d3 Merge pull request #10282 from Dev49net/master
Add actions in pay_action() method
2016-02-08 09:56:55 +00:00
Mike Jolley 428c2c3e0f Merge pull request #10284 from shivapoudel/theme-api
Fix - theme_api check as an object first
2016-02-08 09:55:54 +00:00
Mike Jolley f9edc6a14a Merge pull request #10285 from shivapoudel/row-actions
Both row actions can be check in single condition ;)
2016-02-08 09:55:14 +00:00
Nicola Mustone 37c82e4bf5 fix warning with PHP 5.3 2016-02-08 09:58:32 +01:00
Christian Schmidt 1cb50b9b53 Pass term object to get_term_link() 2016-02-06 02:00:28 +01:00
Shiva Poudel 1c856181d2 Both row actions can be check in single condition ;) 2016-02-06 01:46:21 +05:45
Shiva Poudel b0432827f5 Fix - theme_api check as an object first 2016-02-06 01:33:45 +05:45
Dev49.net c3202298c0 moved actions after order key verification
Use case described in Issue #10276
2016-02-05 19:44:55 +01:00
Mike Jolley 78296adf67 Missin list element 2016-02-05 15:45:32 +00:00
Mike Jolley 140d97ad10 docblock 2016-02-05 15:30:44 +00:00
Mike Jolley 2a4a1bc9a8 Add $id to read method 2016-02-05 15:20:33 +00:00
Mike Jolley 98883e07ba Use interface 2016-02-05 15:20:17 +00:00
Mike Jolley 15888b732f Add $id to read method 2016-02-05 15:20:11 +00:00
Mike Jolley 352184cc06 Merge branch 'master' into shipping-zones
# Conflicts:
#	assets/css/admin.css
#	i18n/languages/woocommerce.pot
#	includes/abstracts/abstract-wc-payment-gateway.php
#	includes/abstracts/abstract-wc-shipping-method.php
#	includes/admin/settings/class-wc-settings-shipping.php
#	includes/wc-core-functions.php
#	uninstall.php
2016-02-05 14:58:48 +00:00
Mike Jolley d4dfec797c WC Data Interface
To be used by zones etc.

cc @claudiosmweb @justinshreve
2016-02-05 14:33:20 +00:00
Mike Jolley aa12bed150 Translate during format_string rather than all options
Fixes #10243
2016-02-05 12:44:43 +00:00
Mike Jolley d3472a6207 [2.5] Fix hide empty check
Fixes #10279
2016-02-05 12:31:53 +00:00
Mike Jolley 38d618e9d9 Merge pull request #10264 from helgatheviking/master
row actions for shop orders
2016-02-05 12:22:14 +00:00
Mike Jolley 384c07b367 Merge pull request #10262 from Spreeuw/issue-10252
default order to processing for non-catalog products
2016-02-05 12:21:43 +00:00
Mike Jolley 3cef28efe8 [2.5] Error handling for screen ids
Fixes #10280
2016-02-05 12:16:44 +00:00
Mike Jolley 787d36dee4 Merge pull request #10232 from marcusds/master
Add filter to is_in_stock
2016-02-05 12:01:10 +00:00
Mike Jolley 2e54a01e17 Add 'media-models' dependency
Closes #10249
2016-02-05 11:58:22 +00:00
Mike Jolley e0c10e9be3 Allow has_coupon to detect any coupon applied
Closes #10251
2016-02-05 11:39:31 +00:00
Mike Jolley 1eebb19899 [2.5] Wrap report in backtick to stop people breaking .org forums
Before @jdembowski runs out of coffee
2016-02-05 09:55:51 +00:00
Mike Jolley a71a4de1b8 Add hash check when resuming order to detect changes.
@claudiosmweb
2016-02-05 09:41:25 +00:00
Dev49.net dcbb17a99d added actions before and after payment
Issue #10276
2016-02-05 01:44:19 +01:00
Mike Jolley a78edb2af2 [2.5] If an attribute meta key is not set, technically its 'any', so should match. Prevents issues when meta data is missing after renaming attributes
@claudiosmweb please test :)

#10272
2016-02-04 18:25:06 +00:00
Mike Jolley 628d791343 Price filter floats
Closes #10266
2016-02-04 16:53:17 +00:00
Mike Jolley b789a5ddd2 [2.5] Notice when no order note sexist
Fixes #10267
2016-02-04 16:51:07 +00:00
Kathy Darling 0720e6dc89 row actions for shop orders 2016-02-03 12:43:18 -05:00
Ewout Fernhout a3634028fa default order to processing for non-catalog products
fixes #10252
2016-02-03 14:48:19 +01:00
Agbonghama Collins a742861cda minor typo
Found this error while trying to understand how gateways are built on WooCommerce
2016-02-02 15:35:01 +01:00
Mike Jolley 64d4bb5172 [2.5] Round shipping after tax calc
#10076 and
https://wordpress.org/support/topic/when-calculating-shipping-total-forc
e-rounding?replies=6#post-7972623
2016-02-02 11:09:02 +00:00
Marcus 780614b14e Add filter to is_in_stock 2016-02-01 11:09:12 -08:00
Mike Jolley dcf81b3bbe [2.5] Un-needed ob_start 2016-02-01 15:12:44 +00:00
Mike Jolley fd74d992ab When COOKIEPATH is an empty string, cookies won't work across pages.
@claudiosmweb Found a few multisite installs where COOKIEPATH was an
empty string which broke cookies. I don’t see any side affects of this
change. 2.5?
2016-02-01 13:05:36 +00:00
Mike Jolley a4d982b1b9 Merge pull request #10216 from reigelgallarde/master
using query_vars instead of query
2016-02-01 12:17:00 +00:00
Mike Jolley 8d0591d7c6 [2.5] Prevent notice in get_allowed_countries 2016-02-01 12:04:34 +00:00
Eivin Landa db39c223b0 Added code to use the get_price method for child products. fixes #10217 2016-01-29 14:58:12 +01:00
Reigel Gallarde a89df9d6a2 Merge remote-tracking branch 'refs/remotes/woothemes/master' 2016-01-29 20:26:58 +08:00
Reigel Gallarde c3510063d6 using $wp_query->query_vars['product_cat'] instead of $wp_query->query['product_cat']
`$wp_query->query['product_cat']` include the parent in the string when
using `parent` in `$args` in
`woocommerce_product_categories_widget_dropdown_args` filter. Making
dropdown not able to add selected option.
2016-01-29 20:26:10 +08:00
Mike Jolley 9dea16ab6c [2.5] Fix 'hide empty' setting in category widget
Fixes #10213
2016-01-29 11:43:52 +00:00
Mike Jolley 6a8e89da2f [2.5] HTML5 validation message on weak password, and append to indicator 2016-01-28 15:36:24 +00:00
Mike Jolley 5ca53d3449 [2.5] Combine includes string 2016-01-28 13:21:03 +00:00
Mike Jolley 64dfcdbea4 [2.5] Remove obsolete notice and add styles for add payment page 2016-01-28 11:58:09 +00:00
Mike Jolley 3b43a53546 Don't format stock if empty 2016-01-28 11:31:53 +00:00
Almaz Mannanov 1cb65394a4 Update wc-core-functions.php
​Russian ruble has its own symbol.
2016-01-27 20:22:43 +03:00
Mike Jolley 657521ffa4 [2.5] Don't show purchase note to admin 2016-01-27 15:30:07 +00:00
Mike Jolley f8df682f34 Hide stock amount when children are involved
Closes #10172
2016-01-27 13:00:50 +00:00
Mike Jolley 8c85183d6e [2.5] Remove case check from tax rate country REGEX 2016-01-27 12:10:36 +00:00
Mike Jolley 7fb7120d8e [2.5] Move URL functions to core-functions file.
Closes #10170
2016-01-27 11:53:19 +00:00
Mike Jolley 47a74f96cd [2.5] Add context to category localisation
@claudiosmweb Closes #10183
2016-01-27 11:19:38 +00:00
Mike Jolley 9ca216310d [2.5] When totalling up shipping, force round
Closes #10076
2016-01-27 11:06:08 +00:00
Mike Jolley a2843c03c7 [2.5] Added password hint text and error messages 2016-01-27 10:54:03 +00:00
Shiva Poudel bf2be97dd0 Use get_charset_collate of WP 2016-01-27 15:55:56 +05:45
Claudio Sanches 6110c8316e Added Saudi Riyal currency
Request from:
https://wordpress.org/support/topic/saudi-riyal-support?replies=1
2016-01-25 20:59:19 -02:00
Mike Jolley a550c77dba [2.5] Remove stock bw compat code which was preventing manage stock being disabled.
Fixes #10167
2016-01-25 18:17:28 +00:00
Mike Jolley 57c643c93e [2.5] Round tax/tax refunded amounts on display.
Closes #10162
2016-01-25 15:18:49 +00:00
Mike Jolley b26a13ec47 [2.5] tracking text 2016-01-25 14:55:41 +00:00
Mike Jolley 3cfd4d7889 Merge pull request #10153 from helgatheviking/master
[2.5] pass $args to woocommerce_dropdown_variation_attribute_options_html hook
2016-01-25 11:07:38 +00:00
Mike Jolley 55c8f91c14 [2.5] Set has calculated shipping to true when setting country
Closes #10148
2016-01-25 10:16:39 +00:00
Mike Jolley a2fbfec5bf [2.5] Show user country rather than base country in "estimated for" messages
#10148
2016-01-25 10:16:39 +00:00
Kathy Darling 472e8d4618 pass $args to woocommerce_dropdown_variation_attribute_options_html hook 2016-01-23 15:03:47 -05:00