Commit Graph

20978 Commits

Author SHA1 Message Date
Max Rice 7b4ff1ee82 Fix HTTP_X_FORWARDED_HOST notice 2013-12-20 14:03:55 -05:00
toddlahman 32af9d4440 Revert back to ob_end_clean to fix errors
ob_clean does not turn off output buffering as ob_end_clean does. On
some hosts ob_clean results in an error like: transfer closed with 3
bytes remaining to read. ob_end_clean fixes this.
2013-12-19 01:14:39 -08:00
Ratnakar 0faf26cbd2 Expiry date calculation based on order completion date 2013-12-17 10:37:19 +05:30
Justin Stern ae91c698f2 Downloadable File Fixes/Tweaks
* Hooked up new downloadable product permissions function to
completed/processing actions
* WC_Product::get_files() is used rather than the underlying
_downloadable_files meta directly
* $this is passed to downloadable product filters in WC_Product in place
of $this->id which doesn't does not afford you the particular variation
when a product variation is being used.
2013-12-16 18:27:57 -05:00
Mike Jolley 3bd2d0d456 Credit card form actions - start and end 2013-12-14 12:03:32 +00:00
thenbrent 8ad3326016 Only allow a fee to be added once 2013-12-13 13:10:25 -08:00
James Koster dbf1b15001 replace a few missed →'s. closes #4350 2013-12-12 13:42:29 +00:00
Coen Jacobs b5a4a9e602 Removed duplicate description key. Closes #4357 2013-12-12 14:36:13 +01:00
Coen Jacobs 7fede7e6e5 Merge pull request #4334 from splashingpixels/master
syntax error missing semicolon on product grouped class
2013-12-12 01:44:31 -08:00
Coen Jacobs e9ed514d8e Merge pull request #4329 from kloon/tweak_rest_api_add_wc_version
Add WooCommerce version to API index route
2013-12-12 01:32:55 -08:00
Coen Jacobs 7a254a3586 Merge pull request #4331 from kloon/fix_cod_thankyou_warning
Fix warning on Thank You page with COD, closes #4320
2013-12-12 01:31:34 -08:00
Coen Jacobs 6a194f02e2 Merge pull request #4340 from maxrice/rest-api-warning-fixes
Fix warning when accessing coupons created in pre-2.1 installs
2013-12-12 01:30:00 -08:00
Coen Jacobs 00e7174149 Merge pull request #4342 from claudiosmweb/fix_4337
fix #4337
2013-12-12 01:29:36 -08:00
Coen Jacobs 2ddb0491c2 Merge pull request #4343 from claudiosmweb/patch-1
Fix #4338 and #4339
2013-12-12 01:27:18 -08:00
Lee Willis bf5095d67d MP6 is dead. Long live the WP admin theme 2013-12-12 07:21:28 +00:00
claudiosmweb 8344bbc2b4 removed "Trying to get property of non-object..." error on the edit review/comment page. 2013-12-10 23:48:03 -02:00
claudiosmweb 963b16d9c4 fixed standards 2013-12-10 23:43:12 -02:00
claudiosmweb 3a3a0c10ec fixed reviews metabox visibility 2013-12-10 23:42:31 -02:00
claudiosmweb f7f3c79fa0 fixed braces standards 2013-12-10 23:17:44 -02:00
claudiosmweb e07e89b0de removed not useful global variables 2013-12-10 23:17:22 -02:00
claudiosmweb ec9091b444 fixes #4339 2013-12-10 22:41:27 -02:00
claudiosmweb 86b01ca004 fixes #4338 2013-12-10 22:40:41 -02:00
claudiosmweb d0d5e56022 fixed space standards 2013-12-10 22:39:51 -02:00
claudiosmweb 04534fe82b fixed braces standards 2013-12-10 22:36:56 -02:00
claudiosmweb 48aa2af8ef fix #4337 2013-12-10 22:31:03 -02:00
Max Rice 2b0a75cbd6 Fix warning when accessing coupons created in pre-2.1 installs 2013-12-10 17:31:41 -05:00
splashingpixels 8a6848bdd3 syntax error missing semicolon on product grouped class 2013-12-10 09:38:36 -08:00
Gerhard 0f47ed8df9 Fix warning on Thank You page with COD, closes #4320 2013-12-10 13:06:22 +02:00
Gerhard 4fa98e0610 Change filecount variable 2013-12-10 12:50:48 +02:00
Gerhard 9b27b485b6 Show file title instead of count if set 2013-12-10 12:49:27 +02:00
Gerhard a5acde8bbd Add WooCommerce version to API index route 2013-12-10 12:24:53 +02:00
Coen Jacobs dbeeac710d Merge pull request #4304 from shoheitanaka/patch-2
Update class-wc-admin-assets.php because spell mistake
2013-12-09 06:35:46 -08:00
Coen Jacobs b16d3e3170 Merge pull request #4321 from kloon/fix_cat_walker_strict_warnings
Fix strict warnings for cat walker class, closes #4319
2013-12-09 06:34:31 -08:00
Coen Jacobs 962269cdbd Merge pull request #4318 from maxrice/rest-api-tweaks
REST API Tweaks
2013-12-09 06:34:04 -08:00
Coen Jacobs 31b18d24e8 Merge pull request #4317 from NikV/master
Some braces for the new WordPress standard
2013-12-09 06:21:26 -08:00
Coen Jacobs 64c68b8c38 Merge pull request #4301 from kloon/fix_rest_api_oauth_subfolder_install
Fix issue where oAuth signature is wrong when running site from a subfolder
2013-12-09 02:27:18 -08:00
James Koster c22ebcc7ae twentyfourteen compat. closes #4272 2013-12-09 09:55:11 +00:00
Gerhard 7db46f581f Fix strict warnings for cat walker class, closes #4319 2013-12-09 10:07:24 +02:00
Max Rice 8389ff23e5 Fix duplicate "Link:" content with pagination link headers 2013-12-08 17:38:27 -05:00
Max Rice 1a9933cd88 Fix authentication error message typos 2013-12-08 17:37:55 -05:00
Max Rice 898adbb32d Change money_format to currency_format for API index 2013-12-08 17:37:30 -05:00
Nik-v a005e3e71f Some braces for the new WordPress standard
Simple braces being added
2013-12-08 16:08:46 -06:00
Kathy Darling 6544d6b8f9 add $min_or_max and $display params to variation pricing functions 2013-12-07 10:11:23 +01:00
Shohei Tanaka 93944c56e1 Update class-wc-admin-assets.php because spell mistake
I found spell mistake.
#109 monitary to #109 monetary
2013-12-07 18:10:36 +09:00
Gerhard 8e2bc1cebc remove harded api reference, use WooCommerce_api_url instead 2013-12-06 16:57:44 +02:00
Gerhard 5b27f37c23 Fix issue where oAuth signature is wrong when running site from a subfolder #4055 2013-12-06 15:07:42 +02:00
Mike Jolley 27d40dd46f Fix term reordering Closes #4294 2013-12-05 16:07:44 +00:00
Mike Jolley 5239bf7b46 get_form_fields method Closes #4275
@coenjacobs please review. I believe its cleaner this way.
2013-12-05 15:57:01 +00:00
Mike Jolley 8910042a99 Don't load some classes during ajax events Closes #4282 2013-12-05 15:34:37 +00:00
Mike Jolley f3fe51e3a3 Merge pull request #4293 from pauloiankoski/patch-1
Add "rand" option to orderby
2013-12-05 06:42:45 -08:00
Mike Jolley 27d2c87583 Tidyup 2013-12-05 13:16:52 +00:00
Mike Jolley 153c367ef4 Missing icons #4287 2013-12-05 13:16:52 +00:00
pauloiankoski 09d50a04c8 Add "rand" option to orderby 2013-12-05 10:53:22 -02:00
Coen Jacobs 1f5f163916 Added option to hide Returning customer message. Closes #4220 2013-12-05 10:43:46 +01:00
Coen Jacobs b8409ba7b0 Merge pull request #4291 from BFTrick/flat-rate-shipping-message
Adding Default Shipping Price to Tooltips
2013-12-05 00:37:26 -08:00
Coen Jacobs bcf025694e Updated docblocks for #4292 2013-12-05 09:36:46 +01:00
Brent Shepherd f7df434399 Remove $from param on get_price_html_from_text()
As it's not used at all.
2013-12-04 17:46:12 -08:00
Patrick Rauland 01c1afae59 Adding default shipping price to tooltips 2013-12-04 16:20:30 -06:00
Mike Jolley 00ff09e3a2 sort sale price 2013-12-04 12:45:23 +00:00
Mike Jolley 4826a574a0 wp_redirects 2013-12-04 12:20:18 +00:00
Mike Jolley 9e5c0fbf67 Get rid of "FROM" - display a price range, localisable. Closes #4222 2013-12-04 12:08:14 +00:00
Mike Jolley 4ce57489a7 Esnure cron is scheduled for midnight Closes #4267 2013-12-03 15:50:00 +00:00
Mike Jolley 553b273fc6 Merge pull request #4214 from toddlahman/master
escape download handler URLs
2013-12-03 07:32:47 -08:00
Mike Jolley 1ec8b82f69 Prevent error if variation doesn't exist. 2013-12-03 14:54:13 +00:00
Coen Jacobs a8444eb567 Fixed faulty double return 2013-12-03 15:11:01 +01:00
Mike Jolley 53b56250f4 Clean up cancel_order and filter cancelable order status Closes #4257 2013-12-03 14:07:15 +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 273ae46758 Move sample tax rates Closes #4264 2013-12-03 13:45:10 +00:00
Mike Jolley 293c998a1d Set price slider min to min price. Closes #4183 2013-12-03 13:39:02 +00:00
Mike Jolley 418a8785b0 woocommerce_checkout_customer_userdata filter Closes #4235 2013-12-03 12:27:53 +00:00
Mike Jolley af34b43ee6 Tweaks for #4239 2013-12-03 12:14:12 +00:00
Mike Jolley d7d6ddbc84 Merge pull request #4240 from Spreeuw/master
Allow custom checkout fields to be localized
2013-12-03 04:08:09 -08:00
Mike Jolley a071d90368 Merge pull request #4255 from BFTrick/billing-state-desc-typo
Fixing County Typo
2013-12-02 06:59:19 -08:00
Coen Jacobs 52f22aaea4 Thumbnail upload buttons shouldn't be submit type. Closes #4263 2013-12-02 13:10:32 +01:00
Coen Jacobs 41171efd57 Deprecated versions of void functions shouldn't return 2013-12-02 13:01:11 +01:00
Coen Jacobs 3e6acf7aab Code changes for #4252 2013-12-02 12:34:27 +01:00
Mike Jolley e9234e8d63 Removed a stray var dump and added braces 2013-12-02 11:09:33 +00:00
Patrick Rauland 263d2116de fixing county typo 2013-11-29 18:26:42 -06:00
Gregory K 7b38c7300b Inconsistent return types: mostly TODOs, some fixes 2013-11-29 13:50:31 -05:00
Coen Jacobs 676330de2a More code styling and return value optimisations 2013-11-29 10:33:24 +01:00
Coen Jacobs 1cb8aa1724 Code styling fixes and return values for #4244 2013-11-29 10:15:58 +01:00
Gregory K 43ca01badc PhpDocs and TODO comments 2013-11-28 12:59:09 -05:00
Mike Jolley 06e047f6c3 Merge pull request #4243 from tivnet/master
PhpDocs and TODO comments
2013-11-28 09:24:10 -08:00
Mike Jolley e0779b0f06 Global templates make more sense than shop templates, and re-use quantity inputs for cart and single products Closes #4210 2013-11-28 17:23:45 +00:00
Gregory K cdbe5950f0 PhpDocs and TODO comments 2013-11-28 11:49:30 -05:00
Mike Jolley 4a5c965728 Merge pull request #4241 from ragulka/master
Fix: customer should be able to pay for a new order
2013-11-28 07:30:03 -08:00
Illimar Tambek b22adaebfc Fix: customer should be able to pay for a new order 2013-11-28 17:22:05 +02:00
Mike Jolley dde1f55120 Support deprecated hook Closes #4230 2013-11-28 15:20:02 +00:00
Mike Jolley ad84044537 More deprecated functions 2013-11-28 15:09:16 +00:00
Ewout Fernhout bfa4ce53ff Allow custom checkout fields to be localized 2013-11-28 15:46:08 +01:00
Coen Jacobs aef599b6a7 Merge pull request #4237 from kloon/refactor_inline_js
Refactor inline js
2013-11-28 05:12:40 -08:00
Coen Jacobs 5291f2eec6 Code changes as suggested in #4238 2013-11-28 14:12:08 +01:00
Gregory K cac9d12bf9 PhpDocs 2013-11-28 07:54:19 -05:00
Gerhard 903af259e0 refactor inline product images js 2013-11-28 14:37:44 +02:00
Coen Jacobs dbb9b6fc68 Removed duplicate country_dropdown_options() echo. Closes #4228 2013-11-28 13:24:23 +01:00
Coen Jacobs 5f2443b331 Merge pull request #4229 from tivnet/master
PhpDocs: most of @return void fixed
2013-11-28 04:21:44 -08:00
Gerhard 238becb050 Refactor order notes inline js 2013-11-28 14:03:29 +02:00
Mike Jolley bc98a8dc9f Deprecate functions should return 2013-11-28 11:16:00 +00:00
toddlahman 52fd9a0502 esc_url applied to readfile home_url()
This should fix it.

Thank you Mike for the info on esc_html.
2013-11-27 15:51:56 -08:00
Gregory K fc0df9fa59 typo 2013-11-27 13:23:46 -05:00
Gregory K dd5a2fb334 PhpDocs 2013-11-27 13:20:31 -05:00
Mike Jolley 6db8ac6f6f Made error counts work with new notices api Closes #4201 2013-11-27 16:15:53 +00:00
Mike Jolley 417651d579 Check for valid post type/products when setting up data 2013-11-27 16:03:54 +00:00
Mike Jolley 2bd40b29b2 Humanize order number/status string Closes #4225 2013-11-27 15:53:57 +00:00
Mike Jolley 3da2afdcef Isset rather than empty, so states work when allowed countries are set. Closes #4223 2013-11-27 15:38:52 +00:00
Mike Jolley ca57f2acdc Contact first and last name and query them when searching Closes #4174 2013-11-27 15:33:09 +00:00
Mike Jolley 73887cf274 Fix default status of variation fields Closes #4205 2013-11-27 14:58:01 +00:00
Mike Jolley a7b81eed8a Merge pull request #4213 from kloon/fix_optimize_downloadable_products_dropdown
Make downloadable product dropdown ajaxy, as per #4211
2013-11-27 06:32:32 -08:00
Mike Jolley ec480e8233 Merge pull request #4224 from mihaigrigori/master
Explicit currency for order prices
2013-11-27 06:28:34 -08:00
Mike Jolley c05e369b43 Merge pull request #4215 from scottbasgaard/master
"Order again" doesn't work. Proposed pass at fix.
2013-11-27 06:27:39 -08:00
Gerhard 06020f4bd5 Move all download permissions inline js to meta-boxes.js 2013-11-27 16:03:04 +02:00
Gerhard a1ad556fb9 Clear selection after adding download permissions 2013-11-27 15:29:42 +02:00
mihaigrigori b19fb1ee09 Explicit currency for order prices
Set the currency for the order prices to be the order's currency instead
of the shop's currency. When these are different, the order emails are
misleading.

