Mike Jolley
c410771de2
[2.3] Calculate taxes should save _line_tax_data
2015-03-31 13:21:10 +01:00
Mike Jolley
20850bc742
Fix last_month logic which breaks in feb
2015-03-31 13:13:16 +01:00
Mike Jolley
b603bde738
[2.3] Respect show_in_admin_all_list
2015-03-31 13:13:16 +01:00
Paul Kilmurray
c8d52c7c2d
Use wc_stock_amount format function
...
This allows the REST API to honour the `woocommerce_stock_amount` filter, eg: for decimal quantity values
2015-03-31 18:36:27 +08:00
Gabor Javorszky
e76749de03
Adds filter to download permissions results
...
The justification for this filter is that Subscriptions will be saving download permissions on the subscription itself, not the original order. This filter would allow us in the future to remove the entry for a file for the original order if the same file has a subscription associated with it.
2015-03-30 14:19:47 +02:00
Mike Jolley
36a916ff2f
Merge pull request #7772 from SiR-DanieL/patch-7
...
Added REST API version in system status
2015-03-30 10:34:27 +01:00
Mike Jolley
c6dae2b286
Merge pull request #7834 from SiR-DanieL/scrutinizer-issues
...
Small tweaks and style fixes
2015-03-30 10:33:27 +01:00
Nathaniel Schweinberg
7de9f02574
fixed variable typo
2015-03-28 09:28:31 -05:00
Nathaniel Schweinberg
9c9b494d0f
Check if product is object before adding to array. Prevents non-object fatal errors
2015-03-28 09:09:43 -05:00
Diego Zanella
d420fcca29
Merge remote-tracking branch 'upstream/master'
2015-03-27 18:09:58 +00:00
Diego Zanella
76a0ef1e9f
Improved handling of JOIN clauses
...
* Refactored report logic to allow developers to specify the type of JOIN to use when fetching report data. Ref https://github.com/woothemes/woocommerce/issues/7818 .
2015-03-27 17:02:14 +00:00
Nicola Mustone
95cdb0390f
fix related products error
2015-03-27 17:52:21 +01:00
Nicola Mustone
15ef65ea54
split WC_Customer constructor
2015-03-27 17:43:04 +01:00
Nicola Mustone
214a0b669f
splitted get_related for complexity
2015-03-27 17:28:26 +01:00
Nicola Mustone
dedd92d4e6
wrong comments
2015-03-27 17:11:25 +01:00
Nicola Mustone
1275346360
typo
2015-03-27 17:10:00 +01:00
Nicola Mustone
4867d635c0
fix save_template code
2015-03-27 16:59:25 +01:00
Nicola Mustone
0466fcb4e2
split process_admin_options for WC_Email
2015-03-27 16:51:30 +01:00
Mike Jolley
65bc9db763
Tweak get_coupon() method
...
Closes #7830
2015-03-27 15:36:53 +00:00
Nicola Mustone
d2af01df5b
scrutinizer suggested tweaks
2015-03-27 16:15:40 +01:00
Mike Jolley
f23f1bbd27
format values to prevent issues due to floats
...
Closes #7822
2015-03-27 15:15:00 +00:00
Mike Jolley
f55e7d6969
wc_customer_bought_product transient
...
Closes #7322
2015-03-27 13:17:54 +00:00
Mike Jolley
97c1a32aa7
Small improvement to #7322
2015-03-27 13:08:27 +00:00
Mike Jolley
7bbd0261d7
Show full category hierarchy in permalinks.
...
Closes #6158
2015-03-27 13:08:27 +00:00
James Koster
33a3940501
email input
2015-03-27 11:49:36 +00:00
Mike Jolley
23932dbfca
Default calculate_taxes to base
...
Closes #7765
2015-03-27 10:42:26 +00:00
Chris Klosowski
cd9360420f
Clearning up DocBlock and passing #7285
2015-03-26 13:56:37 -07:00
Chris Klosowski
8455d5cbd1
First pass at Product's orders endpoint #7285
2015-03-26 13:53:20 -07:00
Mike Jolley
302fca886c
ID needs to be part of transient
2015-03-25 16:27:11 +00:00
Mike Jolley
8cb2ca86d7
Store variation ID in transient
2015-03-25 16:23:19 +00:00
Mike Jolley
c76a08aad2
woocommerce_variation_prices filter
2015-03-25 15:48:51 +00:00
Mike Jolley
01c13a52cd
Fix price/sale price listings
2015-03-25 15:23:28 +00:00
Mike Jolley
99fcb77262
woocommerce_get_variation_prices_hash array
2015-03-25 14:52:33 +00:00
Mike Jolley
0ab0a12156
_has_multiple_variation_tax_rates no longer needed
2015-03-25 13:37:11 +00:00
Mike Jolley
9f50d41b97
New approach to getting min/max variation prices using transients
...
New method will get all prices and store in array format. Cached based
on user location (tax) and product transient hash.
Fixes #6504
2015-03-25 13:35:49 +00:00
Mike Jolley
9638d16d82
Define update file
2015-03-25 11:11:08 +00:00
Mike Jolley
db8fb5afbe
missing semicolon
2015-03-25 11:10:36 +00:00
Claudio Sanches
d08e099bfc
[API] List only approved comments in products reviews, closes #7809
2015-03-24 14:38:08 -03:00
Mike Jolley
ca934ba0d9
Add get methods for length, width, height and add filters
...
Closes #7617
2015-03-24 16:52:26 +00:00
Mike Jolley
557a304326
Merge branch 'coupon-calc'
2015-03-24 15:52:38 +00:00
Mike Jolley
aed8ae36cf
woocommerce_calc_discounts_sequentially option to keep backwards compatible
2015-03-24 15:51:53 +00:00
Mike Jolley
b35e7f7d4a
Cast product IDs to int when adding to cart
...
Closes #7245
2015-03-24 12:56:13 +00:00
Mike Jolley
5e538b88e7
Use undiscounted price for coupons
2015-03-24 12:55:28 +00:00
Mike Jolley
a49ac39519
Tweak note wording for clarity
...
Closes #7239
2015-03-24 11:27:33 +00:00
Mike Jolley
77e7de0ef7
Add note about #7555
...
Closes #7555
2015-03-24 10:28:53 +00:00
Claudio Sanches
931679bc82
Fixed the _wc_file_urls sanitization
2015-03-23 11:43:34 -03:00
Claudio Sanches
1600bcdae3
Fixed coding standards for #7793
2015-03-23 11:41:37 -03:00
Claudio Sanches
b3492c310d
Merge pull request #7793 from Nils-Fredrik/master
...
[API] Query products by SKU #7592
2015-03-23 11:39:32 -03:00
Mike Jolley
70bf6fc842
[2.3] prices_include_tax boolean fix
...
Closes #7788
2015-03-23 13:35:40 +00:00
Mike Jolley
a2353ca8ff
Merge pull request #7798 from nguyenvanduocit/master
...
Add $the_order to woocommerce_order_class filter
2015-03-23 13:13:41 +00:00
Mike Jolley
2726c270b8
Merge pull request #7785 from SiR-DanieL/refund-mail
...
Added customer order refunded email
2015-03-23 13:07:23 +00:00
Mike Jolley
ea910f7d4f
Merge branch 'wc-ajax-endpoint'
2015-03-23 12:53:53 +00:00
Nguyễn Văn Được
3b3c6754cb
Add $the_order to woocommerce_order_class filter
...
My be developer using another class to wrap the order. and in this case, the value of $classname allway is false. Send $the_order to filter is the solution.
2015-03-23 15:22:02 +07:00
nils-fredrik@maksimer.no
686c40919b
Fix for #7592
...
Added sku filter to the /products endpoint.
Will let you search for products by sku without using the
/products/sku/<sku> endpoint. Its now possible to search for product
skus with specialchars like / and -.
2015-03-21 18:53:00 +01:00
Nicola Mustone
00d8b11a3f
version 2.4.0
2015-03-20 17:55:50 +01:00
Nicola Mustone
f82f3572c4
again coding standards
2015-03-20 16:37:57 +01:00
Nicola Mustone
38afee0d12
conding standards
2015-03-20 16:37:16 +01:00
Nicola Mustone
c593e4ca50
added customer order refunded email
2015-03-20 16:31:31 +01:00
Mike Jolley
17fb3874e6
[2.3] Ensure coupon taxes are reset when calculating totals.
...
Fixes #7780
2015-03-20 15:03:50 +00:00
Mike Jolley
17ca08c020
add endpoints on install
2015-03-20 14:20:12 +00:00
Mike Jolley
94335db2a6
Support default permalinks
2015-03-20 13:10:47 +00:00
Mike Jolley
b729480838
Prevent cart hash becoming invalidated due to product/post data
2015-03-20 13:00:05 +00:00
James Koster
6209b6d212
Merge pull request #7725 from shivapoudel/html-notice
...
Tweaks admin notices view pages
2015-03-20 12:35:43 +00:00
Mike Jolley
21c5513526
Added endpoint for faster ajax requests
2015-03-20 12:28:26 +00:00
Mike Jolley
f04ebeb78e
has_enough_stock - use get_stock_quantity
...
Closes #7779
2015-03-20 10:40:53 +00:00
Diego Zanella
7f525c30ce
Modified PayPal Standard gateway to make it easier to extend
...
* Replaced all "private" properties and methods with "protected" ones. This will make it easier to extend the gateway classes, without having an impact on its normal usage.
2015-03-19 18:26:28 +00:00
Nicola Mustone
dc841aba66
added REST API version in system status
2015-03-19 17:11:06 +01:00
shivapoudel
9cc91c36c6
Capitalize first character of some notice buttons
2015-03-19 02:24:30 +05:45
Claudio Sanches
79760fa5ea
Merge pull request #7758 from helpforfitness/create_order_with_product_sku
...
[API] Added products to an order by SKU
2015-03-18 09:20:21 -03:00
Claudio Sanches
edcc265fdb
Merge pull request #7350 from forsvunnet/filter-unique-check
...
Added apply_filters to the wc_product_has_unique_sku function #7320
2015-03-18 09:12:48 -03:00
Guillermo Gette
49f84a7bc6
get product_id using wc_get_product_id_by_sku
2015-03-18 23:11:28 +11:00
Guillermo Gette
122cca701b
removed wc_get_product_by_sku
2015-03-18 23:09:38 +11:00
Guillermo Gette
b8578c044d
Merge branch 'master' of github.com:woothemes/woocommerce into create_order_with_product_sku
2015-03-18 23:06:02 +11:00
Mike Jolley
a017ebfff2
[2.3] Chile address format
...
Closes #7754
2015-03-18 11:35:20 +00:00
Mike Jolley
36dc8b0eb8
Merge pull request #7136 from roykho/product-shortcode
...
allow product_page shortcode to accept variation skus and pre-selected o...
2015-03-18 11:17:30 +00:00
Mike Jolley
c9ee2bb929
Merge pull request #7723 from roykho/attribute-labels
...
remove attribute label formatting and allow users to decide the formatti...
2015-03-18 11:10:32 +00:00
Mike Jolley
74d46dcc1e
Merge pull request #7455 from bryceadams/patch-7433
...
Proposed solution for api all order status counts
2015-03-18 10:57:34 +00:00
Mike Jolley
744ba86189
Merge pull request #7753 from Nils-Fredrik/master
...
Fix for #7752
2015-03-18 10:47:25 +00:00
Mike Jolley
485571f274
Merge pull request #7719 from SiR-DanieL/patch-5
...
Added woocommerce_after_dashboard_status_widget
2015-03-18 10:40:34 +00:00
Mike Jolley
aa7067e84c
Merge pull request #7345 from shivapoudel/conditional-functions
...
Refactor the WC Conditional function coding standard
2015-03-18 10:32:31 +00:00
nils-fredrik@maksimer.no
8e18937305
Fix for #7752
...
Use error code from WP_Error when wc_create_new_customer() fails.
2015-03-18 00:20:35 +01:00
nils-fredrik@maksimer.no
07f7db297f
Fix for #7752
...
wc_create_new_customer() returns identifying error codes for
identifiable errors.
2015-03-18 00:18:52 +01:00
shivapoudel
1adde0a265
Fix - name definition for woocommerce_wp_select
2015-03-17 23:40:07 +05:45
Claudio Sanches
f058d43556
Allowed paths for file url, closes #7746
2015-03-17 14:20:51 -03:00
Claudio Sanches
4f7e59e743
Sanitize html classe in wc_body_class for #7735
2015-03-17 13:39:44 -03:00
Mike Jolley
193e3d167f
Merge remote-tracking branch 'origin/master'
...
Conflicts:
readme.txt
2015-03-17 15:34:59 +00:00
Mike Jolley
88be174037
[2.3] Support price filter min or max only.
...
Closes #7743
2015-03-17 15:34:15 +00:00
Mike Jolley
e95d68117a
Merge pull request #7734 from woothemes/7733-allow-saving-empty-download-expiry-date
...
[2.3] Allow saving of empty download expiry date on orders
2015-03-17 14:47:28 +00:00
Mike Jolley
ec6fe19db1
Allow name definition in woocommerce_wp_select
2015-03-17 14:44:02 +00:00
Mike Jolley
bf8f7ba248
Merge pull request #7735 from jackgregory/patch-1
...
Include endpoints in body class filter
2015-03-17 14:36:48 +00:00
Claudio Sanches
618f70ffdf
[API] Fixed the stock management for variations, closes #7698
2015-03-16 15:13:07 -03:00
Claudio Sanches
6ce7288814
[API] Delete product attachments when the product fails, closes #7731
2015-03-16 14:54:38 -03:00
Jack Gregory
d262c44534
Include endpoints in body class filter
2015-03-16 13:26:22 +00:00
Jack Gregory
27bbcb88a7
Include endpoints in body class filter
2015-03-16 13:09:13 +00:00
James Koster
90a78780be
state placeholders. closes #7729
2015-03-16 12:56:22 +00:00
Gerhard
0e8ef24003
Allow saving of empty download expiry date, closes #773
2015-03-16 14:53:59 +02:00
Mike Jolley
70d125ae96
[2.3] Fix - get_total_discount() function with certain tax setups.
...
Revised how discounts/discount taxes are stored for consistency. Always
store ex. tax to make data retrieval easier, and to ensure totals are
correct after settings changes. Backwards compatibility maintained
through use of order versioning.
#7728
2015-03-16 12:17:09 +00:00
shivapoudel
9952d7faf2
Apply 'Hide This Notice' for skip buttons if message is suitable xD
2015-03-14 05:41:55 +05:45
shivapoudel
79caf69ed7
Tweaks admin notices view pages
2015-03-14 05:33:15 +05:45
roykho
4c868e9a19
remove attribute label formatting and allow users to decide the formatting
2015-03-13 15:41:12 -07:00
Remi Corson
fd80f61609
fix variable product docs URL
2015-03-13 17:51:50 +01:00
Mike Jolley
e81d2182f5
Sanitize tax_rate_id when saving taxes in the backend to prevent potential SQL injection.
2015-03-13 12:44:04 +00:00
Nicola Mustone
03daf7126b
added action woocommerce_after_dashboard_status_widget
2015-03-13 12:07:39 +01:00
Mike Jolley
e2f214b868
Remove space
2015-03-13 10:44:10 +00:00
Mike Jolley
efb0b7f72f
Fix query redirects
...
Fixes #7703
2015-03-13 10:33:38 +00:00
Mike Jolley
019e0b8728
Switch to jquery/maxcdn version of jquery smoothness theme
...
Fixes #7717
2015-03-13 10:20:37 +00:00
Mike Jolley
d49b5eb182
pass args to order amount filters
...
Closes #7718
2015-03-13 10:03:08 +00:00
Mike Jolley
6165d509c7
Use debug option, not testmode
...
Fixes #7696
2015-03-13 09:38:09 +00:00
Mike Jolley
6447d4081f
Prevent notice
...
Closes #7705
Fixes #7704
2015-03-13 09:25:24 +00:00
Mike Jolley
10c047d38a
Send back correct slug after adding term
...
Fixes #7685
2015-03-13 09:21:55 +00:00
Mike Jolley
c44100f9e7
wc_sanitize_tooltip
2015-03-13 09:14:28 +00:00
Gerhard
c3a9c027b9
Reverse html encoding and pass through strip tags as tiptip runs encoded html, avoids xss
2015-03-13 08:35:33 +02:00
matttallan
4d0e0b71f3
Rollback WCAPI create_order if exception is thrown after wc_create_order
...
When you use the api to create an order and specify an method_id for
the payment details, but no method_title. You recieve a WP_Error as the
response but a pending order of $0 is still created.
2015-03-13 16:02:42 +10:00
Claudio Sanches
a66d627c70
Improved the wc_get_product_id_by_sku() function for #7695
2015-03-12 17:59:52 -03:00
Claudio Sanches
607d5e9964
Merge pull request #7709 from Nils-Fredrik/master
...
Loock just for product and product_variation in wc_get_product_id_by_sku(), closes #7695
2015-03-12 17:56:58 -03:00
nils-fredrik@maksimer.no
c0ebb7d0ad
Fix for #7695
...
Will now only return posts of type product and product_variation.
2015-03-12 21:52:22 +01:00
Sam Bohler
91e313b924
Fixed DocBlock annotations
2015-03-12 16:39:47 -04:00
Guillermo Gette
e9d20c9f66
update set_line_item to let you set items by sku
2015-03-12 22:52:37 +11:00
Guillermo Gette
eae8c6b8e5
add function wc_get_product_by_sku
2015-03-12 22:52:13 +11:00
Mike Jolley
ec4d3efb6f
Merge pull request #7689 from woothemes/memcache-install-welcome-redirect
...
Memcache welcome page redirect issue
2015-03-12 11:37:02 +00:00
Brent Shepherd
028cea41d3
Make sure Simplify customer ID is set on renewals
...
So that if the renewal is for a failed payment, the the new value is set
on the renewal order's `'_simplify_customer_id'` post meta value and can
be copied back to the original order in `update_failing_payment_method()`.
2015-03-11 14:50:25 -07:00
Brent Shepherd
6d339241a2
Catch exception on renewal payment with Simplify
2015-03-11 14:49:57 -07:00
Mike Jolley
5bcfcf51ff
Increase wc_get_weight precision.
2015-03-11 10:45:14 +00:00
Gerhard
c9d4655ef1
When running update_option it does not always clear memcache, a workaround is to run delete_option and then add_option instead.
2015-03-11 12:26:51 +02:00
Mike Jolley
8554796c4b
Show calculate total when shipping is needed, but shipping is hidden.
...
Closes #7650
2015-03-10 16:57:43 +00:00
Mike Jolley
0ed3ce9023
Revert "Merge remote-tracking branch 'origin/shipping-costs'"
...
This reverts commit acc239cd1c
, reversing
changes made to b0e0bdcfad
.
2015-03-10 16:43:02 +00:00
Mike Jolley
acc239cd1c
Merge remote-tracking branch 'origin/shipping-costs'
2015-03-10 16:33:55 +00:00
Mike Jolley
b0e0bdcfad
Do not enforce rating in admin
...
Closes #7679
2015-03-10 11:01:59 +00:00
Tamara Zuk
4e36efe3af
Missing argument on `woocommerce_product_is_on_sale` grouped product filter
...
Avoids a “missing argument” warning
2015-03-09 17:28:37 -04:00
Barry Kooij
b5d64ba932
Decimal Precision can now be set in all orders API calls.
...
Fixes #7652
2015-03-09 19:07:02 +01:00
Barry Kooij
44d8bee22c
Use round instead of number_format
2015-03-09 18:10:49 +01:00
Barry Kooij
650e17c971
Merge branch 'master' of github.com:woothemes/woocommerce
...
Conflicts:
readme.txt
2015-03-09 18:08:53 +01:00
Barry Kooij
245a2cf4e7
Added the option to not round the line total.
2015-03-09 18:06:31 +01:00
Mike Jolley
40f8ed5140
Merge remote-tracking branch 'origin/master'
...
Conflicts:
readme.txt
2015-03-09 17:05:43 +00:00
Mike Jolley
457050ae9d
Improved coupon percent calculation for fixed discounts.
...
Closes #7669
2015-03-09 17:05:09 +00:00
Barry Kooij
0bb4655da8
Merge branch 'master' of github.com:woothemes/woocommerce
2015-03-09 17:09:17 +01:00
Barry Kooij
e99bcc7f77
API: reports/sales now also returns total refunds.
...
Fixes #7262
2015-03-09 17:09:07 +01:00
James Koster
cafe0927f5
count styles in widgets. closes #7677
...
make category / layered nav list styles and markup consistent with core
post category widget.
2015-03-09 16:06:48 +00:00
Mike Jolley
4171a20e29
Order again with custom attributes.
...
Fixes #7601
2015-03-09 15:50:13 +00:00
Mike Jolley
01ee531136
Same as #7662 for backend
2015-03-09 13:48:47 +00:00
Mike Jolley
3fc7a0ae65
Allow wc_attribute_label to support product-level attribute names.
...
Closes #7662
2015-03-09 13:40:07 +00:00
Mike Jolley
5cbd02fef2
Improved message when variation attributes are missing.
...
Closes #7670
2015-03-09 13:14:05 +00:00
Barry Kooij
ca6e9a7371
Merge branch 'master' of github.com:woothemes/woocommerce
2015-03-09 13:19:10 +01:00
Barry Kooij
9c430f5a6a
Warn users about unmaintained PHP version on status page.
2015-03-09 13:18:54 +01:00
Mike Jolley
09bee8ccb2
woocommerce_format_content filter
...
Closes #7663
2015-03-09 11:47:05 +00:00
Mike Jolley
66e6c682ed
Only run save_category_fields for product_cat taxonomy.
...
Closes #7665
2015-03-09 11:29:14 +00:00
Mike Jolley
fa0be55b01
transient cache dashboard reports
...
Closes #7641
2015-03-09 11:07:49 +00:00
Mike Jolley
899952e478
woocommerce_get_breadcrumb filter in class
...
Closes #7644
2015-03-09 10:17:39 +00:00
Mike Jolley
1a51989420
Merge pull request #7648 from justinstern/master
...
Skip coupon notices if there's no message
2015-03-09 10:05:25 +00:00
Mike Jolley
1975d6dc13
Merge pull request #7656 from tivnet/patch-5
...
get_the_title( $shop_page ) instead of $shop_page->post_title
2015-03-09 10:02:22 +00:00
Mike Jolley
40c86a9e4a
Merge pull request #7660 from shivapoudel/system-status
...
Tweaks for System status
2015-03-09 09:38:19 +00:00
Max Rice
7a4360eaf5
Catch Emogrifier Exceptions
...
Emogrifier throws various exceptions for invalid input, etc. that
currently are not caught anywhere, causing fatal errors or unexpected
behaviors in other plugins. This commit fixes that by catching all
exceptions and logging them.
2015-03-08 19:45:05 -04:00
shivapoudel
3b0bd8bdc6
Visit Plugin homepage in new tab
2015-03-07 09:14:49 +05:45
shivapoudel
58b6b54e77
Fix the large gap in System Status -> Server Environment after [?]
2015-03-07 09:03:14 +05:45
shivapoudel
a56b93a143
Tweaks for System Status
2015-03-07 09:01:08 +05:45
Tamara Zuk
d4b08daa64
Avoid 'division by zero' warnings
...
SHA 85befad283
does not avoid these
warnings if `$inc_tax` is `false`.
2015-03-06 17:46:31 -05:00
Gregory Karpinsky
9b28fa95c1
get_the_title( $shop_page ) instead of $shop_page->post_title
...
to apply filters
2015-03-06 15:11:23 -05:00
justinstern
809f4be1a3
get_coupon_error vs get_coupon_message
2015-03-06 11:36:34 -05:00
Mike Jolley
2fb7f20633
Merge pull request #7647 from thenbrent/order_notes_by_id
...
Order "Order Notes" on Edit Order screen by ID
2015-03-06 14:48:14 +00:00
Mike Jolley
568a0fe4fa
Tweak international delivery
...
Fixes #7651
2015-03-06 14:45:04 +00:00
Mike Jolley
af2407a089
Move default customer location to general settings tab.
2015-03-06 14:45:04 +00:00
Barry Kooij
c45c4fd1a2
optimize PR#7605
2015-03-06 15:06:24 +01:00
James Koster
c9fff65365
shipping costs. #7650
2015-03-06 13:23:18 +00:00
Barry Kooij
31f414ecb4
Merge branch 'raw-cancel-order-url' of git://github.com/tamarazuk/woocommerce into tamarazuk-raw-cancel-order-url
2015-03-06 13:44:52 +01:00
Mike Jolley
66e6366be0
Shipping calculator - Made state/postcode respect country locale like checkout.
...
Fixes #7637
2015-03-06 12:37:21 +00:00
Mike Jolley
9f269f765d
Load persistent cart when empty, and Prevent cart being cleared when accessing the login page.
...
Closes #7636
2015-03-06 12:02:02 +00:00
Claudio Sabatini
f21ff35f8c
Update class-wc-query
...
Added option that control if prices include tax for filtering
2015-03-06 11:32:30 +01:00
Claudio Sabatini
5aff801219
Update class-wc-widget-price
...
workaround to fix when prices are without taxes and display should include it
2015-03-06 11:30:08 +01:00
claudiosan
b7d98bf53a
Update class-wc-query - Filter prices when tax not included
...
Fixing filter price widget when prices are without taxes
2015-03-06 10:59:02 +01:00
justinstern
9f3ae48b8f
Skip coupon notices if there's no message
...
Handy for defining programmatic coupons to apply cart discounts, when
you wouldn't necessarily want to have a notice displayed
2015-03-06 00:36:01 -05:00
Claudio Sanches
25944c9086
Fixed the WC_Countries::get_formatted_address() default args
...
@mikejolley
2015-03-06 00:05:40 -03:00
Brent Shepherd
32cd95cc80
Order "Order Notes" on Edit Order screen by ID
...
So that insertion order is preserved in case multiple comments were inserted within
the same second of each other.
2015-03-05 15:49:45 -08:00
Dean Taylor
a841817b6a
Fix "Undefined index: test_ipn" PHP notice
2015-03-05 22:58:22 +00:00
Mike Jolley
7fa0ee5004
split_shared_term handling
2015-03-05 11:27:58 +00:00
Mike Jolley
c8b664ff47
Exclude total sales from duplication Closes #7631
2015-03-05 10:03:36 +00:00
Mike Jolley
4d8d4310bf
Tidyup #7627
2015-03-05 09:20:24 +00:00
Rasmus
13f6e442df
Fix missing fields in get_formatted_address
...
Fixes missing fields in get_formatted_address in WC_Countries so it doesn't throw a notice about undefined variable when argument is missing.
2015-03-04 15:02:35 +01:00
Mike Jolley
830fba3e41
Merge pull request #7625 from SiR-DanieL/patch-6
...
Added order count functions
2015-03-04 13:18:41 +00:00
Nicola Mustone
95f581452f
removed useless functions
2015-03-04 11:35:25 +01:00
Mike Jolley
123ae9cd5a
Merge pull request #7620 from SiR-DanieL/patch-5
...
Welcome page tweaks
2015-03-04 10:28:26 +00:00
Mike Jolley
d4ccca7f3d
Merge pull request #7618 from SiR-DanieL/patch-4
...
Replace int cast with absint
2015-03-04 10:27:37 +00:00
Mike Jolley
5146d582cb
Just some braces
2015-03-04 10:25:08 +00:00
Nicola Mustone
ed67650c36
added order count functions
2015-03-04 09:51:06 +01:00
Nicola Mustone
f7577c5097
missing "WooCommerce" and update version
2015-03-03 19:05:55 +01:00
Nicola Mustone
147ccf3ef8
replace int cast with absint
2015-03-03 17:36:47 +01:00
Mike Jolley
c0e5d6a959
Set placeholder for selects and ensure set if the first option is blank
2015-03-03 11:43:41 +00:00
Mike Jolley
6658c88adc
Add args to correct scripts
...
Fixes #7610 . @claudiosmweb
2015-03-03 10:58:10 +00:00
Mike Jolley
3d2ee4f54a
Merge pull request #7567 from tamarazuk/system-status-fatal-fix
...
System Status: Fix fatal error when `$response` is not an object
2015-03-03 10:04:20 +00:00
Tamara Zuk
5d4a57d8e2
System Status: Use is_wp_error() instead of is_object()
...
thanks @claudiosmweb!
2015-03-03 02:07:39 -05:00
Tamara Zuk
0e4cea8e85
Introduce `WC_Order::get_cancel_order_url_raw()` method
2015-03-03 02:01:17 -05:00
Claudio Sanches
12d381da2e
Improved the WC_Language_Pack_Upgrader::has_available_update()
2015-03-02 13:49:59 -03:00
Claudio Sanches
3db16ae606
Prevent translation update message for en_US, closes #7599
2015-03-02 13:49:27 -03:00
Claudio Sanches
f2fc3b151f
Merge pull request #7562 from tjuris/get-related-terms-filters
...
Apply filters to product/tag terms when querying related products
2015-03-02 10:39:31 -03:00
Mike Jolley
9865e5f11e
urlencode coupon Closes #7572
2015-03-02 12:03:31 +00:00
Mike Jolley
154e289b08
Fix unclosed div element Closes #7575
2015-03-02 11:58:13 +00:00
Tanel Jüris
fe60425eeb
Rename filter prefix from wc_ to woocommerce_
2015-03-02 12:09:24 +02:00
Mike Jolley
7d23acf381
Merge pull request #7597 from woothemes/hotfix-partial-refunds-rounding
...
Pass max_refund through wc_format_decimal
2015-03-02 10:03:50 +00:00
Mike Jolley
d98569327d
Check payment title exists before output.
2015-03-02 10:03:30 +00:00
Mike Jolley
b8e01fdfdd
Remove unused defaults Closes #7573
2015-03-02 10:03:30 +00:00
Mike Jolley
92b15933ab
Merge pull request #7574 from WillBrubaker/master
...
Filter the default attribute availability
2015-03-02 10:02:09 +00:00
Mike Jolley
a7be0d5b8a
Merge pull request #7385 from RistoNiinemets/form-field
...
Form field args and type filters
2015-03-02 09:56:08 +00:00
Mike Jolley
8a42ed06f1
Merge pull request #7552 from NickIvanter/patch-6
...
Allow custom CSS classes to be specified for [product] shortcode
2015-03-02 09:55:49 +00:00
Gerhard
368bfd97d1
Pass max_refund through wc_format_decimal
2015-03-02 11:54:43 +02:00
Claudio Sanches
c4e1602406
Merge branch 'master' of github.com:woothemes/woocommerce
2015-02-27 13:33:05 -03:00
Claudio Sanches
d0c71bd46e
Fixe the admin access for subscsribers and customers
2015-02-27 13:32:47 -03:00
Will
de6c986953
Filter the default attribute availability
2015-02-26 11:23:19 -05:00
Barry Kooij
ffc436957b
Removed double @property comment
2015-02-26 17:14:06 +01:00
Nicola Mustone
0fc973b5aa
undefined wc_error_count fix
2015-02-26 16:18:11 +01:00
Mike Jolley
66e13a9927
Filter object
2015-02-26 11:59:50 +00:00
Tamara Zuk
3525b0f193
Append status codes to wp_remote_post and wp_remote_get notes
2015-02-26 02:05:01 -05:00
Tamara Zuk
8e4259b915
System Status: Fix fatal error when `$response` is not an object
2015-02-26 01:50:42 -05:00
Tanel Jüris
d9a568bbea
Apply filters to product/tag terms when querying related products
2015-02-25 16:02:31 +02:00
Claudio Sanches
37882756d3
Fixed HTML entities for up-sells and cross-sells fields, closes #7553
2015-02-25 10:27:53 -03:00
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