Commit Graph

4130 Commits

Author SHA1 Message Date
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
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
Gerhard f0dbb72437 Add 10min buffer to override tracking calls. 2015-02-12 11:58:04 +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