Related to https://github.com/woothemes/woocommerce/pull/4143
2013-11-27 11:15:20 +02:00
Coen Jacobs 19688ad9ef Fixed several @return void clauses. There are more. No code changes in this commit, only PhpDocs
Closes #4216
2013-11-27 10:03:47 +01:00
Scott Basgaard 538e704bba Merge branch 'master' of github.com:woothemes/woocommerce 2013-11-27 03:44:52 +01:00
toddlahman c6fd37f2df esc_url_raw to readfile home_url() 2013-11-26 13:55:10 -08:00
Patrick Rauland 9ac8b406c5 removing postcode for Bolivia 2013-11-26 15:41:54 -06:00
Scott Basgaard 2885da4581 "Order again" doesn't work. Proposed pass at fix. 2013-11-26 17:48:39 +01:00
Mike Jolley 2cf95fc1eb Merge pull request #4207 from emzo/product-short-description-metabox
[2.1-beta-1] Remove second row of formatting buttons in product short description visual editor.
2013-11-26 08:25:21 -08:00
toddlahman 6bed7bff94 escape download handler URLs 2013-11-26 07:27:46 -08:00
Gerhard 6300e65582 Make downloadable product dropdown ajaxy, as per #4211 2013-11-26 15:54:34 +02:00
Ryan McCue ff6f2e070e Use correct variable for OAuth parameter check 2013-11-26 11:19:00 +10:00
Emyr Thomas 4af19400b6 Remove the second row of formatting buttons in the TinyMCE editor for the
product short description meta box.
2013-11-25 21:53:40 +00:00
Mike Jolley 5e9a84f26c Fix ajax class functions and includes 2013-11-25 15:47:52 +00:00
Coen Jacobs ac34f94321 Merge pull request #4199 from tivnet/master
PhpDocs fixes
2013-11-25 07:45:08 -08:00
Coen Jacobs 173f341631 Moved cart related output functions to right file 2013-11-25 16:17:18 +01:00
Gregory K 5caf292456 PhpDoc fix in class-wc-cart 2013-11-25 10:06:06 -05:00
Gregory K ec5f2c3501 PhpDoc fixes in class-wc-coupon 2013-11-25 10:00:54 -05:00
Coen Jacobs 848dfd8bd0 Deprecate woocommerce_paying_customer the other way around 2013-11-25 15:51:14 +01:00
Coen Jacobs c800d83182 Merge pull request #4197 from tivnet/master
Corrected some PhpDocs in class-wc-cart
2013-11-25 06:43:38 -08:00
Coen Jacobs 4afbd0b556 Merge branch 'function-call-refactor'
Conflicts:
	includes/admin/post-types/meta-boxes/class-wc-meta-box-order-data.php
	includes/shortcodes/class-wc-shortcode-cart.php
	includes/wc-template-functions.php
2013-11-25 15:42:26 +01:00
Mike Jolley d96661f45b Reverted template function names for @jameskoster's sanity 2013-11-25 14:35:10 +00:00
Mike Jolley b774e84e29 Revert "Replaced templates functions"
This reverts commit 4ce301a080.
2013-11-25 14:16:26 +00:00
Coen Jacobs 47ae00be28 Page functions woocommerce to wc refactor 2013-11-25 15:07:22 +01:00
Mike Jolley 51ba9c393f WC globals 2013-11-25 14:01:38 +00:00
Mike Jolley 3408965b8a Product functions 2013-11-25 14:01:38 +00:00
Mike Jolley 4ce301a080 Replaced templates functions 2013-11-25 14:01:37 +00:00
Mike Jolley 3973beae5d woocommerce_ functions to wc_ - replaced attribute functions 2013-11-25 14:01:37 +00:00
Coen Jacobs f7df17db1c Order functions woocommerce to wc refactor 2013-11-25 14:54:52 +01:00
Coen Jacobs c1a439eb99 Formatting functions woocommerce to wc refactor 2013-11-25 14:34:21 +01:00
Coen Jacobs 1663eafb68 Customer functions woocommerce to wc refactor 2013-11-25 13:52:53 +01:00
Coen Jacobs aaa14894ca Core functions woocommerce to wc refactor 2013-11-25 13:45:04 +01:00
Coen Jacobs b0e3802b5b Refactor cart functions in core 2013-11-25 13:44:32 +01:00
Gregory K f2e34496d0 Corrected some PhpDocs in class-wc-cart 2013-11-25 07:40:16 -05:00
Coen Jacobs cb4e239655 Cart functions woocommerce to wc refactor 2013-11-25 13:23:39 +01:00
Coen Jacobs aa4d9d5914 Better order for admin settings tabs 2013-11-25 12:06:42 +01:00
James Koster cf64302063 woocommerce status dashboard widget #4042 2013-11-25 10:40:05 +00:00
Coen Jacobs 6377a2af6e esc_attr instead of esc_url for textarea placeholder
Closes #4195
2013-11-25 10:41:37 +01:00
Coen Jacobs effc108af4 Merge pull request #4192 from maxrice/http-x-forwarded-host
Allow forwarded hosts for forced SSL
2013-11-25 00:44:41 -08:00
Coen Jacobs 2f3ed733fb Merge pull request #4182 from thenbrent/is-purchasable-check
Check products are purchasable when restoring cart
2013-11-25 00:39:16 -08:00
Coen Jacobs 084ac253f9 Merge pull request #4181 from kloon/fix_order_item_meta_ajax
Fix ajax calls for adding and deleting order item meta from the backend.
2013-11-25 00:38:50 -08:00
Coen Jacobs 65a1ed1b98 Fixed typo as merged in #4190 2013-11-25 09:38:03 +01:00
Coen Jacobs 8978f75f36 Remove safety net for calling WC_Product directly #4194 2013-11-25 09:25:45 +01:00
Coen Jacobs 7b63c6ce49 Remove parameters from function as well #4194 2013-11-25 09:19:24 +01:00
Coen Jacobs 73215ba4e2 Remove 2.0 tax deprecated arguments #4194 2013-11-25 09:17:44 +01:00
Coen Jacobs 6acfff9879 Fixed field matching in setting up variations 2013-11-25 09:05:27 +01:00
Andrew Benbow 0f29761268 Bracing 2013-11-25 09:02:51 +01:00
Max Rice 72316d0b5f Allow forwarded hosts for forced SSL 2013-11-24 22:39:23 -05:00
Coen Jacobs 8054316fa6 Merge pull request #4185 from maxrice/rest-api-fixes-issue-4055
Various fixes for REST API
2013-11-24 12:58:25 -08:00
Coen Jacobs e9691eed7f Merge pull request #4184 from maxrice/api-order-status-update-issue-4161
Implement order status update endpoint
2013-11-24 12:58:15 -08:00
Andrew Benbow 2d03022b76 Brace all the things 2013-11-24 10:24:12 +00:00
Max Rice c00e2d0f8c Add total customers count to sales report
Part of #4055
2013-11-23 17:27:24 -05:00
Max Rice 017e7cee1d Add permissions for count endpoints 2013-11-23 17:11:16 -05:00
Max Rice 2af47c6699 Fix incorrect total results number for pagination headers 2013-11-23 16:37:28 -05:00
Max Rice 0be58b3390 Normalize response data types
Part of #4055
2013-11-23 16:36:56 -05:00
Max Rice 20fb7e771f Add total sales property to products response 2013-11-23 15:17:14 -05:00
Max Rice 3bc8fae631 Remove PUT/DELETE endpoints
Will be implemented in 2.2

Part of #4055
2013-11-23 15:01:53 -05:00
Max Rice a0cb0cbb4e Remove schema link 2013-11-23 14:41:21 -05:00
Max Rice 3f07b8be77 Specify 2 decimal places for woocommerce_format_decimal()
Part of #4055
2013-11-23 14:40:31 -05:00
Max Rice 5bb8c9daef Fix permissions typo
Part of #4055
2013-11-23 14:32:22 -05:00
Max Rice 1ce5a71f3d Load admin profile class when editing a user 2013-11-23 13:41:10 -05:00
Max Rice 38be2ee7a4 Perform core authentication at 0 priority
Makes it easier for plugins to override the core API authentication

Part of #4055
2013-11-23 13:28:26 -05:00
Max Rice a4b3860376 Add action for plugins to load other API resources
Part of #4055
2013-11-23 13:27:47 -05:00
Max Rice deac0be31b Implement order status update endpoint
Closes #4161
2013-11-23 12:59:21 -05:00
thenbrent 1ce5500b06 Add WC_Cart::get_cart_for_session() 2013-11-22 15:30:24 -08:00
thenbrent bb14495064 Check products are purchasable when restoring cart
If WC_Product::is_purchasable() is only called when adding a product to the cart,
it's possible to purchase products that aren't purchasable (but were when they were
added to the cart).
2013-11-22 15:14:08 -08:00
Gerhard bac3c81296 Fix ajax calls for adding and deleting order item meta from the backend. 2013-11-22 15:16:38 +02:00
Max Rice d7c77d1ab7 API: Add XML generation
This commit completes the XML response handler and adjusts the output
format for all resources to include a top-level property that encloses
the response. This is more consistent with the multi-resource (e.g. GET
/orders) response.

Part of #4165
2013-11-22 03:41:32 -05:00
Coen Jacobs f8ef3444b0 Fixed undefined esc_atr function error 2013-11-21 14:28:09 +01:00
Scott Basgaard 922fa990a5 esc_attr() all the things. 2013-11-20 20:11:59 +01:00
Scott Basgaard de77ec07ea esc_url() all the things. 2013-11-20 19:54:01 +01:00
Mike Jolley 3acfc07684 Fix user search and sanitize search strings 2013-11-20 17:30:49 +00:00
Mike Jolley 43807a0488 Accessing currency wrong 2013-11-20 17:25:48 +00:00
Mike Jolley cc40557077 filter for cart fragment #4132 2013-11-20 16:31:28 +00:00
Mike Jolley 0dc0b9cbb0 Indenting fail. 2013-11-20 16:13:53 +00:00
Mike Jolley 7cb88db630 Merge pull request #4143 from mihaigrigori/master
Show order currency
2013-11-20 08:12:21 -08:00
Mike Jolley 03bda02144 Merge pull request #4147 from BFTrick/optimize-images
Optimizing Images
2013-11-20 06:35:26 -08:00
Mike Jolley b3480fc60e Merge pull request #4148 from scottbasgaard/master
Use remove_ordering_args() to remove order query filters instead of remo...
2013-11-20 06:35:03 -08:00
Mike Jolley 453942252e Merge pull request #4151 from toddlahman/master
wc_ delimiter to identify start of uniquid
2013-11-20 06:34:40 -08:00
Mike Jolley 4a06538125 Merge pull request #4153 from kloon/tweak_formatted_price_filter
Add formatted_woocommerce_price filter.
2013-11-20 06:33:53 -08:00
Gerhard 970ae40004 Remove function and use global woocommerce_timezone_string function instead 2013-11-20 16:16:04 +02:00
Gerhard 475e9abe83 Add formatted_woocommerce_price filter. 2013-11-20 10:40:29 +02:00
toddlahman 0c07663b26 wc_ delimiter to identify start of uniquid 2013-11-20 00:03:49 -08:00
Gerhard 4afff14de1 Remove unused variable from function 2013-11-20 07:57:48 +02:00
Gerhard df5929093d REST API - Fix fatal error due to missing get_timezone function 2013-11-20 07:55:28 +02:00
Scott Basgaard 9409907ffa Use remove_ordering_args() to remove order query filters instead of remove_product_query(). Most likely was a merge issue. Fixes #4142 2013-11-19 22:38:00 +01:00
Patrick Rauland 3fc598ff77 optimizing images 2013-11-19 12:59:01 -06:00
Mike Jolley 922406b67b Merge pull request #4145 from scottbasgaard/master
woocommerce_json_search_products() is now a method of WC_AJAX. Use $this...
2013-11-19 09:06:31 -08:00
toddlahman 10273973d8 Methods called statically set to static 2013-11-19 08:26:18 -08:00
Coen Jacobs 6f1f946d02 Merge pull request #4144 from kloon/fix_api_user_profile_warning
Fix warning in new rest api key generation
2013-11-19 08:20:31 -08:00
Mike Jolley 459db7ec63 2.1 welcome screen Closes #4043 2013-11-19 16:18:47 +00:00
Scott Basgaard f3b2854638 woocommerce_json_search_products() is now a method of WC_AJAX. Use $this->json_search_products() instead. 2013-11-19 14:44:28 +01:00
Gerhard bb43d086c9 Fix warning in new rest api key generation 2013-11-19 15:18:25 +02:00
mihaigrigori fac0bf69eb Show order currency
- method to return the order currency
- allow 'currency' parameter for 'woocommerce_price'
2013-11-19 15:13:11 +02:00
Scott Basgaard bee41fb7e5 woocommerce_get_refreshed_fragments() is no longer. Update where it was called to new Ajax class method. 2013-11-19 13:33:26 +01:00
James Koster 0257ce201a wc messages #4042 2013-11-19 11:22:59 +00:00
James Koster 489bf34385 attributes table. closes #4118 2013-11-19 11:04:45 +00:00
Mike Jolley 8339354bc2 Merge pull request #4119 from kloon/feature_create_missing_pages_button
Add button on tools page to create missing pages
2013-11-19 01:46:22 -08:00
Coen Jacobs 792bb6e444 Merge pull request #4134 from scottbasgaard/master
Product->get_title() should be raw format by default. Pass at #4124
2013-11-19 01:02:18 -08:00
Coen Jacobs ac59c59da7 wc_add_notice added extra parameter #4099
Thanks @thenbrent :)
2013-11-19 09:57:06 +01:00
Coen Jacobs e41687ba4f Merge pull request #4138 from woothemes/api-implementation
API implementation merge to master
2013-11-19 00:53:11 -08:00
Max Rice ef22f03275 Add API key-specific permission check
Part of #4055
2013-11-19 03:04:00 -05:00
Max Rice 61fb0f760a Update authentication to use new API key meta names
Part of #4055
2013-11-19 03:03:39 -05:00
Max Rice f542ce87a1 Add key management UX
Part of #4055
2013-11-19 03:02:28 -05:00
Max Rice 001ce0fc3e Add option to enable/disable API
Part of #4055
2013-11-19 03:01:46 -05:00
Max Rice dcdca4d4d2 Remove API settings tab
Part of #4055
2013-11-19 03:01:14 -05:00
Max Rice 48e8363db0 Add meta to resource responses
Part of #4055
2013-11-18 22:58:10 -05:00
Max Rice 3130369325 Update filter_response_fields() to support sub-field inclusion
Part of #4055
2013-11-18 21:59:13 -05:00
Max Rice 490dc758a9 Update pagination args/headers
Part of #4055
2013-11-18 21:06:45 -05:00
Max Rice 87ff36db12 Properly handle datetimes
Part of #4055
2013-11-18 16:47:38 -05:00
Gerhard 02c62bd132 fix call to static method inside class 2013-11-18 21:59:10 +02:00
Gerhard 0e21a46cf4 make creat_pages static 2013-11-18 17:56:04 +02:00
Scott Basgaard 96fe4aae0b Use wp_unslash() when displaying search string on orders. 2013-11-18 16:32:47 +01:00
Scott Basgaard faf64a4d96 Product->get_title() should be raw format by default. Pass at #4124 2013-11-18 16:03:32 +01:00
Mike Jolley d78b4287bf shortcode_atts and show price - closes #4122 2013-11-18 14:37:27 +00:00
Mike Jolley 6ea8cad430 Related display fixes for attributes #4123 2013-11-18 14:11:40 +00:00
Mike Jolley 20bedea97b Fix filters Closes #4123 2013-11-18 13:45:54 +00:00
Mike Jolley 26cf2e0669 Isset, not empty for 0 values. Closes #4127 2013-11-18 13:35:38 +00:00
Mike Jolley 434421aad7 Validation errors #4115 2013-11-18 12:53:45 +00:00
Mike Jolley a957248a4d woocommerce_product_gallery_attachment_ids filter Closes #4113 2013-11-18 12:40:58 +00:00
Mike Jolley 9eabb9a4fb Fix yard conversion Closes #4129
@coenjacobs for .21
2013-11-18 12:31:55 +00:00
Mike Jolley 65561e2c61 WC() 2013-11-18 12:31:55 +00:00
Coen Jacobs 90008d7143 Merge remote-tracking branch 'thenbrent/new_notice_api'
Conflicts:
	includes/shortcodes/class-wc-shortcode-cart.php
	includes/wc-message-functions.php
	woocommerce-ajax.php
