Nick Ivanter
a1c9bac225
Allow custom CSS classes to be specified for [product] shortcode
...
This change allows custom CSS classes to be added to the output generated by the [product] shortcode. This is useful, for instance, when embedding a product into a regular post as an advertisement. With custom CSS classes, you can style it to be left or right aligned, floating, etc.
2015-02-24 23:32:35 +03:00
Mike Jolley
2006c7217e
Add reports menu item if user can access reports but not the main WC section.
...
Closes #7528
2015-02-24 12:29:03 +00:00
Mike Jolley
ba582c307b
Dashboard - use same query as reports Closes #7529
2015-02-24 12:18:56 +00:00
Mike Jolley
26487a5734
Fix - Settings API - allow multiselect fields to be emptied.
...
Closes #7542
2015-02-24 12:12:42 +00:00
Mike Jolley
d435eedbef
woocommerce_cart_totals_order_total_html
...
Closes #7544
2015-02-24 12:05:32 +00:00
Mike Jolley
d9455994c8
Use 30 days instead of year for transients to avoid bugs in memcache plugins.
...
Closes #7520
2015-02-24 12:02:56 +00:00
Claudio Sanches
cb780bb3fd
Merge branch 'master' of github.com:woothemes/woocommerce
2015-02-23 15:24:40 -03:00
Claudio Sanches
742a48c3eb
Fixed the json_search_products when the product title is numeric
...
@mikejolley
2015-02-23 15:23:53 -03:00
Mike Jolley
4c411a69e7
* Fix - Saving an order needs to save the discount amount ex. tax like
...
the cart.
* Tweak - Show discounts inc. tax when showing order totals inc. tax.
Closes #7532
@barrykooij @claudiosmweb How does this look? Looks like we were saving
order discounts inconsistent with the cart/checkout
2015-02-23 17:39:57 +00:00
roykho
c9a84030bb
add hook to system status report so 3rd party items can display debug info there
2015-02-23 07:07:14 -08:00
Mike Jolley
2ffcc65cd5
Remove mapping for get_product_search_form filter
2015-02-23 11:45:47 +00:00
Mike Jolley
2657ed251c
Adjust syntax
2015-02-23 11:45:34 +00:00
Mike Jolley
df710c2705
Merge pull request #7515 from jamesgol/dirtysession
...
Mark session clean after commiting data
2015-02-23 11:06:50 +00:00
Mike Jolley
5d715a4c0b
Merge pull request #7521 from pjv/fix-BadMethodCallException
...
fix BadMethodCallException
2015-02-23 11:06:00 +00:00
Mike Jolley
68fd1589c7
Merge pull request #7511 from piotr-szczygiel/product-categoty-shortcode-hook
...
Product categoty shortcode hook
2015-02-23 11:04:44 +00:00
pjv
1cdc3174ca
fix BadMethodCallException
...
receiving lines like this in the php error log:
Fatal error: Uncaught exception 'BadMethodCallException' with message 'Call to a member function get_formatted_name() on a non-object (boolean)' in /var/www/example.com/htdocs/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-product-data.php:484\nStack trace:\n#0 /var/www/example.com/htdocs/wp-admin/includes/template.php(1044): WC_Meta_Box_Product_Data::output()\n#1 /var/www/example.com/htdocs/wp-admin/edit-form-advanced.php(600): do_meta_boxes()\n#2 /var/www/example.com/htdocs/wp-admin/post.php(209): include()\n#3 {main}
The error resulted in a WSOD when trying to edit some products.
2015-02-22 09:01:37 -07:00
James Golovich
44d2552798
Mark session clean after commiting data
...
If someone is calling save_data() manually in addition to WooCommerce calling it the data is saved twice regardless of
any new data.
2015-02-20 23:55:24 -08:00
Claudio Sanches
b25e51dbe6
Merge pull request #7514 from prowp/patch-1
...
Allow filter for breadcrumb terms
2015-02-20 23:25:37 -02:00
John Russell
112a01e54d
Altered naming convention
2015-02-20 18:17:03 -07:00
Claudio Sanches
0148a1bd86
[API] Fixed the variable product managing_stock variable, closes #7513
2015-02-20 23:01:26 -02:00
John Russell
f9db9eac77
Allow filter for breadcrumb terms
...
In some cases we may want to specify a primary term for breadcrumbs. This change would allow that to be done via a filter.
2015-02-20 17:57:25 -07:00
Piotr Szczygiel
ac7348d69d
added 'before' hook as well
2015-02-20 21:32:13 +01:00
Piotr Szczygiel
996f915919
Merge remote-tracking branch 'origin/master' into product-categoty-shortcode-hook
2015-02-20 21:30:25 +01:00
Mike Jolley
6c9562112f
Fix Related post offset.
2015-02-20 16:17:45 +00:00
Mike Jolley
321d38be0a
Round report values.
...
Closes #7505
2015-02-20 12:27:55 +00:00
Mike Jolley
2a90208f93
Cross/up-sells should not search variations.
...
Closes #7502
2015-02-20 12:12:03 +00:00
Piotr Szczygiel
d7d9395476
Added action hook into product_category shortcode
2015-02-19 21:43:46 +01:00
Mike Jolley
8a40778046
Merge pull request #7496 from SiR-DanieL/patch-1
...
Fix missing downloads
2015-02-19 16:24:18 +00:00
Mike Jolley
09676934d6
Fix address formatting and improve email appearance
...
Fixes #7484
2015-02-19 13:57:22 +00:00
Nicola Mustone
40a7605c99
fix missing downloads
2015-02-19 14:42:24 +01:00
Claudio Sanches
966ca94e41
Fixed non-ASCII variation names in WC_AJAX::json_search_products(), closes #7490
2015-02-19 11:21:02 -02:00
Claudio Sanches
d0aafd1f0b
[API] Fixed undefined messages when edit a product
2015-02-19 10:48:21 -02:00
Mike Jolley
2caf287258
Tweak rating prompt text on click, and change once rated
...
@bftrick This is to keep the .org folk happy and look less spammy :)
2015-02-19 11:38:35 +00:00
Mike Jolley
049abcfdd3
Show random tweet
...
Closes #7481
2015-02-19 11:16:24 +00:00
Mike Jolley
82ac0fc11e
Detect shortcodes when saving URLs.
...
Fixes #7474
2015-02-19 11:05:04 +00:00
Mike Jolley
d944b43845
Merge pull request #7489 from roykho/taxes
...
fix taxes save issue when page is paginated
2015-02-19 10:43:42 +00:00
Mike Jolley
5d61028317
Unhook wc_page_endpoint_title after it is ran once (main page title).
...
Fixes #7488
2015-02-19 10:37:59 +00:00
roykho
af940dcf72
fix taxes save issue when page is paginated
2015-02-18 22:52:34 -08:00
Claudio Sanches
517a447743
Fixed some issues for scrutinizer
2015-02-18 16:09:02 -02:00
Claudio Sanches
1a45a447b0
Fixed the true-null-false case
2015-02-18 15:34:03 -02:00
Magnus Jepson
ded1cf76e0
Fix sales report description
...
Net Sales report tooltip description was misleading by “excluding
refunds”
2015-02-18 18:19:10 +01:00
Claudio Sanches
6c7a22b910
Removed admin message from user profile pages, closes #7478
2015-02-18 15:06:11 -02:00
Claudio Sanches
69f44e1d4f
Changed get_bloginfo("title") to get_bloginfo("name")
2015-02-18 13:47:30 -02:00
Claudio Sanches
0979fc475a
Merge pull request #7466 from qTranslate-Team/master
...
replace get_bloginfo('name') with get_bloginfo('name', 'display')
2015-02-18 13:44:49 -02:00
Mike Jolley
fb5290db2e
Fix breadcrumb on shop page
2015-02-18 12:53:39 +00:00
Mike Jolley
470b259a8a
Don't download GeoIP Database until geolocation option is enabled in settings.
2015-02-18 12:53:24 +00:00
Mike Jolley
b6e7e4e8ad
Improve category coupon message.
...
Closes #7463
2015-02-18 11:17:58 +00:00
Gerhard
7beb159927
Remove posts join from wc_get_customer_available_downloads, speeds query up by 50%
2015-02-18 12:04:19 +02:00
John Clause
6c9f863c04
replaced get_bloginfo('name') with get_bloginfo('name','display')
2015-02-17 20:56:18 -07:00
Claudio Sanches
28bf06b702
Improved the woocommerce_email_get_option filter, closes #7464
2015-02-18 00:28:26 -02:00
Claudio Sanches
c97dffcc66
Improved the WC_Admin::admin_footer_text(), closes #7461
2015-02-17 16:24:11 -02:00
Mike Jolley
81b7ed934e
Call Logger before logging errors
2015-02-17 16:20:26 +00:00
Mike Jolley
d1c19d5782
Check for GZIP support
2015-02-17 16:19:33 +00:00
Mike Jolley
217c3a49ff
If logged in, populate customer data from user meta.
...
Closes #7459
2015-02-17 15:47:28 +00:00
Mike Jolley
5ec61e3acd
Tweak transient welcome redirect
2015-02-17 15:24:12 +00:00
Mike Jolley
4feb5fbda9
Restock after refund is successful Closes #7449
2015-02-17 14:56:22 +00:00
Mike Jolley
8126b7ef58
When purchasing multiple downloadable products (same item), multiply download limit by qty purchased.
...
Closes #7451
2015-02-17 14:03:44 +00:00
Bryce
a0b50541cc
Proposed solution for api all order status counts
...
I’m not sure if this is the best way or if it needs work. What do you
think @maxrice @claudiosmweb?
With `status` set to `any`, it returns:
```
stdClass Object
(
[count] => stdClass Object
(
[pending] => 0
[processing] => 2042
[on-hold] => 4
[completed] => 2993
[cancelled] => 13
[refunded] => 0
[failed] => 4
)
)
```
If not `any, same as before.
Closes #7433
2015-02-17 13:27:38 +07:00
Mike Jolley
44cf2c2b70
Filter before max_related_posts
2015-02-16 16:48:11 +00:00
Mike Jolley
bd11f51d04
Double shop page in breadcrumb and white space issues.
...
Fixes #7432
2015-02-16 16:21:48 +00:00
Mike Jolley
ac8d97ab54
No need to add double quotes here Closes #7447
2015-02-16 14:33:12 +00:00
Mike Jolley
7899dd95d6
Run File URLs through esc_url_raw instead of wc_clean to preserve spaces.
...
Closes #7442
2015-02-16 14:23:13 +00:00
Mike Jolley
7902522e96
Merge pull request #7424 from roykho/placeholder-image
...
fix string array conversion notice when passing array to get_image metho...
2015-02-16 14:00:41 +00:00
Mike Jolley
8bdd4fc283
Run item meta label through wc_attribute_label() in admin order page.
...
Closes #7420
2015-02-16 13:49:44 +00:00
Mike Jolley
a668b87801
Merge pull request #7446 from SiR-DanieL/patch-6
...
Added target _blank to the template structure doc link
2015-02-16 13:17:28 +00:00
Mike Jolley
5c1a0d92e8
Related posts - replace ORDER BY RAND() with random offset.
...
Closes #7436
2015-02-16 13:16:18 +00:00
Nicola Mustone
1f0fe09910
Added target _blank to the template structure doc link
2015-02-16 13:55:28 +01:00
Mike Jolley
e58e9cb426
Merge pull request #7444 from SiR-DanieL/patch-6
...
Target _blank on Theme integration guide
2015-02-16 12:46:48 +00:00
Mike Jolley
969e2d3b18
Stock status when updating out of stock product.
...
Fixes #7402
2015-02-16 12:14:10 +00:00
Mike Jolley
f5e73d792d
Fix error when no product is chosen for report.
...
Fixes #7427
2015-02-16 11:53:37 +00:00
Mike Jolley
cdcd38ebb9
API total_tax should include shipping tax
2015-02-16 11:48:26 +00:00
Nicola Mustone
fe0cbd505c
target _blank on Theme integration guide
2015-02-16 12:41:21 +01:00
Mike Jolley
fcbd5c4292
Merge branch 'reports-api-fixes'
2015-02-16 11:35:10 +00:00
Mike Jolley
542dfe7ce4
Add additional error handling to remove_item handler
...
Closes #7415
2015-02-16 11:31:38 +00:00
Mike Jolley
ab1e2b1597
Merge pull request #7418 from tamarazuk/register_post_status_fix
...
Register shop_order post statuses earlier
2015-02-16 11:14:00 +00:00
Mike Jolley
e307786f5e
Merge pull request #7438 from paulwilde/upstream
...
Introduce wc_get_page_permalink
2015-02-16 11:13:02 +00:00
Mike Jolley
226ffb7985
Merge pull request #7441 from karpstrucking/master
...
Fixes issue #7440
2015-02-16 10:44:47 +00:00
Mike Jolley
e1cb2c454b
Remove ip-api at their request Closes #7443
2015-02-16 10:25:13 +00:00
Lucas Karpiuk
fc11849054
Fixes issue #7440
2015-02-15 15:36:18 -05:00
Paul Wilde
c913316f8b
Introduce wc_get_page_permalink.
2015-02-15 19:13:22 +00:00
Dean Taylor
1b38e46fd5
Fix deprecated notice for WP_User->id usage
...
Fix E_USER_NOTICE WP_User->id was called with an argument that is deprecated since version 2.1! Use WP_User->ID instead
2015-02-15 19:02:27 +00:00
roykho
c7ae9c092f
fix string array conversion notice when passing array to get_image method
2015-02-13 17:18:07 -08:00
Mike Jolley
8409d67602
Share data between sales by date report and API.
...
Also ensures data is consistent. #7416
2015-02-13 21:25:59 +00:00
Tamara Zuk
e44d0e60db
Register shop_order post statuses earlier
...
Registering the post statuses on `init` with a priority of 10 is too
late for some uses. Particularly if you are using `WP_Query` on `init`,
WP core will not add the `post_status` where clause if the custom post
statuses are not registered yet.
I ran into this issue on a site using `ALTERNATE_WP_CRON` which runs
`wp_cron()` on `init` with a default priority of `10`. It appears that
this may fix #7408 as well.
2015-02-13 15:08:15 -05:00
Claudio Sanches
e770d1a2e5
Fixed extra spaces
2015-02-13 17:14:12 -02:00
Claudio Sanches
74d8d4ed61
Fixed the PayPal URL for ZA, closes #7417
2015-02-13 16:02:00 -02:00
Mike Jolley
35a3de03d5
Move WC_Email docblock and add class exists check
...
Closes #7399
2015-02-13 16:54:15 +00:00
Claudio Sanches
1bdf6170ae
Merge pull request #7414 from woothemes/tracker-intervals
...
Improvements in tracker intervals
2015-02-13 13:41:52 -02:00
Gerhard
d7629fef33
Update comment
2015-02-13 17:32:17 +02:00
Gerhard
3493a55653
Update time before send, make post non blocking, always update last sent.
2015-02-13 17:29:24 +02:00
Mike Jolley
733339b681
Revert "Autoloader tweaks"
...
This reverts commit d84a0e9ec5
.
2015-02-13 15:21:01 +00:00
Mike Jolley
d84a0e9ec5
Autoloader tweaks
2015-02-13 15:18:26 +00:00
Claudio Sanches
eff087f5ab
Merge pull request #7413 from woothemes/plain-text-email
...
Check support for DOMDocument, closes #7404
2015-02-13 12:55:39 -02:00
Claudio Sanches
94e1a4bf6a
Just check for DOMDocument
2015-02-13 12:54:10 -02:00
Mike Jolley
765dcd174b
Tweak text in frontend colors notice
2015-02-13 14:53:22 +00:00
Mike Jolley
7599747628
Check for empty path in autoloader
2015-02-13 14:49:44 +00:00
Claudio Sanches
4065f56376
Improved the description for DOMDocument in system status
2015-02-13 12:47:56 -02:00
Claudio Sanches
3a85b8cf95
Fixed a typo
2015-02-13 12:44:47 -02:00
Claudio Sanches
7714901fd5
Added DOMDocument item in system status
2015-02-13 12:43:30 -02:00
Claudio Sanches
e778d26764
Created a method to test if have an inline css parser
2015-02-13 12:22:53 -02:00
Claudio Sanches
5d80f3e5cd
Use plain text emails when dont have support for DOMDocument class
2015-02-13 12:16:58 -02:00
Mike Jolley
6679f4822f
Set attribute 'query_var' true when public.
...
Closes #7401
2015-02-13 14:06:20 +00:00
Claudio Sanches
0c6e079690
Simplify commerce default payment mode as standard
2015-02-13 12:04:05 -02:00
Mike Jolley
2f2acc6964
Update dashboard report to show gross, after refunds
2015-02-13 13:53:03 +00:00
Mike Jolley
50322801e5
Sales by date handling for refunds
...
- Exclude refunds from gross/net
- Correct order counts
- Display refunded order and item count, plot after refunds
- Combine query functions for legend and main chart
2015-02-13 13:42:09 +00:00
Mike Jolley
55969390f0
Taxes by date handling for partial and full refunds
2015-02-13 13:42:09 +00:00
Mike Jolley
8f5ac9417c
Taxes by code handling for partial and full refunds
2015-02-13 13:42:09 +00:00
Mike Jolley
857a78c2fc
Include posts without parent in join so combinations of orders + refunds can be queried at the same time
2015-02-13 13:42:09 +00:00
Claudio Sanches
2dbfadd9fa
Improved the WC_Geo_IP removing some not useful const and vars
2015-02-13 10:28:51 -02:00
Nicola Mustone
ca3deba1c7
getting wrong ID
2015-02-13 11:00:41 +01:00
Mike Jolley
f0d0fa9394
Auto-generation of slug when adding new attribute.
2015-02-12 23:25:10 +00:00
Mike Jolley
323faed337
Taxes by code - include refunds Closes #7397
2015-02-12 22:58:19 +00:00
Mike Jolley
62cb430eaa
Run coupon codes through html_entity_decode.
...
Closes #7395
2015-02-12 22:50:22 +00:00
Mike Jolley
e99b3a9bf8
limit_usage_to_x_items option in coupons.
...
Closes #7396
2015-02-12 22:39:40 +00:00
Claudio Sanches
5772356eb2
Re-added the woocommerce_breadcrumb_home_url filter
2015-02-12 18:34:40 -02:00
Mike Jolley
c71bff2844
Only apply product/cat coupon checks for cart to cart coupons.
...
Closes #7389
2015-02-12 16:15:28 +00:00
Mike Jolley
0ef336d97c
Change hooks used to output post columns - fixes columns after quick edit.
2015-02-12 14:26:00 +00:00
Mike Jolley
61ef1662b2
Merge branch 'master' of https://github.com/woothemes/woocommerce
...
Conflicts:
readme.txt
2015-02-12 13:20:56 +00:00
Mike Jolley
2347af7e73
Typo in get_from_name method.
...
Closes #7388
2015-02-12 13:20:23 +00:00
Claudio Sanches
07537878f0
Fixed the indentation in includes/libraries/class-emogrifier.php
2015-02-12 09:42:15 -02:00
Claudio Sanches
455b27e125
Added alternative to mb_convert_encoding in Emogrifier, closes #7378
2015-02-12 09:40:41 -02:00
Claudio Sanches
1845049665
Revert "Add code to check if mb_convert_encoding function is exsited then can called it for emogrifier lib"
2015-02-12 09:36:12 -02:00
Mike Jolley
16e14914d8
Enqueue tracking js when needed only
2015-02-12 11:35:12 +00:00
Mike Jolley
1eb29d0acf
Merge pull request #7386 from woothemes/tracking-duplicate-optins
...
Tracking duplicate optins
2015-02-12 11:30:14 +00:00
Mike Jolley
891016df28
Merge pull request #7379 from a3rev/master
...
Add code to check if mb_convert_encoding function is exsited then can called it for emogrifier lib
2015-02-12 11:09:45 +00:00
Mike Jolley
2a472e64e8
Only run the uninstaller if the "Uninstall on Delete" option is checked in system status.
2015-02-12 11:09:13 +00:00
Mike Jolley
8aa0e5ea24
Potential notice with preg_match wildcard search, if used incorrectly.
2015-02-12 10:53:53 +00:00
Risto Niinemets
ccba4cf6e8
wrong filter arguments order
2015-02-12 12:42:43 +02:00
Gerhard
f0dbb72437
Add 10min buffer to override tracking calls.
2015-02-12 11:58:04 +02:00
Risto Niinemets
54e84cf235
run all fields through filter
2015-02-12 11:54:29 +02:00
Risto Niinemets
1cda103591
add filter woocommerce_form_field_args
2015-02-12 11:50:17 +02:00
Gerhard
1ac68adf20
Hide the tracker notice once clicked to avoid double clicks.
2015-02-12 11:41:04 +02:00
a3rev
0137249175
Add code to check if mb_convert_encoding function is exsited then can called it for emogrifier lib
2015-02-12 12:38:50 +07:00
Mike Jolley
77716b1c1f
attribute_public option.
2015-02-12 00:31:32 +00:00
Mike Jolley
30abed2f9e
Merge pull request #7375 from tamarazuk/rating-count-fix
...
Fix average product rating when ratings are not required
2015-02-12 00:04:26 +00:00
Mike Jolley
518cca7326
WC_TEMPLATE_DEBUG_MODE in admin.
...
Fixes #7336
2015-02-11 23:32:27 +00:00
Mike Jolley
d2040eca4d
When updating shipping in cart, keep shipping calculator in DOM.
2015-02-11 23:25:31 +00:00
Mike Jolley
1f9b9c0ae0
When ratings are required for reviews, ensure validation is performed if the rating element is removed from DOM.
...
Closes #7371
2015-02-11 23:06:18 +00:00
Tamara Zuk
7eaae2d561
Fix average product rating when ratings are not required
...
If ratings are not required, the total rating count was counting all
reviews which skewed the average rating. In other words, reviews with
no rating were counted as a “zero” rating in the average rating
calculation. This bug was introduced in
83a457b29c
which provided a fix for #6839 .
This change introduces a new product method `get_review_count()` which
can be used to accurately calculate the total number of reviews for a
product. Some instances of `get_rating_count()` were replaced with
`get_review_count()` where appropriate. Additionally, the
`single-product/rating.php` template was adjusted to display the
correct number of customer reviews and ratings in rich snippets. I’ve
also included the `bestRating` rich snippet detailed
[here](http://schema.org/AggregateRating ). The version number was
adjusted to 2.3.2 on that template as I think this is a larger change.
2015-02-11 17:55:16 -05:00
Mike Jolley
bce209c21d
Flat rate extra costs when costs are an array.
2015-02-11 22:24:13 +00:00
Mike Jolley
afff86c033
Pass correct shipping cost to PayPal.
2015-02-11 22:17:58 +00:00
Mike Jolley
43c24feffd
Item meta removal query in order class.
2015-02-11 22:14:24 +00:00
Claudio Sanches
3593df34b3
Merge pull request #7367 from woothemes/wc-geo-ip
...
WC_Geo_IP class
2015-02-11 16:04:56 -02:00
Claudio Sanches
caed859f99
Removed the old geoip class
2015-02-11 16:03:54 -02:00
Mike Jolley
f57b26cbe6
is_available() check in local pickup.
2015-02-11 18:02:44 +00:00
Claudio Sanches
3a9e459b2c
Created WC_Geo_IP_Record class
2015-02-11 15:57:16 -02:00
Claudio Sanches
5389dc3812
Created WC_Geo_IP class
2015-02-11 15:51:50 -02:00
Mike Jolley
bcb3e82567
Merge pull request #7366 from pbogdan/fix-wc-cart-tax-back-compat
...
Fix backward compatibility for $tax intance variable of WC_Cart.
2015-02-11 17:46:23 +00:00
Mike Jolley
7c28ea2e2d
Merge pull request #7364 from SiR-DanieL/patch-4
...
Target _blank to the Storefront read more button
2015-02-11 17:23:04 +00:00
Mike Jolley
334ee4c108
Fix - [products] ids and sku args.
...
Closes #7365
2015-02-11 17:21:53 +00:00
Nicola Mustone
78bd357f56
missing _e
2015-02-11 18:15:00 +01:00
Nicola Mustone
5cab9f5f2a
escape &
2015-02-11 18:14:03 +01:00
Nicola Mustone
2e6b571f09
added target _blank to the Storefront read more button
2015-02-11 18:12:18 +01:00
Piotr Bogdan
9d75ad17e8
Fix backward compatibility for WC_Cart::$tax.
2015-02-11 17:06:17 +00:00
Mike Jolley
44aa8339b2
Fix - attribute_public notice before DB upgrade.
2015-02-11 17:01:14 +00:00
Mike Jolley
4c7297c3b1
Merge pull request #7363 from tamarazuk/master
...
[2.3] Avoid a notice if select has no options
2015-02-11 16:50:51 +00:00
Mike Jolley
c46f7f236d
When the geolocation database cannot download, ensure the correct method is used to log the error.
2015-02-11 16:47:52 +00:00
Tamara Zuk
bd8a57eb32
Avoid a fatal error if select has no options
2015-02-11 11:30:52 -05:00
Mike Jolley
bc2af10cc6
Update languages and geolocation when installed
2015-02-11 14:38:55 +00:00
Barry Kooij
14598bfd40
Typos
2015-02-11 15:16:36 +01:00
Barry Kooij
6cd77ea3b1
Typo fix
2015-02-11 15:14:42 +01:00
Mike Jolley
9afa2848d7
woocommerce_remove_cart_item_from_session with $key and $values
...
@helgatheviking
$this isn’t needed - WC()->cart to access cart class.
2015-02-11 12:30:54 +00:00
Claudio Sanches
050286add6
Updated the changelog for 1452bde
2015-02-11 10:13:36 -02:00
Guillermo Gette
a95591502e
#7359 filter api results by a list of ids
2015-02-11 22:51:56 +11:00
Mike Jolley
b7750e6e6b
Merge pull request #7358 from helgatheviking/fix/action-on-remove-from-cart-session
...
trigger an action if an item is dropped from the cart session
2015-02-11 11:26:02 +00:00
Mike Jolley
19b6350afc
Changelog code should ignore WC core
2015-02-11 11:21:31 +00:00
Kathy Darling
39fcc19ff6
trigger an action if an item is dropped from the cart session
2015-02-11 12:12:27 +01:00
Mike Jolley
124dac4a24
Merge pull request #7355 from woothemes/better-ip-check
...
Better proxy server support for get_ip_address
2015-02-11 10:41:44 +00:00
Gerhard
2339f5aee9
Better proxy server support for get_ip_address
2015-02-11 12:07:12 +02:00
Brent Shepherd
f1fa927f57
Fix WC_Order::payment_complete() on back-end
...
SHA: c038001eab
changed `WC_Abstract_Order::payment_complete()` to use
WC()->session->set( 'order_awaiting_payment' ) instead of
`WC()->session->order_awaiting_payment`, but `WC()->session` is only
set on front-end requests, meaning any extension that tries to complete
payment on an order from the back-end would cause a fatal error.
2015-02-10 16:55:47 -08:00
Eivin Landa
69aba6055a
Added apply_filters to the wc_product_has_unique_sku function #7320
2015-02-10 19:54:31 +01:00
Mike Jolley
3a4e9c0d7f
Report should include refunded status orders
...
Fixes #7343
2015-02-10 18:24:46 +00:00
Claudio Sanches
7fd1c539a7
Merge branch 'master' of github.com:woothemes/woocommerce
2015-02-10 14:44:40 -02:00
Claudio Sanches
22c4f02bbf
Used filtered comment for woocommerce_new_customer_note action, closes #7349
2015-02-10 14:44:28 -02:00
Claudio Sanches
9f7683e81b
Merge pull request #7348 from RistoNiinemets/master
...
add input_class to all form field types
2015-02-10 14:38:36 -02:00
Claudio Sanches
736ed330c8
Fixed a typo in the frontend colors notice
2015-02-10 14:08:05 -02:00
Claudio Sanches
af99be8ffc
Improved the tracking notice
2015-02-10 14:01:51 -02:00
Risto Niinemets
215bb8841d
add input_class to all form field types
2015-02-10 17:41:34 +02:00
Claudio Sanches
0558c3c286
Added woocommerce_product_get_rating_html filter for WC_Product class, closes #7337
2015-02-10 13:01:04 -02:00
Claudio Sanches
edac0b00c7
Fixed the remote post and get messages in status report
2015-02-10 12:16:25 -02:00
Claudio Sanches
6ca681ce86
Added new filters to help translation plugins, closes #7338
2015-02-10 10:51:44 -02:00
Mike Jolley
840efcaa00
is_on_sale should compare type Fixes #7344
2015-02-10 12:34:53 +00:00
Mike Jolley
d93d00271d
Use WP hook so we have access to query vars
...
Fixes #7341
2015-02-10 12:23:15 +00:00
Mike Jolley
78be4ad128
Upgrade routine for woocommerce_default_customer_address
...
Closes #7334
2015-02-10 11:49:09 +00:00
Mike Jolley
893babaaef
woocommerce_product_get_weight filter Closes #7319
2015-02-10 11:18:38 +00:00
shivapoudel
20c5774e70
Refactor the WC Conditional function coding standard
2015-02-10 16:42:33 +05:45
James Collins
7e20fb9a3d
Use wc_clean to trim and sanitize external IP
...
As per suggestion from @claudiosmweb, wc_clean() is more full featured than trim().
See #7335
2015-02-10 07:54:26 +08:00
James Collins
9c79a18edd
Merge branch 'master' into geolocation-external-ip-fix
2015-02-10 07:40:32 +08:00
James Collins
b5cc22e8f5
Geolocation: strip whitespace when obtaining external IP
...
The "ip.appspot" service returns an IP address plus a new line character in its response.
An example response from "ip.appspot" is:
```123.123.123.123\n```
This fix strip whitespace from the response before proceeding.
2015-02-09 14:00:05 +08:00
James Collins
0bbb4464ab
Fix 2 undefined index notices when editing/saving a product
...
Fixes:
Notice: Undefined index: upsell_ids in /wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-product-data.php on line 1202
Call Stack
# Time Memory Function Location
1 0.0110 486692 {main}( ) ../post.php:0
2 4.7790 60047856 edit_post( ??? ) ../post.php:229
3 4.7917 60075016 wp_update_post( ???, ??? ) ../post.php:321
4 4.7930 60089156 wp_insert_post( ???, ??? ) ../post.php:3572
5 4.9212 60223012 do_action( ???, ???, ???, ??? ) ../post.php:3499
6 4.9213 60224380 call_user_func_array ( ???, ??? ) ../plugin.php:496
7 4.9213 60224412 WC_Admin_Meta_Boxes->save_meta_boxes( ???, ??? ) ../plugin.php:0
8 7.2460 60224516 do_action( ???, ???, ??? ) ../class-wc-admin-meta-boxes.php:207
9 7.2539 60199340 call_user_func_array ( ???, ??? ) ../plugin.php:496
10 7.2890 60735660 WC_Meta_Box_Product_Data::save( ???, ??? ) ../plugin.php:0
( ! ) Notice: Undefined index: crosssell_ids in /wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-product-data.php on line 1203
Call Stack
# Time Memory Function Location
1 0.0110 486692 {main}( ) ../post.php:0
2 4.7790 60047856 edit_post( ??? ) ../post.php:229
3 4.7917 60075016 wp_update_post( ???, ??? ) ../post.php:321
4 4.7930 60089156 wp_insert_post( ???, ??? ) ../post.php:3572
5 4.9212 60223012 do_action( ???, ???, ???, ??? ) ../post.php:3499
6 4.9213 60224380 call_user_func_array ( ???, ??? ) ../plugin.php:496
7 4.9213 60224412 WC_Admin_Meta_Boxes->save_meta_boxes( ???, ??? ) ../plugin.php:0
8 7.2460 60224516 do_action( ???, ???, ??? ) ../class-wc-admin-meta-boxes.php:207
9 7.2539 60199340 call_user_func_array ( ???, ??? ) ../plugin.php:496
10 7.2890 60735660 WC_Meta_Box_Product_Data::save( ???, ??? ) ../plugin.php:0
2015-02-09 11:51:33 +08:00
shivapoudel
85976ddcfb
Comment for Meta-Box Class
2015-02-08 21:32:47 +05:45
shivapoudel
cdce6835f5
Comment for Disable Auto Save
2015-02-08 21:30:08 +05:45
shivapoudel
8db46ced4d
Clean docblock statement for bulk messages
2015-02-08 20:30:19 +05:45
shivapoudel
7fad3e9428
Move the {post|bulk_post}_updated_messages methods to top
2015-02-08 20:27:48 +05:45
shivapoudel
99ae5c6a53
Specify custom bulk actions messages for a post type
2015-02-08 20:25:19 +05:45
Bryce
deb4acd5a2
Return (first) role of user in customer API endpoint
2015-02-07 13:08:48 +07:00
Mike Jolley
0939cf0e01
Fix product cats notice Closes #7298
2015-02-05 11:36:33 +00:00
Mike Jolley
f5ff10711d
Merge pull request #7297 from shivapoudel/docblocks
...
Docblocks Fixes
2015-02-05 11:23:06 +00:00
Claudio Sanches
1a38cecb8c
Merge pull request #7305 from bryceadams/patch-7302
...
Fix notice when invalid order id / email used
2015-02-05 06:49:20 -02:00
Claudio Sanches
0749fe752d
Merge pull request #7304 from bryceadams/patch-7301
...
Fix fatal error on /my-account/view-order/ endpoint
2015-02-05 06:48:37 -02:00
Claudio Sanches
00916b9e29
Merge pull request #7303 from mattallan/matt/wc-api-orders-tweaks
...
WC_API_Orders: pass data var to new wrappable api function.
2015-02-05 06:46:34 -02:00
Bryce
d36af4b721
Fix notice when invalid order id / email used
...
We also need to check if the $order object exists. Closes #7302
2015-02-05 13:03:13 +07:00
Bryce
888622a621
Fix fatal error on /my-account/view-order/ endpoint
...
When no order number is set this causes a fatal error. This check for
the $order object should be sufficient.
Closes #7301
2015-02-05 12:55:33 +07:00
matttallan
6531eb0373
pass data var to wrappable api function.
2015-02-05 15:43:05 +10:00
shivapoudel
dcdf00e06f
Cleanup WC_Admin_Permalink_Settings
2015-02-04 22:12:06 +05:45
shivapoudel
d6b44d9369
Docblocks cleanup for WC_Post_types
2015-02-04 21:59:14 +05:45
shivapoudel
fa6a99bd1d
Docblocks cleanup for WC_Frontend_Scripts
2015-02-04 21:52:33 +05:45
shivapoudel
cb57c7e709
Docblocks cleanup for WC_Comments
2015-02-04 21:44:42 +05:45
Mike Jolley
782aa34808
Merge pull request #7291 from bryceadams/patch-7289
...
Allow people to override roles when querying customers API
2015-02-04 15:20:48 +00:00
Mike Jolley
7795f69f51
Update wording to include refunds
...
Closes #7290
2015-02-04 15:14:02 +00:00
Mike Jolley
3154b08d3e
Replace CDN select2 with local copy
...
Closes #7287
2015-02-04 15:00:14 +00:00
Mike Jolley
2a877eb562
Do a db query to flush spent and count which may be incorrect/outdated
...
Closes #7286
2015-02-04 14:22:15 +00:00
Mike Jolley
3691a8fdfb
Fix thumbnail notice
...
Closes #7292
2015-02-04 14:04:02 +00:00
Mike Jolley
5bb4b7739f
Fix IDS param Closes #7288
2015-02-04 12:44:30 +00:00
Bryce
1e9349a585
Remove $wpdb and $blog_id
2015-02-04 19:33:25 +07:00
Bryce
d0e0a6be6b
Change so only single role can be set in role param
2015-02-04 19:31:14 +07:00
Bryce
0f927acdd3
Allow people to override roles when querying customers API
...
Just fixing core
and closes #7289
2015-02-04 18:59:25 +07:00
Mike Jolley
6af80f8e60
Merge pull request #7280 from mattallan/matt/wc-api-orders-tweaks
...
Some more tweaks to WC API Orders
2015-02-04 11:46:33 +00:00
Mike Jolley
7b294c7cbf
Prevent meta boxes being saved multiple times
2015-02-04 11:35:02 +00:00
matttallan
e5c3385d3b
Change private wc-api method to protected.
...
Mainly so that it can be used in the new Subscriptions API :)
2015-02-04 11:38:38 +10:00
matttallan
f3fbbdeecc
Use validate_request() to avoid duplicate code.
2015-02-04 11:38:36 +10:00
matttallan
cd085f2adc
add an overrideable function to a create custom post.
...
Especially handy for WC Subscriptions seeing as they extend the Abstract
Order Class.
2015-02-04 11:16:11 +10:00
matttallan
c2520a528b
changes to avoid writing duplicated code
2015-02-04 09:59:02 +10:00
Mike Jolley
b2e979640c
Removed unused vars
2015-02-03 16:24:01 +00:00
Mike Jolley
ffd512a55e
Why assign $the_product to itself?
2015-02-03 16:14:56 +00:00
Mike Jolley
037242a9a2
More docblock tweaks
2015-02-03 16:03:28 +00:00
Mike Jolley
55baf7b60a
Missing properties
2015-02-03 15:55:51 +00:00
Mike Jolley
35f006d282
This can return a bool
2015-02-03 15:55:40 +00:00
Mike Jolley
9bc1b09fc5
Undefined and dead variables in checkout class
2015-02-03 15:27:40 +00:00
Mike Jolley
0300ce2768
Undefined and dead variables in cart class
2015-02-03 15:23:25 +00:00
Mike Jolley
133e85560f
Dead var
2015-02-03 15:08:54 +00:00
Mike Jolley
27a7a58e8c
Can return wp_error
2015-02-03 15:08:36 +00:00
Mike Jolley
c01fe87d69
Cast to array
2015-02-03 15:06:15 +00:00
Mike Jolley
74abdf27c9
Cast to array
2015-02-03 15:06:08 +00:00
Mike Jolley
03cf7fa572
Fix potential notice
2015-02-03 14:57:04 +00:00
Mike Jolley
2809986fcf
Dead var
2015-02-03 14:56:01 +00:00
Mike Jolley
c814a9fa23
docblock corrections
2015-02-03 14:44:57 +00:00
Mike Jolley
1ef8a24ec9
These should be default_attr, not attribute
2015-02-03 14:44:57 +00:00
Mike Jolley
84fad56258
No return needed
2015-02-03 14:44:57 +00:00
Mike Jolley
f032a9c7dd
Missing props
2015-02-03 14:44:57 +00:00
Mike Jolley
caff5c3a66
Remove dead var api_class
2015-02-03 14:44:57 +00:00
Mike Jolley
10a819bd45
Use coupon_amount in api
2015-02-03 14:44:57 +00:00
Scrutinizer Auto-Fixer
de06d17c6d
Scrutinizer Auto-Fixes
...
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2015-02-03 14:32:10 +00:00
Mike Jolley
a54b9c61e2
Define coupon magic props
2015-02-03 14:20:46 +00:00
Mike Jolley
81515fddbe
Incorrect api docblock
2015-02-03 14:17:49 +00:00
Mike Jolley
4c3a58c957
Undefined product_ids_titles
2015-02-03 14:12:48 +00:00
Mike Jolley
fc826de960
Dead vars in category report
2015-02-03 14:12:04 +00:00
Mike Jolley
ff2b0db69b
Undefined var customers
2015-02-03 14:10:03 +00:00
Mike Jolley
7acfc0b7f2
Dead var
2015-02-03 14:09:54 +00:00
Mike Jolley
7694f8039c
Dead vars when saving variations
2015-02-03 14:08:43 +00:00
Mike Jolley
f93e027b09
validate_multiselect_field had dead var
2015-02-03 14:05:09 +00:00
Mike Jolley
447ee6e7bb
Docblocks
2015-02-03 14:02:38 +00:00
Mike Jolley
c11d283ddc
Still trying to get scruit to pick up these variables. Testing a few variations.
2015-02-03 13:49:04 +00:00
Mike Jolley
f711ef32ce
Missing bracket in previous commit #copypastefail
2015-02-03 13:16:41 +00:00
Mike Jolley
7c019c0c50
More docblocks; the check for WP_POST isn't needed as the second case (isset) runs regardless and is true for posts
2015-02-03 13:13:07 +00:00
Mike Jolley
c038001eab
Docblocks for order/product
2015-02-03 12:57:08 +00:00
Mike Jolley
dc5b8d9710
@var
2015-02-03 12:28:15 +00:00
Mike Jolley
52c84f407c
Fix download save after adding with ajax
2015-02-03 10:57:43 +00:00
Mike Jolley
086d0195ce
Download should expire at midnight Fixes #7269
2015-02-03 10:57:43 +00:00
Mike Jolley
d68dc3c6e0
Merge pull request #7272 from bryceadams/patch-7270
...
Fix 5.2 func_args issue
2015-02-03 10:22:07 +00:00
Mike Jolley
d46158cc8a
Merge pull request #7271 from michaeltieso/patch-1
...
Customer New Account message clarification
2015-02-03 10:06:52 +00:00
Bryce
e6038486d9
Fix 5.2 func_args issue
2015-02-03 11:06:50 +07:00
Claudio Sanches
566f1ea7b6
Make possible to show log by URL
...
@mikejolley
2015-02-02 21:58:25 -02:00
Michael Tieso
933fe5ff57
Customer New Account message clarification
...
Suggestion for clarification that this goes to the customer, not admin.
2015-02-02 15:41:12 -08:00
Mike Jolley
cac9035c6f
Updated jquery-payment lib
2015-02-02 16:20:03 +00:00
Mike Jolley
31806595f4
Merge pull request #7268 from franticpsyx/remove_restore_hooks
...
[2.3] Allow extensions to add support for the remove/restore cart item functionality
2015-02-02 15:07:06 +00:00
Mike Jolley
1785d48096
Update rating text
...
Based on feedback from Marina and James, cc @bftrick
2015-02-02 14:53:13 +00:00
Mike Jolley
16eb1facd9
Add link to payment_status_canceled_reversal Closes #7267
2015-02-02 14:49:30 +00:00
Mike Jolley
d0daa1ecee
Tweak reset_admin_notices to add, not remove, notices
...
Fixes #7254
2015-02-02 14:40:11 +00:00
Manos Psychogyiopoulos
f8567680da
added remove/restore cart item hooks
2015-02-02 16:01:43 +02:00
Mike Jolley
35b09bf282
Merge pull request #7266 from woothemes/hotfix-tracker-updates
...
Tracker Tweaks
2015-02-02 12:48:20 +00:00
Gerhard
28385b8868
Update usage tracking notice link
2015-02-02 14:40:52 +02:00
Mike Jolley
e810672430
Remove reference to deprecated property
...
Closes #7249
Closes #7248
2015-02-02 12:38:37 +00:00
Gerhard
f5bdcecf0b
Add WC version to tracking data.
2015-02-02 14:37:00 +02:00
Mike Jolley
370ccc95c3
Merge pull request #7259 from bryceadams/patch-7258
...
Extra currency options for API
2015-02-02 12:32:42 +00:00
Jack Gregory
836a87d6e7
Add hook to admin product advanced data
2015-02-01 15:17:07 +00:00
Bryce
0d656dfa23
fix spacing
2015-02-01 14:24:29 +07:00
Bryce
a582481c13
Extra currency options for API
...
* `currency_position`
* `thousand_separator`
* `decimal_separator`
2015-02-01 14:22:41 +07:00
Tamara Zuk
c1100fbce5
Reviews meta box: avoid undefined index notice
...
Avoids a notice when updating some Product Reviews Pro review types
2015-01-31 14:05:51 -05:00
msdesign21
2e76a58385
Update html-notice-template-check.php
...
Would also be nice to include a direct link when we mention the System Status report. Wasn't sure the best way to do that.
2015-01-30 15:34:25 -05:00
Claudio Sanches
05a011376d
Updated the api docs url
2015-01-30 13:32:23 -02:00
Mike Jolley
6bc269858a
tweak docblock
2015-01-30 14:30:10 +00:00
Mike Jolley
a3e323f4e0
Define vars passed to addons view
2015-01-30 14:21:49 +00:00
Claudio Sanches
d6023818fd
Fixed the increase and decreate of coupons usage count
2015-01-30 12:14:34 -02:00
Mike Jolley
d6ee40191c
Split webhooks column_default into multiple columns
2015-01-30 13:57:45 +00:00
Claudio Sanches
a87f852122
Make it easy to find all orders that use a coupon #6925
2015-01-30 11:47:32 -02:00
Barry Kooij
e41841cee3
Round net_sales in API to 2 decimals
2015-01-30 14:33:13 +01:00
Barry Kooij
7a92094b72
Added net_sales to API reports response.
2015-01-30 14:29:10 +01:00
Barry Kooij
5435c16a3b
API code standards
2015-01-30 14:28:53 +01:00
Barry Kooij
746a46778d
Fixed sales data in API so it matches the WC reports page.
...
Fixes #7233
2015-01-30 14:28:35 +01:00
Claudio Sanches
242dbe1bc0
[API] product visible by default
2015-01-30 11:08:17 -02:00
Claudio Sanches
129f78a761
Merge branch 'master' of github.com:woothemes/woocommerce
2015-01-30 11:01:08 -02:00
Claudio Sanches
ce569c153b
[API] Set default product visibility
2015-01-30 11:00:57 -02:00
Mike Jolley
9f8a7d1199
Remove datepicker icon's and use focus event
2015-01-30 12:54:33 +00:00
Claudio Sanches
1a3617c55b
Improved the select fields in webhooks ui
2015-01-30 10:31:43 -02:00
Bryce
171f189f70
Update URL to link to review form
...
Closes #7243
2015-01-30 18:26:01 +07:00
Claudio Sanches
def250e912
Display taxes labels in order totals when order has refunded, closes #7229
2015-01-29 18:50:08 -02:00
Claudio Sanches
d3ac28fbb3
Check if product is published, closes #7220
2015-01-29 16:30:07 -02:00
Claudio Sanches
afb19715d4
Prevented XSS in urls
2015-01-29 12:33:06 -02:00
Claudio Sanches
7890095ba0
Fixed the webhooks topic saving, closes #7236
2015-01-29 11:11:35 -02:00
Claudio Sanches
7eb3ec9a4a
Admin footer text improvements #7234
...
@BFTrick @mikejolley
2015-01-29 10:41:39 -02:00
Claudio Sanches
85adccb416
Merge pull request #7234 from BFTrick/iss-7213
...
Adding Please Rate Our Plugin Footer Text
2015-01-29 10:37:28 -02:00
Claudio Sanches
f7e24c0b77
Fixed more typos
2015-01-29 01:31:03 -02:00
Claudio Sanches
80b70c79f1
Fixed a typo in status report
2015-01-29 00:54:46 -02:00
Patrick Rauland
e7224cdc1d
using wc_get_screen_ids instead of manually typing them out. see #7213
2015-01-28 17:20:38 -07:00
Patrick Rauland
ee11ac6080
adding please rate our plugin footer text. closes #7213
2015-01-28 17:13:13 -07:00
Mike Jolley
c2c1e733ba
Typo #7216
2015-01-28 21:03:09 +00:00
Mike Jolley
15fa903537
install() is triggered after includes, so these includes are not needed
2015-01-28 19:46:09 +00:00
Brent Shepherd
3702b77c74
Fix "Undefined variable: identity_token"
...
And make sure the identify token is passed to `WC_Gateway_Paypal_PDT_Handler`
2015-01-28 10:59:48 -08:00
Mike Jolley
725d5e28d8
Additional tweaks to @b2c573ed8a04a8d425a73e018a450179514cbdc7
...
- Load API with other includes
- Register activation hook early
- Include autoloader early
cc @claudiosmweb
2015-01-28 17:50:58 +00:00
Mike Jolley
f3cc45cfa9
Grammar corrections
...
Closes #7216
2015-01-28 17:15:48 +00:00
Mike Jolley
8a42b1c211
Revert earlier change where PayPal IPN was on or off depending on PDT.
...
Because IPN is used for future events such as refunds it should not be
disabled. @claudiosmweb
2015-01-28 17:15:48 +00:00
Claudio Sanches
a723cfb256
Fix the cleanup of reviews transients, closes #7214
...
@mikejolley
Please enter the commit message for your changes. Lines starting
2015-01-28 15:09:37 -02:00
Brent Shepherd
3a1dc68ff9
Fix typo
2015-01-27 14:42:36 -08:00
Brent Shepherd
60a161aa93
Fix session expired notice on checkout
2015-01-27 14:14:17 -08:00
Mike Jolley
59359ef9b4
Try catch block in add_to_cart to allow plugins to abort the add to cart event
...
cc @claudiosmweb @barrykooij
2015-01-27 16:02:57 +00:00
Mike Jolley
2e38fc9041
Removed ID check - $the_coupon->is_valid() checks for existance
2015-01-27 12:11:58 +00:00
Claudio Sanches
5f63425e0a
[API] Fixed the deleted type for refunds
2015-01-26 19:39:33 -02:00
Claudio Sanches
cd88ac0d72
[API] Fixed the refunds returned data
2015-01-26 19:24:54 -02:00
Claudio Sanches
c995f23354
Fixed WC_Abstract_Order coupon methods
...
@mikejolley
2015-01-26 16:48:03 -02:00
Claudio Sanches
8ff08e70af
Fixed the WC_Abstract_Order::get_user_id() return type and fixed the orders customer_id
2015-01-26 14:41:19 -02:00
Claudio Sanches
4774646a0e
[API] Removed cart_discount, we have now only total_discount
2015-01-26 14:24:59 -02:00
Mike Jolley
0f5c6c4219
Add error handler/debug info in checkout ajax #7176
2015-01-26 14:24:03 +00:00
Mike Jolley
54e025939b
Use get_post_status to avoid out of date order data.
...
Partly related to #7208
2015-01-26 13:07:29 +00:00
Mike Jolley
7e1ca1d3a3
Option to choose EITHER PDT or IPN
...
Closes #7208
2015-01-26 12:58:33 +00:00
Mike Jolley
0b252d03f4
Added conditional to unset session itself
...
Closes #7182
2015-01-26 11:42:24 +00:00
Mike Jolley
2a95402d22
Merge pull request #7201 from thenbrent/fix_wc_product__isset
...
[2.3] Do not set WC_Product property when calling __get()
2015-01-26 11:38:21 +00:00
Jason Conroy
eae7bde755
Allow devs to filter is_checkout()
...
This is useful for extensions like WooCommerce One Page Checkout where the "checkout" may not be the default one used by WooCommerce core.
2015-01-24 21:35:35 +11:00
Brent Shepherd
95d87e28d6
Do not set property when calling __get()
...
SHA: 100b95a
tweaked the `__get()` magic method in `WC_Product` to:
* only call `get_post_meta()` once; and
* set `$this->$key` to save the overhead of calling `__get()` every
time that property needs to be accessed.
However, in the process, it also set an empty value (`''`) - the default
return value of `get_post_meta()` for every single value accessed on
the product object, meaning that any calls to `isset()` after attempting
to get that value would return `true`, even if `metadata_exists()` for
that property would return false (and no value is set in memory).
2015-01-23 15:01:10 -08:00
Claudio Sanches
177bcbe7d5
Removed unused code
2015-01-23 16:34:43 -02:00
Claudio Sanches
04c584ccf6
Added properties docs for abstract product class
2015-01-23 15:51:33 -02:00
Claudio Sanches
560d7d24ee
Fixed the tracking opt-out
2015-01-23 15:20:09 -02:00
Mike Jolley
e52611bbc3
Merge branch 'master' of https://github.com/woothemes/woocommerce
...
Conflicts:
includes/class-wc-tracker.php
2015-01-23 16:38:44 +00:00
Mike Jolley
5ffaf97397
Only load tracking during cron and move notices to notices class
2015-01-23 16:36:52 +00:00
Claudio Sanches
a1462ccf26
Merge pull request #7198 from splashingpixels/theme-support-notice
...
fixed theme-support notice closes #7196
2015-01-23 14:32:51 -02:00
Claudio Sanches
71558c449f
Improved the WC_Tracker::get_theme_info() version compare
2015-01-23 14:29:10 -02:00
Claudio Sanches
b1c5e19d56
Improved the system status report script
2015-01-23 14:19:06 -02:00
splashingpixels
6c61bf8c4c
fixed theme-support notice closes #7196
2015-01-23 08:15:31 -08:00
Mike Jolley
a9103ad01a
Opt-in tracking: move link out of localisation
2015-01-23 15:37:53 +00:00
Gerhard
d09df4fc0f
Merge branch '6711-opt-in-tracking'
2015-01-23 17:31:01 +02:00
Gerhard
8610ca6aef
Merge branch 'master' into 6711-opt-in-tracking
...
Conflicts:
includes/admin/class-wc-admin-status.php
2015-01-23 17:30:11 +02:00
Gerhard
afca781480
Add link to tracking doc.
2015-01-23 17:15:55 +02:00
Scrutinizer Auto-Fixer
19f660171e
Scrutinizer Auto-Fixes
...
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2015-01-23 14:37:20 +00:00
Mike Jolley
7f2a943075
Docblocks
2015-01-23 14:35:17 +00:00
Mike Jolley
8db443799b
Remove void/access public docblocks
2015-01-23 14:01:00 +00:00
Mike Jolley
1163e2af0b
Leave session data alone before calculation #7182
2015-01-23 13:58:38 +00:00
Claudio Sanches
9f4e3ed409
Merge branch 'master' of github.com:woothemes/woocommerce
2015-01-23 11:49:00 -02:00
Claudio Sanches
f0c63b1fee
Restore all items from session, closes #7180
2015-01-23 11:48:49 -02:00
Mike Jolley
09ae877b96
defined check
2015-01-23 13:29:23 +00:00
Mike Jolley
2d707689d9
Add transient cache to webhooks Closes #7184
2015-01-23 13:28:30 +00:00