2013-11-18 12:44:22 +01:00
Coen Jacobs f0adcb65b7 Merge remote-tracking branch 'thenbrent/add_payment_method_issue_3396' 2013-11-18 12:33:23 +01:00
Mike Jolley f6786ef6bf Convert back to forward slashes in getcwd closes #4112.
@tivnet, can you confirm? I don't have windows.
2013-11-18 11:20:39 +00:00
Max Rice c1854b26b9 Implement GET /reports/sales endpoint
Part of #4055
2013-11-15 00:21:19 -05:00
Coen Jacobs faaebab2ff Always require braces (since yesterday ;) )
In order to comply to the new coding standards:
http://make.wordpress.org/core/2013/11/13/proposed-coding-standards-change-always-require-braces/
2013-11-14 20:31:08 +01:00
Gerhard 3607ecf285 Add button on tools page to create missing pages 2013-11-14 21:20:18 +02:00
Max Rice 5ab8e085ad Update /coupons/code endpoint
Part of #4055
2013-11-14 13:56:05 -05:00
Max Rice ec55e43c24 Update API index response
Part of #4055
2013-11-14 13:55:45 -05:00
Scott Basgaard 4bdfd78ac5 Avoid undefined variable notices when calculating totals and saving attributes via AJAX. 2013-11-14 19:40:15 +01:00
Scott Basgaard 9f7f36b232 Merge branch 'master' of github.com:woothemes/woocommerce
Conflicts:
	woocommerce-ajax.php
2013-11-14 19:37:34 +01:00
Max Rice 709f0da16f Improve response filters
Part of #4055
2013-11-14 12:48:20 -05:00
Max Rice 451bc07339 Tweak GET /order response
Part of #4055
2013-11-14 12:42:42 -05:00
Max Rice 674ea42012 Implement GET endpoint for products and reviews
Part of #4055
2013-11-14 12:40:35 -05:00
Mike Jolley 221a9d7350 Merge pull request #4111 from tivnet/master
Incorrect "Robots: none" tag?
2013-11-14 05:53:12 -08:00
Gregory K eba9edb30b Incorrect "Robots: none" tag?
https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag
2013-11-14 07:40:33 -05:00
Mike Jolley 3d7df1bb85 Merge pull request #4108 from corsonr/master
Added Icelandic krona & Currency symbol
2013-11-14 04:28:31 -08:00
Mike Jolley 645ca3e834 WC_Ajax class for ajax events 2013-11-14 12:13:34 +00:00
Remi Corson 479153918e Fixed incorrect Icelandic currency code 2013-11-14 11:44:58 +01:00
Remi Corson 84e8716844 Added Icelandic krona & Currency symbol 2013-11-14 11:42:05 +01:00
Remi Corson 55ccb4d428 Added Icelandic krona currency & currency code 2013-11-14 11:39:59 +01:00
Mike Jolley d7ee32b18a Consistant naming with core 2013-11-14 09:48:41 +00:00
Scott Basgaard 97fe6adaeb It's possible there are no attributes. Let's check first to avoid undefined notices. 2013-11-13 21:15:30 -05:00
Scott Basgaard 5b5704d196 More undefined checks to avoid PHP notices in widgets. 2013-11-13 21:11:00 -05:00
Scott Basgaard c36369010d When adding new widget instance, use isset() to make sure setting key exists and avoid notices/warnings. 2013-11-13 21:03:46 -05:00
Scott Basgaard eb91907db6 Make sure $matched is defined when calculating shipping totals and classes to avoid PHP variable undefined notices. 2013-11-13 20:53:31 -05:00
Scott Basgaard f76a5edea8 Display message when tools options have been saved. 2013-11-13 20:36:27 -05:00
thenbrent 9e80672143 Use new notice template for Shipping Updated
For #4034
2013-11-13 16:20:27 -08:00
thenbrent 3c625eba5f Use $messages variable for all notice templates 2013-11-13 16:19:59 -08:00
thenbrent a7a7a8ee08 fixup! Store all notices in 'wc_notices' array 2013-11-13 16:19:27 -08:00
thenbrent 8dcf86335c Introduce new wc_print_notice() function 2013-11-13 16:10:31 -08:00
thenbrent 3fa310969f Introduce new wc_get_notices() function
To replace the deprecated Woocommerce->get_messages() and
Woocommerce->get_errors() functions
2013-11-13 16:09:28 -08:00
thenbrent 376c2f26ce Store all notices in 'wc_notices' array
With 'error', 'success' & 'notice' array keys
2013-11-13 16:09:28 -08:00
thenbrent 41ba6578a0 Move notice templates into /notices/notice.php 2013-11-13 16:09:28 -08:00
Mike Jolley 02c47b2723 get_related wpdb query Closes #4086 2013-11-13 18:00:01 +00:00
Mike Jolley 2b57114a12 WC() > $woocommerce 2013-11-13 16:59:42 +00:00
Mike Jolley 197c0c76cc Only unset cookie if it exists #3513 2013-11-13 14:55:15 +00:00
Mike Jolley daea1e827c Merge pull request #4094 from robdvr/master
Ability to add custom input classes
2013-11-13 04:18:19 -08:00
Mike Jolley 044f92fe41 Merge pull request #4096 from scottbasgaard/master
Use $_product object instead of undefined $product_id for downloadable p...
2013-11-13 04:15:22 -08:00
Mike Jolley e9c38153e5 Merge pull request #4101 from franticpsyx/variation_is_visible
Fix invisible variations when get_price is filtered and set to (double) 0.
2013-11-13 04:15:04 -08:00
Mike Jolley 2c25568e21 Filter for adding login erorrs #4059 2013-11-13 12:12:27 +00:00
Mike Jolley f1e6900359 Hooks before and after deleting order items #4059 2013-11-13 12:12:27 +00:00
Mike Jolley b116d7619d Ex tax calcs Closes #4100 2013-11-13 12:12:27 +00:00
Mike Jolley dbdf66aec0 Multiselect 2013-11-13 12:12:26 +00:00
Manos Psychogyiopoulos fd2a812e6d Fix invisible when get_price is filtered and set to double 0. 2013-11-13 13:58:24 +02:00
thenbrent 2fcd615f88 Update calls to wc_print_messages() function
Part of #4034
2013-11-12 20:59:40 -08:00
thenbrent e14e3842b0 Update calls to wc_error_count() function
Part of #4034
2013-11-12 20:59:39 -08:00
thenbrent fe44f020e3 Update calls to wc_add_message() function
Part of #4034
2013-11-12 20:59:39 -08:00
thenbrent 0d45e19fcf Update calls to wc_add_error() function
Part of #4034
2013-11-12 20:59:39 -08:00
thenbrent f3b1679ae5 Introduce new wc_print_notices() function
To replace wc_print_messages() function.

Part of #4034
2013-11-12 20:59:39 -08:00
thenbrent 3707a9d017 Introduce wc_clear_notices() function
To replace wc_clear_messages() & wc_clear_errors() functions

Part of #4034
2013-11-12 20:59:39 -08:00
thenbrent 23cdafccd4 Introduce new wc_add_notice() function
To replace wc_add_message() & wc_add_error() functions.

Part of #4034
2013-11-12 20:59:39 -08:00
thenbrent b3aad6f6fe Introduce new wc_notice_count() function
To replace wc_message_count() & wc_error_count()

Part of #4034
2013-11-12 20:59:39 -08:00
thenbrent c2646a7315 Rename message functions file for new notice API
Part of #4034
2013-11-12 20:59:04 -08:00
Scott Basgaard 8a45886a4c Use $_product object instead of undefined $product_id for downloadable permissions. Fixes #4095 2013-11-12 23:37:39 -05:00
Rob Davarnia f92f5bfe81 Ability to add custom input classes 2013-11-12 13:14:14 -08:00
Mike Jolley f7c3362e8a Update variations when the term slug changes Closes #4077 2013-11-12 20:25:26 +00:00
Mike Jolley 5bfffb8554 Merge pull request #4089 from scottbasgaard/master
Update tools wp_nonce_url() to correct page.
2013-11-12 11:02:36 -08:00
Mike Jolley 3fd02a57d0 Locales - store standardised values, and display using locale in admin #3862 2013-11-12 17:43:30 +00:00
Mike Jolley 6bcee46ffb Convert float to string during update post meta #3862 2013-11-12 12:01:05 +00:00
Scott Basgaard 71c2012c1b Add missing message when clearing sessions
All other actions add a message from tools
2013-11-11 13:48:36 -05:00
Scott Basgaard c712e1414a Update tools wp_nonce_url() to correct page. 2013-11-11 13:20:03 -05:00
Mike Jolley 7179417d0f Better locale report #3862 2013-11-11 15:41:32 +00:00
Mike Jolley 70e2a05bd6 wpautop when displaying values #3926 2013-11-11 13:50:36 +00:00
Mike Jolley 5f62c532c3 Clean up formatting in admin - use autop #3926 2013-11-11 13:50:36 +00:00
Max Rice 00c65b9cc3 Add site timezone to API index 2013-11-10 19:30:59 -05:00
Max Rice a13a95e452 Update API resource classes
Change method naming to snake_case and implement initial
`current_user_can()` permission checks
2013-11-10 19:29:36 -05:00
Max Rice 9c7791e3d8 urldecode parameters before passing to resource methods 2013-11-10 18:29:37 -05:00
Max Rice 1f5db98046 Add date created filtering to /customers endpoint 2013-11-10 18:28:58 -05:00
Max Rice a909140cb1 Fix typo 2013-11-10 14:01:12 -05:00
Max Rice 23e6b22cfd Rename API base resource class 2013-11-09 16:20:23 -05:00
claudiosmweb e04dadd8d9 added rating meta box for comments, fix #4072 2013-11-08 17:19:42 -02:00
Mike Jolley 442f3b54cf Use textarea for meta #3926 2013-11-08 17:03:46 +00:00
Mike Jolley 97bdb1555f Sync only when needed 2013-11-08 16:02:03 +00:00
Mike Jolley 47fc9b2922 Merge pull request #4068 from BFTrick/sanitzie-admin-order-meta
Removing Extra Slashes When Order Meta is Saved in Admin
2013-11-08 07:58:25 -08:00
Mike Jolley 78832e7e79 woocommerce_is_filtered filter Closes #4078 2013-11-08 15:56:38 +00: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
Patrick Rauland cc79155f0d making the local pickup tooltip more descriptive 2013-11-08 07:10:43 -06:00
Mike Jolley ff0fae0c1f action, not filter 2013-11-07 09:53:28 +00:00
Patrick Rauland 3ba5aa3369 removing extra slashes when order meta is saved in admin 2013-11-06 10:30:36 -06:00
Max Rice 6c3eb169db Define and use WC_API::VERSION constant for endpoint versioning 2013-11-06 01:56:38 -05:00
Max Rice 0a6b268024 Update core WC_API class to use new WC_API_Server class 2013-11-06 01:56:11 -05:00
Max Rice c3fa52b0b5 Update API classes to use new WC_API_Server class 2013-11-06 01:54:19 -05:00
Max Rice ed6de29bfc Add new WC_API_Server class
Based on WP_JSON_Server, this class add response handling based on
endpoint suffixes (.json or .xml) or the ACCEPT header. It also removes
some unneeded functionality and renames filters so as to not conflict
with users who may have WP-API installed already. Finally, instead of
no authentication required by default, authentication is always
required unless specifically disabled via filters.
2013-11-06 01:53:07 -05:00
Max Rice 8637da63c0 Add REST API XML request/response handler stub 2013-11-06 01:49:51 -05:00
Max Rice 165d0e65ea Add REST API JSON request/response handler 2013-11-06 01:49:37 -05:00
Max Rice 58c57eb6f1 Add REST API request/response interface 2013-11-06 01:49:08 -05:00
Max Rice 1625930482 Remove WP-API library 2013-11-06 01:24:06 -05:00
Max Rice 30300bb2a0 Add get_woocommerce_api_url() method 2013-11-06 01:23:19 -05:00
Brent Shepherd 3e08e29f9e Use new notice API for "Add a Pay Method" notice
Part of #3396
2013-11-05 16:17:51 -08:00
Brent Shepherd fe969d0903 Use wc_add_notice() when updating shipping costs
Fixes #4034
2013-11-05 16:17:51 -08:00
Brent Shepherd 9de928baf5 Add new notices API for blue info message
Part of #4034
2013-11-05 16:11:50 -08:00
Brent Shepherd 4a7f207eff Use new ID for add pay method form
Part of #3396
2013-11-05 15:36:00 -08:00
Brent Shepherd b69066405b Move /add-payment-method/ endpoint to /my-account/
Part of #3396
2013-11-05 13:02:13 -08:00
thenbrent 09e182f358 Allow gateways to specify redirect URL
Part of #3396
2013-11-04 20:54:18 -08:00
Coen Jacobs b9b9f3a49e Fixed docs for enabled params (string, not bool), closes #4052 2013-11-04 11:29:20 +01:00
Coen Jacobs c58621f3f8 Fixed docblock return type, closes #4057 2013-11-04 11:20:45 +01:00
Mike Jolley e3a8b7dfdc Merge pull request #4045 from scottbasgaard/master
Class name consistency for woocommerce_attributes > product_attributes. ...
2013-11-04 01:59:58 -08:00
Max Rice e219585974 Add initial versions of REST API resource classes 2013-11-04 01:36:31 -05:00
Max Rice 27163ceec0 REST API base class tweaks 2013-11-04 01:36:16 -05:00
Max Rice 25407c284e Trash posts by default instead of permanently deleting 2013-11-04 01:34:53 -05:00
Max Rice 2bb83bb1d8 Make WC_Comments::exclude_order_comments static
The WC_Comments class is an orphaned global so there's no way for other
code to access it in order to remove the `comment_clauses` filter. This
changes the add_filter and associated method to static so other code
can properly remove the filter for querying order notes
2013-11-04 01:34:21 -05:00
Max Rice 7caffcd8f2 Add REST API base class 2013-11-03 20:06:36 -05:00
Max Rice 45fa450760 Add REST API authentication class 2013-11-03 20:06:28 -05:00
thenbrent e63021a2ca Fix "non-static method called statically" notice 2013-11-03 16:54:07 -08:00
thenbrent d9639947da Filter gateways for add_payment_method form
Part of #3396
2013-11-03 16:54:07 -08:00
thenbrent a1ca487e73 Add a notice that payment method has been added
Part of #3396
2013-11-03 16:54:07 -08:00
thenbrent 1e0cf3087e Redirect to My Account page after adding method
Part of #3396
2013-11-03 16:54:07 -08:00
thenbrent 0e4cd125c5 Call add_payment_method_action()
Part of #3396
2013-11-03 16:54:07 -08:00
thenbrent 4f825eb36e Only display add_payment_method() when logged in
Part of #3396
2013-11-03 16:54:07 -08:00
thenbrent 237b5778a3 Add add_payment_method_action() handler
Part of #3396
2013-11-03 16:53:24 -08:00
thenbrent 1bbe03d139 Add new /checkout/add-payment-method/ endpoint
Part of #3396
2013-11-03 16:53:14 -08:00
Max Rice 1d113b3e39 Add REST API endpoints/methods to WC API class 2013-11-03 19:29:45 -05:00
Max Rice 4cc1847a66 Remove unused WP_JSON_Posts class 2013-11-03 19:26:29 -05:00
Max Rice 4daaf22304 Add REST API settings stub 2013-11-03 18:55:34 -05:00
Max Rice a4a8b5e5c0 Add required global functions for WP_JSON_Server class 2013-11-03 18:54:56 -05:00
Max Rice 65f48e8456 Modify WP_JSON_Server to allow authentication 2013-11-03 18:53:35 -05:00
Max Rice a0ddef247d Fix strict standards warning 2013-11-02 18:12:50 -04:00
Max Rice f6ea020e8d Add WP JSON API Library 2013-11-02 01:16:45 -04:00
thenbrent dae90d0dd0 Fix use of __CLASS__ when not in class 2013-11-01 15:00:09 -07:00
Coen Jacobs 16162ca8db We'll let autoload handle this file loading
Revert: 1428bf8f9c
2013-11-01 21:05:02 +01:00
Scott Basgaard 5b4ef0b8bd Class name consistency for woocommerce_attributes > product_attributes. See #4019 2013-11-01 13:06:14 -04:00
Coen Jacobs 1428bf8f9c Only load integration abstract when needed #3169 2013-11-01 17:39:33 +01:00
Coen Jacobs ae64e20bb3 Take out default variations #3169 2013-11-01 17:33:33 +01:00
Mike Jolley 5faf171a48 Merge pull request #4030 from bernardpeh/woocommerce-dev
polish up attributes section confusing tips.
2013-11-01 08:47:04 -07:00
Mike Jolley ab94de75d6 Merge pull request #4038 from emzo/widget-product-categories-orderby
Changed label of orderby setting in product category widget.
2013-11-01 07:02:38 -07:00
Mike Jolley e9c130145a Merge pull request #4031 from helgatheviking/sync/add-child-to-action
pass $children variable (variations) to the woocommerce_variable_product...
2013-11-01 07:01:28 -07:00
Emyr Thomas ba3282c737 Changed label of orderby setting in product category widget. 2013-10-31 21:42:31 +00:00
Mike Jolley 19fcf30a66 Option to limit reviews to purchasers. Closes #4021 2013-10-31 17:37:36 +00:00
Mike Jolley b4d1c764d5 Move average rating outside of hidden tab. Closes #3867. 2013-10-31 16:26:20 +00:00
Mike Jolley 447b9d8b4f Unlike the suggestion in #3965, the HTML email preview should preview the layout only (selected colours etc). Content is irrelevant.
Closes #3965
2013-10-31 15:07:43 +00:00
Kathy Darling b444b42275 pass $children variable (variations) to the woocommerce_variable_product_sync hook 2013-10-31 09:17:00 +01:00
Bernard Peh f4291f9333 polish up attributes section confusing tips. 2013-10-31 17:14:35 +11:00
Mike Jolley 67c7671bb2 woocommerce_apply_base_tax_for_local_pickup when no methods are chosen yet 2013-10-30 15:30:20 +00:00
RistoNiinemets ff26037372 replace function with new filter 2013-10-29 20:16:12 +02:00
RistoNiinemets 6a2972f5f3 Merge remote-tracking branch 'upstream/master' 2013-10-29 20:11:00 +02:00
Mike Jolley 95c0a67fdf Merge pull request #4017 from scottbasgaard/master
Define line_subtotal and line_subtotal_tax to avoid PHP notice in cart.
2013-10-29 09:49:55 -07:00
Mike Jolley c3232d613d _woocommerce_term_recount 2013-10-29 11:29:21 +00:00
James Koster dcf54c23bd edit coupon icons and new version of WooCommerce icon font. #3585 2013-10-28 11:19:56 +00:00
James Koster 5aeaed888e Add review form no longer opens in lightbox. closes #3804 2013-10-28 09:56:03 +00:00
James Koster 1fbb6249ff Replaced → / ← on frontend with icons from our font. closes #4009 2013-10-28 09:45:59 +00:00
James Koster e934947152 Remove placeholder polyfill. closes #4012 2013-10-28 09:03:03 +00:00
Scott Basgaard a36c8d3b1f Rename attributes class to woocommerce_attributes. Fixes #4019
.product_attributes should be .woocommerce_attributes
2013-10-26 21:38:03 +02:00
Scott Basgaard ea03af2ee4 woocommerce_exclude_order_comments() is now exclude_order_comments() 2013-10-26 17:30:43 +02:00
Scott Basgaard 213525fc7c Use global $current_user in my-account/edit address.
Avoid PHP notice for undefined variable.
2013-10-26 16:33:14 +02:00
Scott Basgaard 5676c8d919 Define line_subtotal and line_subtotal_tax to avoid PHP notice in cart. 2013-10-26 16:22:09 +02:00
RistoNiinemets fcaaa129f2 use wooocommerce_locate_template
This allows woocommerce_locate_template filter to work on admin also
2013-10-26 13:32:38 +03:00
Mike Jolley c7429357c7 Fix notices and rounding issues in orders 2013-10-25 20:02:21 +01:00
Mike Jolley a099f3f37c Put back old coupon storage logic so plugins can add amounts later than construct. Also streamlined get/set session data. 2013-10-25 19:28:09 +01:00
Mike Jolley 9416a4c8a2 Merge pull request #4007 from RistoNiinemets/ucfirst
change ucwords to ucfirst
2013-10-25 09:09:18 -07:00
RistoNiinemets a96cb41c83 no dot use ucfirst nor ucwords for method title 2013-10-25 18:44:17 +03:00
Mike Jolley 8356cd301d Merge pull request #4011 from scottbasgaard/master
Round product % price inc/dec in bulk edit. Resolves #4001
2013-10-25 08:14:23 -07:00
Mike Jolley f742a91435 Rejig login form closes #4005 2013-10-25 16:10:13 +01:00
Scott Basgaard 242fc17090 Fix formatting. 2013-10-25 15:38:07 +02:00
Scott Basgaard a85201ae2c Don't forget to round with woocommerce_price_num_decimals option 2013-10-25 15:25:58 +02:00
Scott Basgaard a3a1753c00 Round product % price inc/dec in bulk edit. Resolves #4001 2013-10-25 15:19:03 +02:00
Mike Jolley dee6bba05c Fix get_item_subtotal 2013-10-25 13:25:53 +01:00
Mike Jolley e50067d68e Merge branch 'tax-precision' 2013-10-25 12:15:48 +01:00
RistoNiinemets ae00faecdd change ucwords to ucfirst 2013-10-25 13:53:53 +03:00
Mike Jolley e143d344e5 Constants 2013-10-24 19:36:22 +01:00
Mike Jolley af6996866e Rounded report 2013-10-24 19:22:22 +01:00
Mike Jolley 92fa4e379b round tax reports 2013-10-24 16:19:28 +01:00
Mike Jolley 19c3ab7172 calc_tax functions 2013-10-24 16:16:39 +01:00
Mike Jolley 6d32dafa79 debug 2013-10-24 14:55:23 +01:00
Mike Jolley e4ff61f475 You know when you've been benbowed 2013-10-24 14:53:01 +01:00
Mike Jolley 0d8d95e8e6 total calcs 2013-10-24 13:41:42 +01:00
Mike Jolley 51aba21d76 Rounding + precision for taxes. Store unrounded. Round down (for the moment) for taxes 2013-10-24 13:15:42 +01:00
Scott Basgaard c93a11cff2 In System Status -> Templates make sure to look for template overrides in parent theme as well. 2013-10-24 14:05:13 +02:00
Mike Jolley 90ba359ef9 Uninstall option Closes #3968. Change option for #3992 2013-10-23 17:21:03 +01:00
Mike Jolley 56714e1d62 Merge pull request #3992 from scottbasgaard/master
Add template debug mode option. First pass at #3941
2013-10-23 08:58:30 -07:00
Scott Basgaard 9c9bfe1f4c Add template debug mode option. First pass at #3941 2013-10-23 17:52:58 +02:00
Scott Basgaard 90b503e2c6 Use minified quick-edit.js 2013-10-23 17:36:32 +02:00
Mike Jolley f4d4a42ba7 Merge pull request #3944 from bernardpeh/woocommerce-master
allow other plugins to validate the passwd in the lost passwd page
2013-10-23 08:11:19 -07:00
Mike Jolley 7fb60ccc99 blogname is the actual option, but WP terminolgy in settings is "Site Title".
Closes #3952
2013-10-23 15:57:14 +01:00
Mike Jolley 8ce3b8dd57 Filters for shortcode tags 2013-10-23 14:55:18 +01:00
Mike Jolley 1b1332d278 Static shortcodes. Will allow plugins to add some alias with same methods. 2013-10-23 12:55:40 +01:00
Mike Jolley 22eaf33bfe Filter links + woocommerce_enable_admin_help_tab 2013-10-22 18:20:33 +01:00
Mike Jolley 05d9c0e045 Rename menus, removed woocommerce_ 2013-10-22 17:26:18 +01:00
Mike Jolley 1813c1d6d6 woocommerce_attributes > product_attributes 2013-10-22 16:46:59 +01:00
Mike Jolley 28f8d401d3 Fix term install Closes #3919 2013-10-22 16:34:23 +01:00
Mike Jolley ff928714a2 Keep leading zeros. Closes #3930 2013-10-22 16:28:44 +01:00
Mike Jolley cc46479487 Merge pull request #3973 from helgatheviking/fix/invalid-args-for-implode
cast $tabs['class'] as array
2013-10-22 08:23:56 -07:00
Mike Jolley f22b7feb41 _woocommerce_term_recount 2013-10-22 16:20:40 +01:00
Mike Jolley 1d8d86a2e5 Coupon in admin bar new menu Closes #3974 2013-10-22 13:58:55 +01:00
Kathy Darling cc50c0f3ef cast $tabs['class'] as array 2013-10-21 22:13:52 +02:00
Mike Jolley 67e4f0731e remove_ordering_args from .18 2013-10-21 13:05:34 +01:00
Mike Jolley 4625ba8a22 Merge pull request #3956 from atomworks/master
Fix: Download permissions not granted on order completion.
2013-10-21 04:44:34 -07:00
Mike Jolley 6eff61481f Pass index to woocommerce_save_product_variation 2013-10-21 12:37:27 +01:00
Leonard 24c57f35fd Fix: Download permissions not granted on order completion.
$downloads was being built from a function that tried to read from the permissions table and not from the correct post meta which it actually needed. This resulted in having to manually grant permissions for each order made.

Original symptom was download links not appearing on order completion screen or completion e-mail.
2013-10-19 13:56:57 +01:00
claudiosmweb 995b672c8a refixed the BR postcode validation 2013-10-18 16:06:27 -03:00
claudiosmweb 91193c5dac fixed the BR postcode validation 2013-10-18 16:03:27 -03:00
claudiosmweb 538d776d3f fixed is_postcode method description 2013-10-18 15:58:51 -03:00
claudiosmweb bb2cc2b035 added BR postcode validation 2013-10-18 15:56:36 -03:00
Mike Jolley 1c6e63fe0a CH postcode validation 2013-10-18 19:19:29 +01:00
Mike Jolley 5d2e1ac031 Refactor coupon code so coupons get the actual discount amount, redone edit coupon screen with tabs, added coupon item limits which Closes #3902 2013-10-18 18:10:58 +01:00
Bernard Peh 943327dcb6 since we are running our own passwd reset facility, we should allow other plugins to validate the password before resetting it. 2013-10-18 12:24:06 +11:00
Mike Jolley f56edb66e4 Unused vars Closes #3937 2013-10-17 15:32:45 +01:00
Mike Jolley d27f8f4848 Wrap messages with WC div so they are styled 2013-10-17 15:29:53 +01: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
Mike Jolley b49f6fdaac Merge pull request #3940 from scottbasgaard/master
Don't be so generous with this jQuery selector. Fixes #3933
2013-10-17 04:44:09 -07:00
Mike Jolley a112cb1d7d Consistant method names Closes #3901, return doubles instead of number formatted strings. 2013-10-17 12:43:44 +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 2cd74e1acf Remove filter fix from .17 2013-10-17 10:48:41 +01:00
Mike Jolley 3ccaae0962 Revert to previous logic, but fix tax total #3924 2013-10-16 18:06:14 +01:00
Mike Jolley 35ec4c9169 Sale products 2013-10-16 17:05:27 +01:00
Mike Jolley c68e93457d #3924 2013-10-16 15:37:24 +01:00
Mike Jolley f24aaf18d0 Merge pull request #3936 from tivnet/master
get_product_subtotal() PHPDoc fix
2013-10-16 06:31:56 -07:00
Mike Jolley 5eafe2065b ake shipping methods check if taxable, so when customer is VAT excempt taxes are not included in price. Closes #3888 2013-10-16 14:31:31 +01:00
Gregory K 5f65586167 get_product_subtotal() PHPDoc fix 2013-10-16 09:29:48 -04:00
Mike Jolley 0fec16516f Merge pull request #3935 from tivnet/master
get_product_price() : PHPDoc fix
2013-10-16 06:14:50 -07:00
Mike Jolley 4cabf24422 needs_payment for 2.1 #3928 2013-10-16 14:14:15 +01:00
Gregory K 571500930f get_product_price() : PHPDoc fix 2013-10-16 08:24:46 -04:00
Mike Jolley 9acec8d970 Merge pull request #3918 from scottbasgaard/master
Make sure grouped term exists before using it as an object.
2013-10-16 02:36:35 -07:00
Mike Jolley 44f50cb6cd Code from .17 + readme 2013-10-16 10:28:24 +01:00
Lee Willis 1ab404e0e7 Fix is_order_received_page() 2013-10-15 21:59:29 +01:00
Mike Jolley 0f1a8001cf Use subtotal for free shipping, remove unused min_amount from abstract #3924 2013-10-15 17:19:30 +01:00
Scott Basgaard 380faf0f21 More PHP notice/warnings data validation
Fixes PHP Notice: Undefined offset: X
2013-10-14 21:57:56 +02:00
Scott Basgaard 714cd36428 Make sure grouped term exists before using it as an object.
Fixes Trying to get property of non-object in… PHP notice.
2013-10-14 21:47:32 +02:00
Mike Jolley 58787aa7b8 Terms fix 2013-10-14 20:20:47 +01:00
Mike Jolley dc6574b9e9 Clean the SKU, prevents variations breaking when " was saved
@coenjacobs / me for .15
2013-10-14 11:15:44 +01:00
Mike Jolley cc397a89d5 variable_product_sync should reload prices. Closes #3889 2013-10-11 15:56:13 +01:00
Mike Jolley 85e73c5e53 Typos #3908 2013-10-11 15:30:10 +01:00
Mike Jolley d67c142070 Add data-placeholder Closes #3908. 2013-10-11 15:27:04 +01:00
Mike Jolley 1b0d017bac Context in sorting order Closes #3909 2013-10-11 14:59:52 +01:00
Mike Jolley 4a2988ad35 Usage limit "per coupon". #3902 2013-10-11 13:54:53 +01:00
Mike Jolley 6fd823dabd get_children should get published products only for grouped products. Closes #3880.
@coenjacobs This should go in .15
2013-10-11 13:25:34 +01:00
Mike Jolley 708423b96f Notices/undefined vars Closes #3911. 2013-10-11 12:31:36 +01:00
Mike Jolley 80dc0416f0 Merge pull request #3907 from ragulka/estonian-translation
Add Estonian translation
2013-10-11 04:29:00 -07:00
Andrew Benbow e4d18d6f57 Update abstract-wc-payment-gateway.php
Update icon alt to use title filter
2013-10-11 10:17:23 +01:00
Mike Jolley b0f3c0336a Merge pull request #3905 from tivnet/master
Allow numeric SKUs when searching in admin
2013-10-10 10:16:46 -07:00
Mike Jolley 6646b7817b Styling and removed un-used script. #3897 2013-10-10 18:16:06 +01:00
Gregory K 02196b6c18 Allow numeric SKUs when searching in admin 2013-10-10 11:56:39 -04:00
Mike Jolley 0c53bfd842 Merge pull request #3897 from BFTrick/add-system-status-copy-and-paste
Add System Status Copy Button
2013-10-10 08:47:47 -07:00
Mike Jolley e179b2f675 Merge pull request #3896 from pronamic/fix/navMenuItems
array_search returns false when not found.
2013-10-10 08:45:36 -07:00
Mike Jolley 419b7a4e79 Merge pull request #3890 from tivnet/master
class-wc-checkout.php : PHPDoc fixes
2013-10-10 08:44:57 -07:00
Mike Jolley 8f87828a78 Merge pull request #3904 from bernardpeh/woocommerce-master
update_status function in class-wc-order.php will cause undesirable post insertion if we don't check if the order id exist
2013-10-10 08:43:34 -07:00
Mike Jolley ece95e25ce When handling variations, priority from top to bottom - disabled variations still taking into consideration allow you to exclude certain combinations when using 'all' for variations with lower priority. Message displayed if a variation is unavailable.
@coenjacobs please review
2013-10-10 16:34:44 +01:00
Bernard Peh ad298f9007 need $this->id check in the update_status function to prevent an empty WC_Order object from calling it. If $this->id doesn't exists, update_status will insert another row in wp_posts because line 1226: wp_update_post(array('ID' => $this->id)) triggers it. 2013-10-10 20:52:36 +11:00
Patrick Rauland 99fb5315eb adding system status report copy text area 2013-10-08 01:02:33 +02:00
Illimar Tambek 2536fbc5e1 Merge branch 'master' into estonian-translation 2013-10-07 20:40:20 +03:00
Leon Rowland 5b018966db array_search returns false when not found. This causes the first CSS class in the $classes array to be removed ( twice ). This was inadvertently removing some of the custom classes defined in the Menu Builder of WordPress. 2013-10-07 15:47:39 +02:00
Gregory K da19fed52b class-wc-checkout.php : PHPDoc fixes 2013-10-06 00:44:04 -04:00
Patrick Rauland f70ac9ce5a adding copy report button 2013-10-06 00:22:55 +02:00
Mike Jolley eaee8e9cf1 Merge pull request #3886 from tivnet/master
get_meta_query() - PHPDoc fix
2013-10-04 15:05:30 -07:00
Mike Jolley 40c85ec09a Merge pull request #3881 from Gator92/tax_totals
Add tax_rate_id to objects returned from cart->tax_totals
2013-10-04 15:04:05 -07:00
Gregory K 9a1c571cbc get_meta_query() - PHPDoc fix 2013-10-04 12:48:50 -04:00
Mike Jolley 9361ef3120 more hooks closes #3860 2013-10-04 16:58:00 +02:00
Mike Jolley 633ead9390 woocommerce_checkout_update_customer_meta hook Closes #3860 2013-10-04 16:40:03 +02:00
Mike Jolley adaa666c92 Merge pull request #3875 from ragulka/has-shipping-method
Add has_shipping_method() convenience function
2013-10-04 07:32:46 -07:00
Mike Jolley a490f62179 Use correct label for tax classes. Closes #3885. 2013-10-04 16:21:06 +02:00
Mike Jolley f81203fc76 Fix tax rate saving #3884 2013-10-04 16:17:18 +02:00
Mike Jolley 4204b25879 Remove accents from taxonomy names + run through filter Closes #3832 2013-10-04 16:10:49 +02:00
Mike Jolley cabddc4e9f Maintain line breaks. Closes #3882 2013-10-04 14:31:43 +02:00
Mike Jolley b7a752ecc1 find_product_in_cart tweak Closes #3863 2013-10-04 12:30:07 +01:00
Mike Jolley 1b91c75039 Tweak add to cart message. Closes #3876. 2013-10-04 12:26:11 +01:00
Mike Jolley 8f196130ff Don't show view cart message on cart page. Closes #3877 2013-10-04 12:21:28 +01:00
Schuyler Langdon 7f71fae0a3 Add tax_rate_id to the tax total objects returned from the cart tax_totals method 2013-10-03 21:48:47 -04:00
Illimar Tambek bf6cb38445 Fix has_shpping_method function 2013-10-03 18:02:26 +03:00
Illimar Tambek 7cf58f920c Add method to check whether an order has a shipping method or not 2013-10-03 17:59:08 +03:00
Mike Jolley 718093650f Save fees 2013-10-02 12:58:26 +01:00
Mike Jolley 66c04b0f72 Check values are set before casting as floats 2013-10-02 12:50:03 +01:00
Mike Jolley 47e18b1a13 Print JS after print scripts (at 20) Closes #3865. 2013-10-02 11:09:30 +01:00
Gregory K b923eef097 Allow entering sale price as blank string and not convert it to numeric '0' - to avoid "fake" sales events. 2013-10-01 23:21:12 -04:00
Mike Jolley 24a3e3e17b Format decimals with single function, convert locale to standard form. #3862 2013-10-01 17:54:32 +01:00
Mike Jolley 79bddfd129 Merge pull request #3861 from tivnet/master
class-wc-settings-shipping.php : HTML fix (missing TR and typo in TFOOT)
2013-10-01 05:23:06 -07:00
Gregory K c577e75a6b class-wc-settings-shipping.php : HTML fix (missing TR and typo in TFOOT) 2013-10-01 08:13:14 -04:00
Mike Jolley 3bedaf5e94 Number format taxes, and allow 'auto' DP (we don't want to round these values) Closes #3703 2013-10-01 13:02:58 +01:00
Mike Jolley c20a44c423 Coupon usage limits per user (using email + ID). Closes #3314 2013-10-01 11:48:27 +01:00
Mike Jolley 088f565b98 wp_list_pluck #3852 2013-10-01 10:24:29 +01:00
Mike Jolley 79942691ec Init no longer needed - settings API refreshes settings Closes #3858 2013-10-01 10:12:16 +01:00
Mike Jolley 4798cb8e27 bump_request_timeout closes #3857 2013-10-01 10:12:16 +01:00
Mike Jolley 49656cb250 Notice fix Closes #3859. 2013-10-01 10:12:15 +01:00
Manos Psychogyiopoulos c0e2e8bbdf Add price_filter results to include extended product types with a variable price 2013-09-30 15:58:12 +03:00
Illimar Tambek ad59947098 Merge branch 'master' into estonian-translation 2013-09-30 11:13:53 +03:00
Mike Jolley e66fcf5d5d Fix get_base_country Closes #3851 2013-09-27 20:31:59 +01:00
Mike Jolley b892815336 Remove html5 number inputs (unreliable at present, locale issues), add JS validation for price inputs. New price input type in settings API to make future changes easier to implement. Closes #3587
@coenjacobs hows this look?
2013-09-27 20:28:42 +01:00
Mike Jolley 9dcb70feba Increment later. Closes #3811.
@coenjacobs .15
2013-09-27 15:29:02 +01:00
Mike Jolley 43337f896c Merge pull request #3849 from franticpsyx/use_additional_transients
Add woocommerce_delete_product_transients action
2013-09-27 07:06:45 -07:00
Mike Jolley 72c00a601a Standardized, default credit card form for gateways to use if they support 'default_credit_card_form'. Closes #3616 2013-09-27 13:22:08 +01:00
Mike Jolley 82cb89a9a6 Merge pull request #3848 from BFTrick/update-product-page-css-classes
Updating Product Page CSS Classes
2013-09-27 02:50:16 -07:00
Manos Psychogyiopoulos 2b8da0ecbe Add woocommerce_delete_product_transients action 2013-09-27 12:00:42 +03:00
Mike Jolley 081bef7f6b Layered nav OR logic 2013-09-27 09:55:04 +01:00
Patrick Rauland 61b2290147 updating product page css classes 2013-09-26 22:50:49 -05:00
Mike Jolley fce70b288d We should allow failed orders to be resumed, not show a blank page. Closes #3612
@coenjacobs might need to go in 15
2013-09-26 17:18:12 +01:00
Mike Jolley 21f48bea99 Re-init settings after saving. Closes #3770. 2013-09-26 17:01:29 +01:00
Mike Jolley e3680ef670 Strict standards closes #3842 2013-09-26 16:39:10 +01:00
Mike Jolley 67b50e7eaa Sortable downloads #3812 2013-09-26 16:35:37 +01:00
Mike Jolley 85f11c682e Fix upload dir #3812 2013-09-26 16:16:05 +01:00
Mike Jolley 634adc9249 Fix subject + heading Closes #3841
@coenjacobs .15 please
2013-09-26 15:45:23 +01:00
Mike Jolley 77be2fc719 Don't need reset_postdata. Closes #3822.
.15 @coenjacobs I think
2013-09-26 15:11:28 +01:00
Mike Jolley fff92a1f6a #3846 2013-09-26 14:59:56 +01:00
Mike Jolley 5da34d5a92 Merge pull request #3840 from pelmered/master
Allows to pass in cols and rows as custom attributes for textareas in woocommerce_form_field()
2013-09-26 02:32:34 -07:00
Mike Jolley 37d8fa3cee Merge pull request #3838 from BFTrick/add-category-class-to-product-div
Adding Category & Tag Classes to Product Page
2013-09-26 02:32:04 -07:00
Manos Psychogyiopoulos 37b6f98aa0 Display extension template overrides in status reports 2013-09-26 12:02:38 +03:00
Peter Elmered c676c15990 Allows to pass in cols and rows as custom attributes for textareas in woocommerce_form_field() 2013-09-25 22:45:45 +02:00
Patrick Rauland 3b0a9f728f adding category & tag classes to product page 2013-09-25 13:04:32 -05:00
Mike Jolley ef49977905 add_to_cart_url add_to_cart_text and single_add_to_cart_text class methods allowing greater control with custom classes.
Closes #3484 and Closes #3143. Pinging @thenbrent as the handler was
originally his idea and I've killed it.

@helgatheviking In 2.1, add to cart URLs will only be used in loops, so
conditonal logic should no longer be neccessary. Single templates post
to themselves without the need for the URL.
2013-09-25 12:35:06 +01:00
Mike Jolley 479e4b5f89 Merge pull request #3827 from pmgarman/master
wp_insert_post should have true as $wp_error parameter
2013-09-25 00:02:52 -07:00
Brent Shepherd bbcc2441a4 Add new 'woocommerce_pre_payment_complete' action
And an action to fire when order status != pending|on-hold|failed
2013-09-24 19:54:04 -07:00
Patrick Garman 1292a9f51a wp_insert_post should have true as $wp_error parameter
Add `true` as $wp_error parameter for wp_insert_post, otherwise it returns zero instead of a WP_Error object and the checkout process is not stopped.

@mikejolley - the messages from WP_Error are not displayed or logged, making debugging this difficult. Maybe we should check WP_DEBUG and display the message if it is set to true? either that or actually use the logger in WooCommerce for the first time?
2013-09-24 16:08:32 -05:00
Mike Jolley 66adf51e67 Filterable get_base_postcode and _city methods used for base taxes. Closes #3810 2013-09-24 16:56:55 +01:00
Mike Jolley de9bc28b43 Prevent variable products without variations from being posted and show error in admin. Closes #3763 2013-09-24 16:37:51 +01:00
Mike Jolley b5a798c9af Fix variation saving and notices 2013-09-24 16:21:12 +01:00
Mike Jolley 51ee4ee2d8 Allow access to admin-post Closes #3814 2013-09-24 15:21:40 +01:00
Mike Jolley c58d5d5ea4 is_in_stock uses notify_no_stock_amount option. Closes #3446. 2013-09-24 13:31:15 +01:00
Mike Jolley 9a98be6a15 WOOCOMMERCE_DELIMITER constant. Closes #3476. 2013-09-24 12:24:26 +01:00
Mike Jolley a5d71a8113 Fix for submitting comments 2013-09-24 11:48:42 +01:00
Remi Corson 493f3bffe3 Added Russian Rubles to PayPal valid currencies list 2013-09-24 12:41:23 +02:00
Mike Jolley 31c34f6552 Wrong checked var 2013-09-24 10:06:41 +01:00
Illimar Tambek 64c09cabd7 Add array to woocommerce_downloadable_file_permission_format 2013-09-24 11:10:46 +03:00
Mike Jolley 7fb49c4b68 Round price adjustments. Closes #3797. 2013-09-23 16:22:25 +01:00
Mike Jolley ef1d565f55 standard should be blank. Closes #3799.
@coenjacobs .15
2013-09-23 16:16:33 +01:00
Mike Jolley 622715ec36 Option for itemized vs grouped taxes. Closes #3453. 2013-09-23 16:10:09 +01:00
Mike Jolley 06ef44c9df Pass args to variation forms from cart page. Closes #3568 2013-09-23 15:47:47 +01:00
Mike Jolley 5954619e02 Set session when removing last item. Closes #3739 2013-09-23 14:01:17 +01:00
Mike Jolley 97b1e176d2 Merge branch 'downloadable-files-2.1'
Conflicts:
	assets/css/admin.css
2013-09-23 12:44:35 +01:00
Mike Jolley 71cb94ebfa Simpler tax rate check which Closes #3813
Could do with some more testing @ChromeOrange, and applying to .15 if
ok @coen
2013-09-23 12:44:15 +01:00
Mike Jolley 96a7a4b730 Restructure 'file_paths' to allow for names (Closes #3320) etc. For #2765.
@coenjacobs @justinstern @maxrice These are major changes - CC ing you
guys in to take a quick look through. I know some extensions such as
vouchers will be affected.
2013-09-20 17:01:09 +01:00
Coen Jacobs f0fe86a8ac Merge branch 'master' of https://github.com/woothemes/woocommerce 2013-09-20 15:51:50 +02:00
Coen Jacobs e035864c8a Check for existing array before using key. Closes #3807 2013-09-20 15:51:06 +02:00
Mike Jolley b93df4e706 Excl and incl. display options for prices, and suffix to add additonal info and prices. Closes #1506. 2013-09-19 16:31:54 +01:00
Mike Jolley 4ef07f6a66 Cleanup defaults. Closes #3778 2013-09-19 15:02:17 +01:00
Mike Jolley 512f2caac4 Merge pull request #3784 from karennaylor/master
add pattern matching to local delivery postcodes
2013-09-19 06:43:53 -07:00
Mike Jolley 3ee6e2fa22 Validate rules, instead of doing it by key. Closes #3792. 2013-09-19 14:39:53 +01:00
Mike Jolley 87d7fce7c3 Merge pull request #3800 from BFTrick/tweak-new-order-email-copy
Tweaking New Order Email Description
2013-09-19 04:35:07 -07:00
thenbrent fb548d145e Fix logic on coupon check 2013-09-18 17:02:56 -07:00
thenbrent 13e337b82d Fix coupon checks in cart 2013-09-18 16:49:29 -07:00
Patrick Rauland 885a95b21d *sigh* forgot a period in the new order description 2013-09-18 14:23:14 -05:00
Patrick Rauland af8919f1de tweaking new order email description 2013-09-18 14:18:40 -05:00
Dominic d06a15ea72 Add a template for view order shortcode
Instead of hard coding the HTML into the shortcode definition.
2013-09-16 14:57:10 -07:00
Mike Jolley 23c59a4d08 Merge pull request #3783 from greguly/patch-1
Fixes blank page error
2013-09-16 04:48:06 -07:00
Mike Jolley b377217d1b Compat with brands - filters should be prepended with filter_
@coenjacobs can this be applied to .15?
2013-09-16 12:43:16 +01:00
Karen Naylor 5c40d863e1 add pattern matching to local delivery postcodes 2013-09-14 16:08:17 +01:00
Gabriel Reguly a5f2b01219 Fixes blank page error
Fix to avoid blank page error, apparently prevents a memory exausted condition.

Error source: 
http://wordpress.org/support/topic/blank-page-after-return-form-cielo-buypage?replies=15

Some info:
http://stackoverflow.com/questions/8379829/domdocument-php-memory-leak

Another people using the same code: http://nathanstaines.com/articles/wordpress-word-count/

Cheers,
Gabriel
2013-09-14 00:42:03 -03:00
Mike Jolley edbe9b5fa2 Redirect to myaccount. Closes #3740
@coenjacobs .15
2013-09-13 16:37:26 +01:00
Mike Jolley 5f741819b9 Merge pull request #3757 from ragulka/address-hooks
Allow using custom address types
2013-09-13 08:03:55 -07:00
Mike Jolley 5b2ed3f243 Fix search_post_excerpt when quotes are searched. Closes #3767
@coenjacobs for .15 too
2013-09-13 15:14:19 +01:00
Mike Jolley f0d255ac9c Remove private methods from session handler. Closes #3759 2013-09-13 13:39:46 +01:00
Mike Jolley 759e74c860 Safari doesn't support the 'download' attribute. At least get it to open. Closes #3754 2013-09-13 13:38:36 +01:00
Mike Jolley 9f323af118 Fix paging total closes #3774 2013-09-13 12:28:20 +01:00
Mike Jolley 34478b3faf Merge pull request #3756 from ragulka/download-hooks
Add product download access grant/revoke hooks.
2013-09-13 04:20:56 -07:00
Mike Jolley e90efe1c28 Merge pull request #3776 from crazyscience/patch-1
Removed 'widget_text' from array of force_ssl filtered objects.
2013-09-13 04:11:11 -07:00
Mike Jolley 7cf3c67c76 Wrapper for wp_get_post_terms to handle parent sorting. Closes #3762. Closes #3758
@coenjacobs for .15
2013-09-13 12:07:58 +01:00
Mike Jolley 9e30ebbaa9 Merge pull request #3741 from ragulka/security-improvements
Frontend security improvements
2013-09-13 03:33:09 -07:00
Mike Jolley 7e01086ad3 Merge pull request #3679 from dimitrov-adrian/patch-6
Adding support for percentage factor of additional costs.
2013-09-13 03:20:17 -07:00
Mike Jolley 519c24a540 Merge pull request #3653 from pixeltrix/add-email-style-inline-filters
Add hooks for overriding default email inline styles
2013-09-13 03:15:55 -07:00
crazyscience feaf8ed0cb Removed 'widget_text' from array of force_ssl filtered objects.
Forcing SSL for all content in the text widget prevents adding links third party sites that do not support SSL. (ie. Partner sites). Furthermore, it's the assumed responsibility of the individual entering HTML into the text widget to ensure site security when referencing to outside sites.
2013-09-12 10:34:48 -07:00
Mike Jolley 7d20a51beb Moved template part functions to core functions Closes #3715 2013-09-12 14:42:57 +01:00
Mike Jolley 355dd16962 Removed @coenjacobs helpers and cleaned up main clas 2013-09-12 14:41:02 +01:00
Illimar Tambek 41296943a6 Add woocommerce_checkout_get_value filter. 2013-09-10 17:23:26 +03:00
Illimar Tambek b794d183b1 Remove trailing leftover bracket 2013-09-10 17:08:20 +03:00
Illimar Tambek e4147bf1b7 Fix missing question mark 2013-09-10 16:35:34 +03:00
Illimar Tambek d6ba711f56 Allow saving custom address types. Add address type to woocommerce_customer_save_address action 2013-09-10 16:31:13 +03:00
Illimar Tambek e285042012 Allow editing custom address types 2013-09-10 16:04:07 +03:00
Illimar Tambek 3edc3dea29 Add estonian address format 2013-09-10 15:41:40 +03:00
Illimar Tambek c9a6907fc6 Add woocommerce_my_account_get_addrresses filter and allow getting custom address type fields. 2013-09-10 15:39:23 +03:00
Illimar Tambek f138007f1a Add product download access grant/revoke hooks. 2013-09-10 14:26:31 +03:00
Mike Jolley c501b1b59a Remove taxes from cart with a zero-rate. 2013-09-10 11:04:29 +01:00
Mike Jolley 85175ec849 Merge pull request #3744 from BFTrick/fix-escaping-date
Fixing Unescaped Character in Date Function
2013-09-09 09:16:54 -07:00
Mike Jolley b6e7eeb241 Support no default and make the gateway/shipping tables more streamlined. Closes #3472 2013-09-09 17:16:02 +01:00
Coen Jacobs c04ce23716 Revert "View logs from System Status"
This reverts commit e70cf686f5.
2013-09-09 13:20:22 +02:00
Andrew Benbow e70cf686f5 View logs from System Status 2013-09-08 21:06:23 +01:00
Andrew Benbow 7012c9e4fd Update html-admin-page-status-report.php
Add update notification if theme is a WooTheme
2013-09-08 03:26:26 +01:00
Patrick Rauland b6fa3e913b fixing unescaped character in date function 2013-09-06 15:35:21 -05:00
Illimar Tambek 8e942c2e9e Fix missing semicolon 2013-09-06 22:06:26 +03:00
Illimar Tambek 3c22c486f8 Add download_file capability and security check 2013-09-06 19:38:06 +03:00
Illimar Tambek 0a7137e747 Use default priority for user_has_cap filter 2013-09-06 17:53:25 +03:00
Illimar Tambek 7ec8a687f6 Check if user is allowed to cancel and order an order again. Use current_user_can() checks instead of hardcoded user_id comparisons to determine if user can view, pay, order again or cancel an order. 2013-09-06 17:39:45 +03:00
Illimar Tambek e432f72ae9 Filter user_has_cap with woocommerce_customer_has_capability 2013-09-06 17:37:38 +03:00
Mike Jolley 3c8c620c5d Bulk/quick edit backorders Closes #3729 2013-09-06 11:17:41 +01:00
Luke Stevenson fcfdee8ec7 Added "Demo Store" Class to Body
Adding "woocommerce-demo-store" class to body when option
"woocommerce_demo_store" is enabled.
(Handy to push down content to allow for banner, etc.)
2013-09-06 02:13:57 +10:00
Mike Jolley b883e92ba1 Fix from .14 2013-09-05 14:52:34 +01:00
Mike Jolley 4cf8e9ebde Remove echo 2013-09-04 18:13:09 +01:00
Mike Jolley 0405fabf69 Alt changes from .14 2013-09-04 17:22:35 +01:00
Mike Jolley ffa53754ac get_categories returns string Closes #3720 2013-09-04 14:57:12 +01:00
Mike Jolley 02af8a00a5 woocommerce_address_to_edit #3690 2013-09-04 14:57:12 +01:00
Mike Jolley aef58e8bf3 Merge pull request #3697 from BFTrick/fix-email-html-encoding
Removing HTML Decoding From Email From Name
2013-09-04 06:50:20 -07:00
Mike Jolley 402544afdb Merge pull request #3724 from corsonr/master
Added woocommerce_get_featured_product_ids() to get featured products IDs
2013-09-04 06:49:57 -07:00
Mike Jolley 14e27bb073 Fixes from .14 2013-09-04 14:32:16 +01:00
Remi Corson dcf34ed51b Merge branch 'master' of https://github.com/woothemes/woocommerce 2013-09-04 15:17:21 +02:00
Patrick Rauland 793303d2ad adding esc_html back in to properly escape html from email from name 2013-09-04 07:24:01 -05:00
Mike Jolley e1631bd084 Reloads checkout after registration which fixes #3612, removes some notices preventing login cookie being set, moves cart check for #3162
No perfect solution for #3162. DB locking would probably cause more
issues that its worth, we cannot reliably use transactions as some
clients still use MyIsam. Best to accept orders and deal with stock
conflicts after the fact.
2013-09-04 11:26:19 +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
Patrick Rauland 80fc4ab0a7 allowing quotes in store name 2013-09-03 17:11:03 -05:00
Mike Jolley 5e51ef1fce Refactor variation bulk edit JS Fixes #3148 2013-09-03 17:35:20 +01:00
Mike Jolley b797cdb672 Handle local pickup taxes when getting taxable address 2013-09-03 16:26:06 +01:00
Coen Jacobs 6c3cd27be7 Allow false values to hide desc_tip. Closes #3691 2013-09-03 17:22:59 +02:00
Mike Jolley 9472646609 Customisable query vars. #3708 2013-09-03 16:14:56 +01:00
Mike Jolley 75f9dfabc6 Remove round for percent discounts. Closes #3717 2013-09-03 13:45:38 +01:00
Mike Jolley 807534095e Introduce WC_HTTPS Helper to handle redirects and make checkout urls https before visiting them. Fixes #3311 2013-09-03 13:03:05 +01:00
Mike Jolley 7179900b75 Send tax inclusive, rounded item price to google. Fixes #3718
@coenjacobs .14?
2013-09-03 11:19:49 +01:00
Mike Jolley d7a68b68f2 Merge pull request #3696 from BFTrick/product-tabs-clean-input
Making Sure the User Doesn't Submit Garbage to woocommerce_sort_product_tabs Function
2013-09-02 09:45:25 -07:00
Mike Jolley 54b3d53a1b Flag a refresh when creating an account to prevent nonce issues. Fixes #3612.
@coenjacobs Might be for .14? Part of it anyway, can't cherry pick this
one.
2013-09-02 17:43:57 +01:00
Mike Jolley d1b020b661 Add a script to add support for RTL when enabled to fix chosen. Fixes #3604
@coenjacobs maybe for .14?
2013-09-02 14:22:53 +01:00
Brent Shepherd f9a42a497d Pass instance of WC_Order to its filters
So that extensions hooking to the filters know which order the current
filter is being applied to and can perform customisation on specific
orders (not just all orders).

Conflicts:
	includes/class-wc-order.php
2013-09-02 14:31:11 +02:00
Patrick Rauland fe4b13d36d removing html decoding from email from name 2013-08-27 12:23:42 -05:00
Patrick Rauland c074d64096 making sure the user doesn't submit garbage to woocommerce_sort_product_tabs 2013-08-27 10:40:21 -05:00
Coen Jacobs 9ba80fb34b Check for strlen to allow 0 values in attributes. Closes #3675
Conflicts:
	admin/post-types/writepanels/writepanel-product_data.php
2013-08-26 12:24:25 +02:00
Adrian Dimitrov a44ec58746 Adding support for percentage factor of additional costs. 2013-08-25 14:59:58 +03:00
Mike Jolley 64d87cbef7 Make logout an endpoint. Still hide it from menus. Fixes #3589
@coenjacobs do we need to do something about this for .14? Will leave
for you next week :)
2013-08-23 16:41:02 +01:00
Mike Jolley 5289193021 Echo or return current page title. Closes #3660 2013-08-23 14:54:38 +01:00
Mike Jolley 27053e1abd escaping 2013-08-22 17:20:28 +01:00
Mike Jolley 6902aa852c Fix fatal error when sending order mail 2013-08-22 12:25:32 +01:00
Mike Jolley 27f844b274 Key value pairs for order_meta 2013-08-22 12:25:17 +01:00
Mike Jolley 126068de8c Moved options around for checkout settings. 2013-08-22 12:11:19 +01:00
Mike Jolley 3d078397b3 Merge branch 'Re-organise-settings'
Moves settings together. Fixes #3497
2013-08-22 11:58:03 +01:00
Mike Jolley 4c06169c8d Merge pull request #3656 from dimitrov-adrian/patch-2
Adding BGN currency and currency symbol.
2013-08-21 14:03:31 -07:00
Patrick Rauland fa6814c03d adding Vietnamese dong currency 2013-08-21 12:24:51 -05:00
Adrian Dimitrov c8fe103cd0 Adding BGN currency and currency symbol. 2013-08-21 10:29:44 +03:00
Andrew White e05e970d6a Add hooks for overriding default email inline styles
Currently any h1, h2, h3, a and img tags in a HTML email without a
style attribute will have a default inline style applied to them.
These styles are hard-coded and cannot currently overridden without
patching the source code.

This commit adds two filter hooks that allows the theme developer to
override both the list of tags that have a default style applied to
them and the default styles applied to each tag. The hooks are:

1. woocommerce_email_style_inline_tags
This filter hook returns an array of tags which will have a default
style applied to them - you can both remove and add any tags which
you need for your theme's custom emails.

2. woocommerce_email_style_inline_{name}_tag
This filter is called for every tag name returned by the filter hook
woocommerce_email_style_inline_tags. The styles are passed as an
associative array so you can both add and remove any of the default
styles applied by WooCommerce.

Fixes #3597.
2013-08-20 23:33:26 +01:00
Mike Jolley 5f2e489944 simpler woocommerce_get_product_schema function.
Closes #3297.
2013-08-20 13:52:06 +01:00
Mike Jolley aa470ad390 refactor args for woocommerce_product_dropdown_categories
Closes #3218
2013-08-20 13:32:38 +01:00
Mike Jolley 40a1cb446e Tweak label Closes #3515 2013-08-20 12:57:43 +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 2e6aaa9ede Hide password protected posts from loop, prevent adding to cart, hide product content. Closes #3617. 2013-08-19 18:19:27 +01:00
Mike Jolley 44b9c72651 Improve cart update performance. Closes #3495. 2013-08-19 15:19:51 +01:00
James Koster 55eef35e36 shortcode columns. closes #3534 2013-08-19 15:12:20 +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 3aac277d52 Add shipping fields to search Closes #3603 2013-08-19 13:37:38 +01:00
Mike Jolley 3a4b83cffe Fix encoding in layered nav. Fixes #3600
@coenjacobs for .14
2013-08-19 13:12:49 +01:00
Mike Jolley 0b8dd0476c PayPal PDT handler Closes #3414 2013-08-19 12:28:29 +01:00
Mike Jolley 759e49a60b Correctly format product names in paypal. Fixes #3308.
@coenjacobs for .14 please
2013-08-19 11:44:41 +01:00
Mike Jolley 03e3e6e9ca Load thumbnails Fixes #3581
@coenjacobs this needs applying to .14
2013-08-17 02:01:54 +01:00
Mike Jolley 061283f675 Hookable default checkbox status Closes #3595 2013-08-17 01:55:05 +01:00
Mike Jolley 9a7580ff1e dumps 2013-08-17 01:44:56 +01:00
Mike Jolley fe8a81110b Merge pull request #3634 from BFTrick/set-default-shipping-rates
Setting Default Shipping Rates for Flat Rate Shipping
2013-08-16 17:39:25 -07:00
Mike Jolley df52bfd0ad #3630. Closes #3425. 2013-08-17 01:19:56 +01:00
Mike Jolley 9c55bb2b10 Accept multiple filters Closes #3572 2013-08-17 01:09:22 +01:00
Mike Jolley 66ba2c83ed Merge pull request #3637 from thenbrent/master
Add default timezone section to System Status
2013-08-16 09:25:50 -07:00
Mike Jolley 49aaa9a773 Merge pull request #3643 from sjeden/patch-1
Remove need for min-width:150px; in shipping setting admin panel.
2013-08-16 09:24:58 -07:00
Coen Jacobs 5ebc15cafb Merge branch 'Dynamic-total-rows'
Conflicts:
	assets/css/admin.css
2013-08-16 18:21:52 +02:00
Mike Jolley 2428c9f268 Expand when calculating totals 2013-08-16 17:00:49 +01:00
Mike Jolley a66472d148 Order panel improvements + save multiple shipping methods 2013-08-16 16:43:26 +01:00
sjeden 0617d6e7f0 Remove need for min-width:150px; in shipping setting admin panel.
Doesn't affect the standard WordPress display but if you are using MP6 makes extended width radio buttons.
2013-08-16 12:12:47 +01:00
Mike Jolley cd81c29195 Tweak help strings 2013-08-15 16:59:03 +01:00
Mike Jolley 7cd4e46846 Cleaner orders items, and show meta in text until editing.
@coenjacobs this commit has the urldecode fix. Will move it over to
master/.14 later
2013-08-15 16:49:09 +01:00
Patrick Rauland 2f6d907b13 adding exact time to order notes 2013-08-15 08:42:08 -05:00
Mike Jolley 281ed667cf Handle paypal cancelled reversals 2013-08-15 11:19:30 +01:00
Coen Jacobs 62a9200386 Made methods static that were referenced from static 2013-08-15 11:23:52 +02:00
Coen Jacobs 423522f05a Made methods static that were referenced from static 2013-08-15 09:22:38 +00:00
Mike Jolley e01df544ec Reworked total templates to support coupon lines, and started support for multiple shipping methods per order.
@todo store shipping methods in the order
@todo test with PP shipping real world

cc @coe
2013-08-14 21:00:34 +01:00
thenbrent 3dcf4de538 Add default timezone section to System Status 2013-08-14 11:21:49 -07:00
Patrick Rauland 69f45fb39b setting default shipping rates 2013-08-14 10:42:43 -05:00
Mike Jolley 9ce810fdcf Needs shipping filter 2013-08-14 10:53:08 +01:00
Mike Jolley 5c07464fd0 To prevent pebkac Closes #3628 2013-08-13 17:26:21 +01:00
Mike Jolley 64e1b091a0 Add a dedicated hook for adding fees. Closes #3611. Fixes #3352
@coenjacobs we might want this in .14 for some extensions in audit.
2013-08-13 17:19:20 +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 8db53a8d9d esc_attr Fixes #3451 2013-08-13 14:55:02 +01:00
Mike Jolley 131f692855 Tweak download handler Closes #3394. 2013-08-13 14:53:55 +01:00
Mike Jolley 6dae4bcc0d Merge pull request #3627 from Geczy/master
Filter on the shortcode products query
2013-08-13 06:14:56 -07:00
Mike Jolley 2b31cdb360 Cart item data templates Closes #3216. 2013-08-13 14:14:24 +01:00
Mike Jolley aa3601f517 Remove white space. Closes #3499. 2013-08-13 13:17:32 +01:00
Mike Jolley b12d5a7377 Optimise sale query. Closes #3264. 2013-08-13 13:14:32 +01:00
Matt 776f1eb7db Filter on the shortcode products query 2013-08-13 08:08:41 -04:00
Mike Jolley 0ff59bcd5b remove deprecated function. Closes #3582. 2013-08-13 13:02:20 +01:00
Mike Jolley 48c9d25ea5 Merge pull request #3619 from dominic-p/filter-logon-creds
Filter Request: Login Credentials
2013-08-13 04:47:09 -07:00
Mike Jolley d015432b9c Merge pull request #3624 from BFTrick/remove-whitespace-in-shipping-classes
Remove Spaces in Favor of Tabs in Shipping Classes
2013-08-13 04:46:07 -07:00
Mike Jolley 7fda2bd832 Search for US/UK on country field. Fixes #3626. 2013-08-13 12:38:26 +01:00
Mike Jolley b62747a810 Tax rates pagination. Closes #3036. 2013-08-13 12:18:24 +01:00
Patrick Rauland 4d4645eee4 remove spaces in favor of tabs in shipping classes 2013-08-12 16:09:04 -05:00
Dominic cfbbaa4b5e Filter Request: Login Credentials
I'm trying to add a "remember me" option to my login form. WordPress
supports this, but it's hardcoded to always on in the WC form handler.
Since you can't tell a difference in PHP between an unchecked checkbox
and no checkbox at all, this seems like the simplest alternative that
maintains backwards compatibility. Thanks.
2013-08-10 12:31:17 -07:00
Mike Jolley 57157db9bf Function refactoring. 2013-08-09 17:11:21 +01:00
thenbrent 64832114ee Replace deprecated $wpdb::escape() with esc_sql()
Conflicts:
	admin/settings/settings-tax-rates.php
2013-08-09 14:56:39 +02:00
Mike Jolley 14a66489f7 Croatia is EU Fixes #3615.
@coenjacobs .14
2013-08-09 11:11:53 +01:00
Mike Jolley ff79e99f70 Merge pull request #3594 from markoheijnen/Fix-php5.5
Move return class after class definition. Fixes PHP 5.5 fatal errors.
2013-08-09 03:09:12 -07:00
Mike Jolley 5ead65e118 Merge pull request #3606 from ragulka/bulk-edit-field-type
Change quick/bulk edit stock quantity field type to number
2013-08-09 02:59:30 -07:00
Mike Jolley 6bc0a1cef7 Merge pull request #3607 from ragulka/product-quick-edit-hooks
Add product quick edit start & end action hooks
2013-08-09 02:59:05 -07:00
Mike Jolley d74122251c Merge pull request #3602 from BFTrick/add-lang-to-system-status
Adding WPLANG to System Status
2013-08-09 02:58:15 -07:00
Mike Jolley 918e30d0e6 compare to lowercase class name 2013-08-08 12:38:26 +01:00
Mike Jolley 46940db5aa Typecast array 2013-08-08 12:38:26 +01:00
Mike Jolley 7b70d1ed86 Sortable is needed for admin scripts 2013-08-08 12:38:26 +01:00
Mike Jolley e29c67b6bc Update user meta for billing fields 2013-08-08 12:38:26 +01:00
Illimar Tambek 3d9ec9acd4 Add woocommerce_product_quick_edit_start and woocommerce_product_quick_edit_end hooks 2013-08-08 10:46:46 +03:00
Illimar Tambek df469b1473 Change product quick edit stock quantity field type to number 2013-08-08 09:24:38 +03:00
Illimar Tambek 372fd1137d Change bulk edit stock quantity field type to number 2013-08-08 09:21:20 +03:00
Patrick Rauland a4886a5ae4 adding WPLANG to system status 2013-08-07 16:05:09 -05:00
Coen Jacobs 5a1cc2362e Strict notice fix for get_price_html implementation 2013-08-07 14:38:31 +00:00
Coen Jacobs 930cd6125f Make sure end( gets a variable to work around strict notices 2013-08-07 14:15:53 +00:00
Marko Heijnen 390b3bc577 Move return class after class definition. Fixes PHP 5.5 fatal errors. 2013-08-06 19:04:10 +02:00
Mike Jolley d77bac9330 Removed hooks and functions from admin. 2013-08-06 16:56:15 +01:00
Mike Jolley 62261daa86 Remove old extension prompt 2013-08-06 14:04:40 +01:00
Mike Jolley fa7c1d9a6a Addons page Closes #3331 2013-08-06 14:04:40 +01:00
Coen Jacobs 54fceb7d99 Use version_compare to check for required jQuery. Closes #3567 2013-08-06 13:27:36 +02:00
Mike Jolley 5d497fdcc3 Merge pull request #3576 from rnt/master
Fixing warnings with 'strict standarts' and file permission
2013-08-06 03:49:19 -07:00
Mike Jolley be202c3ced Merge pull request #3591 from Gator92/tax_rate_foreign_key
Adds an index to the foreign key in table woocommerce_tax_rate_locations
2013-08-06 03:47:38 -07:00
Mike Jolley f09fafe738 Meta box refactor
Closes #3458.
2013-08-06 11:41:20 +01:00
Schuyler Langdon b4c2149428 Adds an index to the foreign key in table woocommerce_tax_rate_locations 2013-08-06 00:18:41 -04:00
Mike Jolley 110d8c3026 BACS, Cheque, COD Closes #3172
Rather than merging them (they are all different) I've refactered code
and added multiple accounts in BACS which has had multiple requests.
2013-08-05 16:34:54 +01:00
Mike Jolley 7ad7f31e3b Remove last pipe 2013-08-05 16:34:54 +01:00
Mike Jolley 7c7e0ec9f4 Strict warnings
@coenjacobs for .14 I think
2013-08-05 12:27:30 +01:00
Renato Covarrubias a63a77e414 Fix warning if is null 2013-08-03 23:59:26 -04:00
Mike Jolley 03af136986 Separate ship to options from sell to. Closes #3215. 2013-08-02 16:54:28 +01:00
Mike Jolley 4456b7ccf1 Syntax error in shop order class 2013-08-02 12:56:49 +01:00
Mike Jolley 7dee74ba9e Show settings only when needed #3165 2013-08-02 12:27:31 +01:00
Mike Jolley 54fa720768 Filter styles and add cleaner backwards compat. Closes #3165 2013-08-02 12:06:32 +01:00
Mike Jolley 8cf74a5250 Add separate instruction fields for BACS and CHEQUE (like COD) Closes #3291. 2013-08-02 11:40:40 +01:00
Mike Jolley 223f862750 Tweak email inclusion 2013-08-02 11:18:05 +01:00
Mike Jolley d0fd42ab1a US Spelling of fulfil Closes #3570. 2013-08-02 11:18:05 +01:00
Mike Jolley e9a168c2ee Merge pull request #3564 from ragulka/stock-action-hooks
Add stock set, increase and reduce action hooks
2013-08-02 03:11:05 -07:00
Mike Jolley daae3e6f97 Merge pull request #3566 from LeGaS/master
Enable states for Hungary
2013-08-02 03:09:30 -07:00
thenbrent 3ce6f3012d Set default $product_id on variable_product_sync() 2013-08-01 17:54:24 -07:00
thenbrent 825587da6a Backward compatible variable_product_sync()
Adds new static sync() method to WC_Product_Variable and restores
variable_product_sync() to its former, non-static glory. Also makes
the $product_id param optional on variable_product_sync() to avoid
breaking backward compatibility.
2013-08-01 17:35:54 -07:00
Legradi Szabolcs 89a3732a03 Fix state label for Hungary 2013-08-01 16:58:48 +02:00
Legradi Szabolcs 0b92287bd4 Enable states in Hungary
The states file for Hungary is in the project for some time now, this
commit enables the use of it.
2013-08-01 16:43:00 +02:00
Illimar Tambek 27ed699ea7 Prefix stock hooks with product_ 2013-08-01 15:09:15 +03:00
Illimar Tambek 40ee077624 Add woocommerce_set_stock, woocommerce_increase_stock and woocommerce_reduce_stock action hooks 2013-08-01 15:06:26 +03:00
Mike Jolley 23cad7cec2 First day of month report fixes. 2013-07-31 17:47:38 +01:00
Mike Jolley 981575491d Review order columns Closes #2798. 2013-07-31 15:12:53 +01:00
Patrick Rauland 012e6fe2f9 linking plugin name to the plugin url in system status 2013-07-30 21:31:19 -05:00
Mike Jolley 1b9562ca3b operator option. Closes #3528 2013-07-30 15:03:39 +01:00
Mike Jolley f7cba5948b Filter woocommerce_checkout_customer_id Closes #3491 2013-07-30 14:50:53 +01:00
Mike Jolley 12d705c9c4 Bulk and quick edit tax status/class. Closes #3530. 2013-07-30 14:43:45 +01:00
Mike Jolley 596f4d1a23 More login hooks Closes #3543. 2013-07-30 13:38:45 +01:00
Mike Jolley 55150a08d8 Notices 2013-07-30 13:03:18 +01:00
Mike Jolley fd4b16f30e Correctly sanitize password. Closes #3553. 2013-07-30 13:03:08 +01:00
Mike Jolley bf5716af3c If admin user is logged in, link them to order notes. Closes #3433. 2013-07-30 12:35:18 +01:00
Mike Jolley 63b203955b Fix syncing and make variable_product_sync static for admin use. Closes #3450 2013-07-30 12:15:09 +01:00
Mike Jolley b2e3df20e3 Remove trashed and non-existant products from the cart. Closes #3457. 2013-07-30 11:51:50 +01:00
Mike Jolley 9b512df0c0 Bulk edit mark on hold Closes #3496. 2013-07-30 11:35:07 +01:00
Mike Jolley 51c1af2f34 Pass item + id to order_line_item hook Closes #3518. 2013-07-30 11:29:06 +01:00
Mike Jolley 22bd515fbd Customer invoice does not need toggle. Closes #3459. 2013-07-30 11:24:25 +01:00
Mike Jolley c9b7a46c7b Correct string to times and ranges. Closes #3540 2013-07-30 11:12:48 +01:00
Mike Jolley f7d2531ec1 Check attribute values are posted. 2013-07-30 11:12:48 +01:00
Mike Jolley 97f5ee7433 Merge pull request #3533 from kloon/master
Google Analytics, Add to cart event uniformity for shop and single.
2013-07-27 11:36:31 -07:00
Kathy Darling f743018ea1 add action woocommerce_variable_product_sync to variable sync 2013-07-26 11:59:34 -04:00
Kathy Darling 1a0d17c29d Merge branch 'master' of git://github.com/woothemes/woocommerce 2013-07-26 11:57:17 -04:00
Mike Jolley 9462dde581 Settings refactoring 2013-07-26 15:36:28 +01:00
Kathy Darling bdcb4cf169 add woocommerce_get_variation_price_html filter 2013-07-26 09:47:23 -04:00
Gerhard 9954c87fa6 Google Analytics, Add to cart event uniformity for shop and single. 2013-07-26 09:10:12 +02:00
Mike Jolley e7bd988470 Admin taxonomies 2013-07-25 17:51:28 +01:00
Mike Jolley cd50b328a2 Install and update functions 2013-07-25 16:29:25 +01:00
Mike Jolley 8f04446a61 Dashboard. Closes #3493 2013-07-25 15:00:23 +01:00
Mike Jolley ff0fc4fa31 Check function returns a product. #3526 2013-07-24 21:24:58 +01:00
Mike Jolley 41c27b19ad deprecated 2013-07-24 21:24:58 +01:00
Mike Jolley f67f48558c Merge pull request #3523 from themesquad/master
Fixed "Strict Standards" warning on the process_payment() declaration.
2013-07-24 12:04:26 -07:00
Mike Jolley 728b1bf244 Some more admin class conversions 2013-07-24 19:55:02 +01:00
Mike Jolley 8a6ff89bf1 Moved admin directory and moved some functions to classes (ongoing refactor) 2013-07-24 17:01:36 +01:00
Juan Jose Gonzalez Alanis 1339426164 Fixed "Strict Standards" warning on the process_payment() declaration of the WP_Payment_Gateway class. 2013-07-24 13:24:52 +02:00
Mike Jolley 815a5e6ff4 PayPal buttonsource 2013-07-23 17:21:24 +01:00
Mike Jolley 725cb7714b More endpoints for myaccount pages, and endpoint options so they can be modified. Closes #3170. 2013-07-23 17:05:01 +01:00
Mike Jolley 805a9e617c Use get_price and introduce get_regular and get_sale_price methods. Closes #3427 2013-07-23 11:29:04 +01:00
Mike Jolley 81f188b4ca PayPal authorization feature 2013-07-23 10:18:58 +01:00
Mike Jolley d51083167a Sandbox off by default 2013-07-22 13:41:59 +01:00
Mike Jolley 19674a3d15 Allow autofill and use 'input' event to detect changes. Closes #3503 2013-07-21 10:38:22 +01:00
Mike Jolley 0b848b8f37 AE no postcodes. Closes #3492. 2013-07-19 15:08:40 +01:00
Mike Jolley 857ed79924 fallback for bad calls to the post_class filter. Closes #3463 2013-07-19 14:28:04 +01:00
Mike Jolley b01bf72bfe Improve messages. Closes #3370. 2013-07-19 13:30:27 +01:00
Mike Jolley 12d6569cc1 Readme + versions 2013-07-19 11:09:19 +01:00
Mike Jolley 7ccac3a260 Clean inputs posted on the shipping form 2013-07-19 07:58:50 +01:00
Mike Jolley a5aa58b135 Allow iframe html to be input for sharethis. Closes #3254. 2013-07-19 07:54:51 +01:00
Mike Jolley 34c90813bd Price filter widget: preserve orderby Closes #3307. 2013-07-19 07:11:41 +01:00
Mike Jolley 7b2c232b9c Prevent flat rate rows with no class set from saving. Closes #3312. 2013-07-19 07:08:13 +01:00
Mike Jolley 2c8e598371 Fix paypal phone mask (whitespace) Closes #3328. 2013-07-19 07:00:38 +01:00
Mike Jolley 0ef33da03c Make account password 'required' when needed. Closes #3313. 2013-07-19 06:58:45 +01:00
Mike Jolley f295a5d568 Merge branch 'Charts/Reports' Closes #3281 2013-07-18 14:08:27 +01:00
Mike Jolley d30c1ef1e4 'httpversion' => '1.1' possibly needed for paypal - testing 2013-07-17 14:29:42 +01:00
Mike Jolley 18a448ff77 Tweaked popularity sorting to work better when no sales are present. 2013-07-17 11:21:52 +01:00
Mike Jolley bf73fd3c8e Merge pull request #3411 from jprieton/patch-1
Hint on documentation of function get_product()
2013-07-15 09:17:41 -07:00
Mike Jolley 3a1ca6789c Merge pull request #3438 from BFTrick/patch-add-product-meta
Add Product Meta Data to Post Class
2013-07-15 09:16:02 -07:00
Mike Jolley fd887c52f1 Merge pull request #3478 from henrikgregersen/master
(#3477) Initialize address formats to the stores locale, instead of use a default.
2013-07-15 09:11:03 -07:00
Mike Jolley 8ac12ae40c Merge pull request #3479 from shoheitanaka/master
Japanese Localization
2013-07-15 09:09:58 -07:00
Shohei Tanaka 7436e37aec Japanese Localization
I made Japanese localization files.
2013-07-15 17:22:48 +09:00
Henrik Gregersen a0105bb043 Initialize to store address format (#3477)
If the user has not entered an address yet, then the address fields will be displayed in a default order, because the $country will be empty. To fix this and initialize address formats to the stores locale, the $country variable is set to the base_country if it has no value
2013-07-15 01:25:12 +02:00
James Koster fa786a1173 typo 2013-07-08 09:48:48 +01:00
Patrick Rauland e6f7f5b16f adding product meta data to post class 2013-07-05 10:46:52 -05:00
jprieton 59d43a25f7 Update proposal hint on documentation of function get_product()
Update proposal hint on documentation of function `WC_Product_Factory::get_product()` from `void` to an generic `WC_Product`
2013-07-01 17:18:07 -04:30
Coen Jacobs 9bcf44106c Also apply #3405 to master branch 2013-06-28 13:10:44 +02:00
Mike Jolley 06bf190599 public false for taxonomies. Closes #3373. 2013-06-28 11:17:56 +01:00
Mike Jolley a9569ccd6f Only allow those who can edit the post to add drafts to cart. For testing. Closes #3381 2013-06-28 11:14:21 +01:00
Mike Jolley e6db7d2c0c Set session after removing item. Closes #3382. 2013-06-28 11:03:12 +01:00
Mike Jolley e296c9d538 woocommerce_new_order_note_data Closes #3379 2013-06-28 10:50:05 +01:00
Mike Jolley 5be00f2d32 Drop ucwords Closes #3369. 2013-06-28 10:30:32 +01:00
Mike Jolley d0b6483037 Dump coupon helper and add new functions. Closes #3353. 2013-06-28 10:23:20 +01:00
Mike Jolley 9f5f81c1aa cat-parent without extra query. Closes #3355. 2013-06-28 10:07:18 +01:00
Mike Jolley f8f3f8a660 Fix sale expiration for variations. Closes #3321.
@coenjacobs might be useful for .13
2013-06-28 09:58:07 +01:00
Coen Jacobs a55556332c Extra escaping on layered nav href to prevent injection 2013-06-26 11:44:35 +02:00
Mike Jolley d7cfe05daf More charts work 2013-06-24 17:47:28 +01:00
Mike Jolley 9d37e5bf92 Stripslashes 2013-06-22 11:43:57 +01:00
Mike Jolley 0e29b31fcb Work on charts/reports 2013-06-22 11:37:59 +01:00
Mike Jolley fc104fc84b Post types need to exist first 2013-06-20 12:05:11 +01:00
Mike Jolley 1ff10d6ccf Enable for all taxonomies 2013-06-20 12:05:11 +01:00
Mike Jolley 3b5d8b7d41 Futher standardisation of cart and order loops. Closes #3348. 2013-06-17 12:21:24 +01:00
Mike Jolley 1e94bbc990 Review nonce. Closes #3324. 2013-06-14 16:15:26 +01:00
Mike Jolley 2db3d24a82 Enforce session as array data, and settings api tweak for special chars. Closes #3135. 2013-06-14 14:42:28 +01:00
Mike Jolley 2a6bae4e0a Change is_visible for variations to make method calls cleaner. 2013-06-14 12:21:38 +01:00
Mike Jolley 1d0a017a9f Put back params 2013-06-13 17:01:47 +01:00
Mike Jolley f87505b445 Rounding tweaks 2013-06-13 17:01:47 +01:00
Mike Jolley c72ae714f7 Removed nonce helper
@coe
2013-06-11 17:55:55 +01:00
Mike Jolley 646a8a008c Make use of new functions 2013-06-11 15:59:54 +01:00
Mike Jolley 1716728802 new message functions 2013-06-11 15:59:42 +01:00
Mike Jolley 10f44301f4 deprecated functions 2013-06-11 15:59:34 +01:00
Mike Jolley 60bc15e61f Session class improvements - get and set + defaults 2013-06-11 15:59:23 +01:00
Mike Jolley d448046234 Move WC back to main file, as singleton 2013-06-11 15:21:14 +01:00
Mike Jolley 4397b00c4a classes -> includes (for includes) 2013-06-11 14:28:45 +01:00
Mike Jolley c75ea04c1c classes -> includes 2013-06-11 14:25:30 +01:00