Claudio Sanches
b091f12393
Fixed some js conding standards
2015-08-05 15:57:15 -03:00
George Stephanis
95e6b84fbb
Make sure we esc_attr translation results
...
Part 2 of … 2, I think.
2015-08-05 14:15:00 -04:00
George Stephanis
29d9a7da8c
Found two missing `esc_js()` calls as well.
2015-08-05 14:10:10 -04:00
George Stephanis
c7ee929325
Partial _e() => esc_attr_e() changeover.
...
There’s a lot of them, so I’m breaking them into multiple commits.
This is safeguarding stuff in case some translation uses a double
quote, it will no longer risk breaking out of the attribute.
2015-08-05 14:10:09 -04:00
Claudio Sanches
47492fb273
Merge branch 'master' of github.com:woothemes/woocommerce
2015-08-05 15:03:05 -03:00
Claudio Sanches
054dfe0c7b
Changed default Underscore's template for wp.template in API Keys
2015-08-05 15:02:55 -03:00
Mike Jolley
7f3c2a78c5
Get total functions should respect rounding settings.
...
Closes #8707
2015-08-05 14:33:53 +01:00
Mike Jolley
737769174e
Customer class using wrong meta keys for address_1/shipping_address_1
...
Fixes #8717
2015-08-05 14:05:03 +01:00
Mike Jolley
e8ea978e9e
Merge pull request #8697 from JeroenSormani/define-ajax
...
Define DOING_AJAX early
2015-08-05 13:53:40 +01:00
Mike Jolley
afd0e9edd4
Pass $this to filters
...
#8722
2015-08-05 13:49:27 +01:00
Mike Jolley
ccbe22164b
Merge pull request #8722 from SiR-DanieL/cross-up-sells
...
Added cross and up sells IDs filters
2015-08-05 13:48:46 +01:00
Mike Jolley
c97f845d7f
Merge pull request #8727 from SiR-DanieL/order-items-fix
...
Fix possible fatal error on the order admin page
2015-08-05 13:48:11 +01:00
Mike Jolley
d222dd4c37
Don't apply product discount if price is already 0
...
Closes #8725
2015-08-05 13:45:32 +01:00
Nicola Mustone
bfb0aa95b3
fix possible fatal error on the order admin page
2015-08-05 14:10:23 +02:00
Nicola Mustone
9822edda0b
better naming
2015-08-05 13:54:20 +02:00
Nicola Mustone
9140ca0f76
added cross and up sells IDs filters
2015-08-05 11:01:47 +02:00
Claudio Sanches
2954707118
Fixed rest_api_allowed_post_types filter
2015-08-04 13:49:24 -03:00
Claudio Sanches
8bcc926c63
Allowed products into wp.com rest api to enable jetpack related posts feature, closes #8712
2015-08-03 18:36:25 -03:00
Mike Jolley
d6bd46c55d
Move expand_item_meta to own method
...
Fixes notices in some extensions (deposits)
2015-08-03 13:21:44 +01:00
Mike Jolley
ef798921aa
woocommerce_can_reduce_order_stock filter
...
Needed for extension (deposits)
2015-08-03 10:37:58 +01:00
toddlahman
50d659f380
fix for array_filter() expects parameter 1 to be array, boolean given
...
array_filter() expects parameter 1 to be array, boolean given
/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-duplicate-
product.php(171)
$exclude is evaluated as a boolean.
2015-08-02 00:35:58 -07:00
Fredrik Rossland
841beb95a6
Found a typo, "Permissons"
...
Changed "Permissons" to "Permissions"
2015-08-01 19:42:10 +02:00
Brent Shepherd
501f0b752f
Save product type before saving variations
...
WooCommerce prior to WC 2.4 saved the product type before any variations were saved because
WC_Meta_Box_Product_Data::save_variations() was called by WC_Meta_Box_Product_Data::save().
However, in WC 2.4 the variations are saved independently of other data about the containing
variable product, including product type. Because the product type hasn't been saved yet,
extensions that need to save their own variation level meta data can't know when saving
variations if the product is of the type they want to act on. They also can't check `$_POST`
to find out when saving variations, because 'product-type' isn't passed to that as it's
variable level meta data, not variation level meta data.
This patch passes the product type along with the variation level meta data when saving variations.
It then uses that to save the product type if the variable product has not yet been saved (and
therefore the product type has never been stored, which means calling get_product() would instantiate
a 'simple' product, as that is the default product type). This can lead to fatal errors if callbacks
expect the product type to be variable and attempt to call methods that only exist on those product
types, like variable_product_sync().
It will also update the product type if it was previously saved but has since changed. This prevents
fatal errors like that mentioned above but caused by switching from one product type, like a simple
product, to another, like a variable product.
2015-07-31 11:42:21 -07:00
JeroenSormani
2c81a71f04
Define DOING_AJAX early
2015-07-31 20:15:17 +02:00
Mike Jolley
e7dfff8687
Update wording and add tooltip
...
#8690
2015-07-31 17:14:28 +01:00
Mike Jolley
61cb48afd7
Tweak wc ajax to post to the CURRENT URL rather than a fixed endpoint
2015-07-31 12:56:27 +01:00
Mike Jolley
82f50cedb0
Allow menu_order sorting like in 2.3
...
Also allow setting manually to allow sorting between pages.
Fixes #8690
2015-07-31 12:39:23 +01:00
Mike Jolley
763c7dde35
Fix product image size saving
...
Fixes #8695
2015-07-31 11:29:04 +01:00
Claudio Sanches
a215c4ed3c
[API] Fixed variation without parent for v2
2015-07-30 21:53:00 -03:00
Claudio Sanches
a42b25ec4e
Merge pull request #8692 from Nils-Fredrik/master
...
Fix for #8691 : Variation without parent will not cause 500.
2015-07-30 21:51:13 -03:00
Claudio Sanches
6c4893e0b2
Introduces the woocommerce_ajax_admin_get_variations_args filter, closes #8690
2015-07-30 19:11:53 -03:00
nils-fredrik@maksimer.no
f4db67bcbc
Fix for #8691 : Variation without parent will not cause 500.
2015-07-30 23:32:24 +02:00
Claudio Sanches
09145181e5
[API] Removed deprecated products/sku endpoint
2015-07-30 17:35:14 -03:00
Claudio Sanches
002b5df763
Merge branch 'master' of github.com:woothemes/woocommerce
2015-07-30 15:07:52 -03:00
Claudio Sanches
0361a10e26
Removed instances of WC_Order in favor to wc_get_order(), closes #8689
2015-07-30 15:07:34 -03:00
Mike Jolley
64d38f6dd8
STOCK STATUS field for variations should never be hidden
...
Fixes #8687
2015-07-30 15:45:05 +01:00
Mike Jolley
622dc777f0
Correct number format in coupon total
2015-07-30 12:52:52 +01:00
Claudio Sanches
b28c6db7f5
Added button to dismiss variation error notices
2015-07-29 19:56:33 -03:00
Mike Jolley
7b2aec4791
Take item qty into consideration when refunding orders
...
Fixes #8675
2015-07-29 13:13:41 +01:00
Mike Jolley
b0ee9a8cc6
Handle text vs select attribute names vs slugs
2015-07-29 10:58:28 +01:00
Claudio Sanches
ef5f41d748
Fixed textdomain for api key last access unknown, closes #8672
2015-07-28 12:44:20 -03:00
Mike Jolley
060fb16e2e
Move Pre 2.4 handling for attributes - DRY
...
@claudiosmweb @franticpsyx
2015-07-28 16:20:51 +01:00
Mike Jolley
6626c68175
When syncing OLD products, update the attributes to 2.4 standard
2015-07-28 15:13:25 +01:00
Mike Jolley
f19ba7a755
Send line item when no name is set
...
Closes #8666
2015-07-28 11:41:37 +01:00
Mike Jolley
eb19532165
Show 'fee' label is empty
2015-07-28 11:32:53 +01:00
Mike Jolley
e4a8602490
filter: woocommerce_widget_cart_is_hidden
...
Closes #8670
2015-07-28 11:06:31 +01:00
Mike Jolley
1b45bcde0b
URL encode to preserve text attributes in permalinks
2015-07-28 10:37:24 +01:00
Mike Jolley
808c01cb90
Added woocommerce_single_variation hook for variation data and cart button to reduce code in template file and used hooks. @claudiosmweb
...
Removed woocommerce_before_variations_button @Ninos. Use
woocommerce_single_variation
2015-07-28 10:32:28 +01:00
WordCommerce
19205ec0e6
[2.4] Removed API status notification on the Settings
2015-07-27 23:59:08 +03:00
Claudio Sanches
30f9d81916
Fixed row actions to support WordPress 4.3, closes #8578
2015-07-27 16:14:41 -03:00
Mike Jolley
02243623ba
Correct key for stock level
...
#8605
2015-07-27 19:07:11 +01:00
Mike Jolley
794af1c013
When the stock level is changed via update_post_meta ensure the stock_status is kept in sync
...
Closes #8605
2015-07-27 19:04:08 +01:00
Claudio Sanches
b0ce578541
Show errors for admin ajax variations
2015-07-27 14:16:52 -03:00
Mike Jolley
236b493f3d
Removed extract
2015-07-27 17:48:31 +01:00
Mike Jolley
7c9cae830a
Populate variation_data with valid attributes only
...
@claudiosmweb
2015-07-27 17:48:30 +01:00
Mike Jolley
554a7f8141
Merge pull request #8657 from thenbrent/simplify_subscriptions_2_0
...
Update Simplify Commerce for Subscriptions v2.0
2015-07-27 16:57:03 +01:00
Mike Jolley
4d14ac8134
Missing closing tag
2015-07-27 16:50:55 +01:00
Mike Jolley
8d6858bb80
Sanitize not needed
2015-07-27 16:43:05 +01:00
Mike Jolley
9a7893ba23
Moved variation dropdowns logic into wc_dropdown_variation_attribute_options()
2015-07-27 16:42:22 +01:00
Mike Jolley
2ea6a2efab
Merge branch 'pr/8607'
2015-07-27 13:17:27 +01:00
Mike Jolley
973c3d1d7a
Tweak meta_is_product_attribute conditional to check for the existence of the get_variation_attributes method before running.
...
Closes #8660
2015-07-27 13:03:04 +01:00
Mike Jolley
b425b9bce6
Avoid extract to keep original $file_path intact
...
Closes #8636
2015-07-27 12:44:29 +01:00
Mike Jolley
0ab151562a
Fix issues with trailing slashes on permalinks
...
Closes #8658
2015-07-27 11:56:07 +01:00
Mike Jolley
dcd273d343
Rename transient - 45 chars is max legnth
2015-07-27 10:57:14 +01:00
Claudio Sanches
506f87f138
Removed post filter count, closes #8654
2015-07-24 22:36:51 -03:00
Brent Shepherd
aaaa5720f3
Simplify: Add support for multiple subscriptions
...
Nothing to see here. Easiest feature support ever.
2015-07-24 18:18:00 -07:00
Brent Shepherd
694929b0bf
Simplify: Update change failling payment method
...
For Subscriptions v2.0.
* Use new 'woocommerce_subscription_failing_payment_method_updated_' hook
* Use new wcs_is_subscription() method to run process_subscription() when the
transaction is for a subscription object.
* Save the card and customer IDs on the 'shop_subscription' post from the renewal
order rather than saving it on the order which purchased the subscription.
2015-07-24 18:17:57 -07:00
Brent Shepherd
e6ccf437e9
Simplify: Update order_contains_subscription()
...
To use Subscriptions 2.0 methods to avoid deprecated notices and move
use of old methods to WC_Addons_Gateway_Simplify_Commerce_Deprecated
2015-07-24 18:17:57 -07:00
Brent Shepherd
73999c5daf
Simplify: Remove meta from resubscribe orders
...
In Subscriptoins v2.0. Also deprecate the removal of it in 1.n, where
resubscribe orders were called "parent renewal orders".
2015-07-24 18:17:57 -07:00
Brent Shepherd
089485b3bf
Simplify: Update renewal payments for Subs v2.0
...
* Add new save_subscription_meta() method to allow us to save customer ID both
in Subscriptions 1.n on the original order and in 2.0 on the subscription/s
created for the order)
* Use the new 'woocommerce_scheduled_subscription_payment_simplify' hook and
deprecate use of the old 'scheduled_subscription_payment_simplify' hook by
moving it to the WC_Addons_Gateway_Simplify_Commerce_Deprecated class
* Use core WC methods on the renewal order passed to scheduled_subscription_payment()
to process the payment rather than having to call special Subscriptions API methods
like WC_Subscriptions_Manager::process_subscription_payments_on_order() and
WC_Subscriptions_Manager::process_subscription_payment_failure_on_order()
* Use the original order's total to determine the amount to charge up-front to
save having to call WC_Subscriptions_Order::get_total_initial_payment()
* Use a description for recurring payments that is consistent with standard orders,
i.e. "{Site Name} - Order {order_id}" instead of a description that does not include
the renewal order's ID. This helps link payments to orders (which can then be traced
to subscription/s).
2015-07-24 18:17:36 -07:00
Brent Shepherd
4c8e3788b3
Simplify: Support admin payment method changes
...
A new feature of Subscriptions v2.0.
2015-07-24 18:17:28 -07:00
Brent Shepherd
e689fe8f15
Add WC_Addons_Gateway_Simplify_Commerce_Deprecated
...
To manage compatibility with Subscriptions 1.n
2015-07-24 18:06:35 -07:00
Tamara Zuk
1bd4cf8fad
Define new `WC_DOING_AJAX` constant
...
This constant will allow extensions to selectively load files etc.
during a WC AJAX request.
2015-07-24 15:50:50 -04:00
Brent Shepherd
c8405d3d29
Remove deprecated comments and commented out code
...
Because WC_Meta_Box_Product_Data::save_variations() doesn't need to be
deprecated.
2015-07-23 22:24:07 -07:00
Brent Shepherd
ffdc13fb4b
Remove duplication in WC_Ajax::save_variations()
...
And use the original WC_Meta_Box_Product_Data::save_variations() method instead.
2015-07-23 22:15:44 -07:00
Brent Shepherd
4100204344
Match the two save_variations()
...
Specifically, match WC_Meta_Box_Product_Data::save_variations() to the newer,
almost identical, WC_Ajax::save_variations(), added in SHA: ae18af8c
(so that
we can eventually replace the newer WC_Ajax::save_variations().
2015-07-23 22:12:31 -07:00
Claudio Sanches
948c5c9cfc
Fixed the sanitization for text-based default attributes
2015-07-22 21:40:06 -03:00
Claudio Sanches
aa263ddc1e
[API] Updated variable product attributes update for the new standard of WC 2.4
2015-07-22 21:07:05 -03:00
Claudio Sanches
f3ac5657a4
Fixed link all variations when use text-based attributes
2015-07-22 18:57:50 -03:00
Claudio Sanches
1614696996
Fixed duplicated docblock
2015-07-22 12:05:25 -03:00
Claudio Sanches
6cac5e0f47
PayPal - Remove decimals when order currency is HUF, JPY or TWD, closes #8590
2015-07-22 11:43:12 -03:00
Claudio Sanches
aec1e28549
[API] Check if REDIRECT_URL exists, closes #8632
2015-07-21 20:08:19 -03:00
Claudio Sanches
7b6680f4ef
Just ignore round more if have a old version of PHP, closes #8629
2015-07-21 19:57:52 -03:00
Claudio Sanches
050d073678
Removed double ;; #8629
2015-07-21 19:49:05 -03:00
Claudio Sanches
70efb53934
Introduces the wc_cart_round_discount() function #8629
2015-07-21 19:45:13 -03:00
Claudio Sanches
e1858d299b
Changed WC_Download_Handler::count_download() from private to public, closes #8623
2015-07-21 19:03:40 -03:00
Claudio Sanches
c95988bc8a
Improve password sanitization in WC_Settings_API, closes #8627
...
@mikejolley
2015-07-21 18:37:12 -03:00
Claudio Sanches
7787673d33
Fix excluded posts ID in json_search_products()
2015-07-20 18:46:37 -03:00
Patrick Rauland
c7cbe3e681
removing blank line.
2015-07-20 13:56:08 -06:00
Claudio Sanches
f0b3d2fd9b
Code tweaks for #8620
2015-07-20 14:36:12 -03:00
Claudio Sanches
9f7e1f3054
Merge pull request #8620 from JodiWarren/master
...
Moves the loop product title into a function and creates a new action for it.
2015-07-20 14:27:31 -03:00
Claudio Sanches
6f45872646
Disabled DFW feature pointer for products, closes #8595
2015-07-20 14:15:51 -03:00
Jodi Warren
2fb5f5bf78
Change product title to a hooked function. Fixes #8601
2015-07-20 18:10:56 +01:00
Claudio Sanches
0eac4914df
[2.3] Fix check for relative downloadable product path, closes #8612
2015-07-20 13:56:28 -03:00
Claudio Sanches
6781f37fed
Merge branch 'master' of github.com:woothemes/woocommerce
2015-07-20 13:41:26 -03:00
Claudio Sanches
791c20ae51
Added param for exclude posts from wc-product-search, closes #8613
2015-07-20 13:41:14 -03:00
Claudio Sanches
4ff87d26f7
Merge pull request #8615 from franticpsyx/additional-shipping-methods-filter
...
[2.4] Filter to enable deprecated addon rates
2015-07-20 12:56:18 -03:00
Claudio Sanches
3a0d2f7c89
[API] Fixed edit coupon description, closes #8614
2015-07-20 12:49:21 -03:00
Manos Psychogyiopoulos
79516ad2b4
typo
2015-07-20 12:13:29 +03:00
Manos Psychogyiopoulos
504f646310
enable deprecated addon rates
2015-07-20 12:08:39 +03:00
Manos Psychogyiopoulos
18a7c6b7fb
back-compat with text-based attributes: defaults don't work in WC2.4
2015-07-18 12:34:41 +03:00
Claudio Sanches
095162df15
Merge branch 'master' of github.com:woothemes/woocommerce
2015-07-17 16:29:31 -03:00
Claudio Sanches
d976cd8340
Disabled states for AX, closes #8594
2015-07-17 16:29:21 -03:00
Josh Koberstein
38856b29c4
Correcting indentation
2015-07-16 16:02:33 -07:00
Josh Koberstein
922715791c
Passing array of term ids to wp_set_object_terms instead of term names.
2015-07-16 15:31:14 -07:00
Claudio Sanches
ebcc3c1920
Fixed docblock typo
2015-07-16 16:57:42 -03:00
Claudio Sanches
9e41552342
Removed all "@return void"
2015-07-16 16:55:48 -03:00
Claudio Sanches
8d2a98eab1
Improved some docblocks
2015-07-16 16:29:01 -03:00
Claudio Sanches
83bdf82767
Fixed docblock for WC_API_Orders::get_variation_id()
2015-07-16 16:14:39 -03:00
Claudio Sanches
eebd47ecf8
Improved truncated key description
2015-07-16 15:45:00 -03:00
Claudio Sanches
bb0811643c
Merge branch 'master' of github.com:woothemes/woocommerce
2015-07-16 15:42:11 -03:00
Claudio Sanches
e0be5a2e9f
Added truncated consumer key and last access fields in woocommerce_api_keys table
2015-07-16 15:42:00 -03:00
Mike Jolley
d1db647c05
Fix validate_sale_items logic for variable products
...
Closes #8591
2015-07-16 17:53:52 +01:00
Mike Jolley
cbf373ab3c
kses store notice
2015-07-16 17:06:15 +01:00
Claudio Sanches
7cc0c6044f
Return bool in WC_Emails::send(), closes #8593
2015-07-16 12:56:34 -03:00
Claudio Sanches
0806a66fc5
Fixed Grouping select, stop select if do not have parent_post and allow clear the selection, closes #8586
2015-07-16 12:51:38 -03:00
Mike Jolley
7285ce74e6
Tax display notice
2015-07-16 10:15:45 +01:00
Claudio Sanches
b3f1d41974
Merge pull request #8583 from bekarice/fix-create-api-key-typo
...
[2.4] Fix typo while creating API keys
2015-07-15 19:25:45 -03:00
Beka Rice
f227569659
Fix broken WooCommerce 101 video embeds
2015-07-15 18:19:47 -04:00
Beka Rice
54e00fc84a
Fix typo while creating API keys
...
adds missing closing parentheses around user email:
https://cldup.com/pvTlBGBMot.png
2015-07-15 17:30:41 -04:00
Claudio Sanches
0ca5b9f892
Added woocommerce_order_status_changed to order updated webhook, closes #8581
2015-07-15 16:39:11 -03:00
Claudio Sanches
9aca8d689b
Added HTML class row-title for coupons, orders, api keys and webhooks table lists
2015-07-15 15:45:57 -03:00
Mike Jolley
f42fa85eab
Variation tax status should always come from parent
2015-07-15 19:12:12 +01:00
Mike Jolley
db61edcb36
Unused vars
2015-07-15 16:37:30 +01:00
Mike Jolley
ed451f278f
Unused var
2015-07-15 16:37:29 +01:00
Mike Jolley
afbfd2b913
Tweak gzread
2015-07-15 16:37:29 +01:00
Mike Jolley
3749a10a4a
empty $theme_file
2015-07-15 16:16:10 +01:00
Mike Jolley
47c47ab93c
Avoid set_time_limit error supression
2015-07-15 16:14:32 +01:00
Mike Jolley
28c75c63dc
Unused code
2015-07-15 16:04:49 +01:00
Mike Jolley
db473cc369
Move refund logic into main order class.
...
These methods are not defined in the abstract.
2015-07-15 16:02:26 +01:00
Mike Jolley
9f703b96db
delete_version_transients in blocks of 1000 to prevent timeouts
...
Uses cron. @claudiosmweb Closes #8431
2015-07-15 15:12:54 +01:00
Mike Jolley
b38fbed7c4
Merge pull request #8580 from thenbrent/item_meta_hideprefix
...
Add $hideprefix param to WC_Order_Item_Meta::get_formatted_legacy()
2015-07-15 14:36:22 +02:00
Mike Jolley
0f7342a70d
Fix grouped product label
2015-07-15 13:33:45 +01:00
Brent Shepherd
83a87f238a
Add $hideprefix param to get_formatted_legacy()
...
To honour the $hideprefix when dealing with legacy item meta data.
2015-07-14 19:15:31 -07:00
Shiva Poudel
cebaf41d34
Tweak - Template check docs btn as primary
2015-07-15 04:48:46 +05:45
Shiva Poudel
3fb422a7c2
Fix - Nonce check when hide admin notices
2015-07-15 04:40:47 +05:45
Shiva Poudel
5f30308512
No longer use of frontend colors notice
2015-07-15 04:39:28 +05:45
Shiva Poudel
6c936a162d
Tweak coding standard for update notice script
2015-07-15 04:38:32 +05:45
Claudio Sanches
a28c1c1e33
Fixed language update for en_US, closes #8568
2015-07-14 12:18:51 -03:00
Claudio Sanches
d2686f3d2e
Don't show language update message for en_US #8568
2015-07-14 12:04:14 -03:00
Claudio Sanches
409dd81ab9
Fixed unit tests for WC_Cart::get_remove_url()
2015-07-14 12:02:32 -03:00
Claudio Sanches
08b59015c4
Merge pull request #8573 from vicky081/patch-6
...
get_permalink to wc_get_page_permalink
2015-07-14 11:22:32 -03:00
Mike Jolley
c707f771ad
serializeJSON to maintain POST data structure
...
@claudiosmweb
2015-07-14 13:49:45 +01:00
Mike Jolley
c412a2eb3e
Set $post during variation addition
2015-07-14 13:49:13 +01:00
Vignesh
0588c9fe1c
get_permalink to wc_get_page_permalink
...
changed get_permalink to wc_get_page_permalink on class-wc-cart.php
2015-07-14 17:49:29 +05:30
Mike Jolley
8bf1cf60c5
Set $post global so its available like within the admin screens
...
@claudiosmweb
2015-07-14 12:28:31 +01:00
Mike Jolley
015ace770d
Split up bulk edit ajax methods
2015-07-14 11:39:48 +01:00
Mike Jolley
9b21c1c7a1
Add deprecation notices for woocommerce_update_option_X and keep this action working.
...
Before this change, options would be overwritten by the new filters.
2015-07-14 10:10:07 +01:00
Claudio Sanches
57ab3dc0c2
Improved WC_Language_Pack_Upgrader #8568
2015-07-13 17:29:45 -03:00
Claudio Sanches
2cc7fcfa3f
Fixed missing textdomains
2015-07-13 11:03:03 -03:00
Mike Jolley
53916e38bb
Just return the URL
2015-07-13 11:00:10 +01:00
Mike Jolley
ef89f82014
wc_get_page_permalink should check page_id was found
2015-07-13 10:59:34 +01:00
Vignesh
e063d068d7
get_permalink to wc_get_page_permalink
...
Changed get_permalink to wc_get_page_permalink.
2015-07-13 15:01:52 +05:30
Mike Jolley
2f3cf18013
filter empty values during upgrade
2015-07-13 09:41:28 +01:00
Nicola Mustone
35d8572e0b
new outdated templates tutorial link
2015-07-13 09:36:36 +02:00
Claudio Sanches
eea72552f6
Added support for Jetpack Markdown in product short description, closes #8563
2015-07-11 21:35:47 -03:00
Max Rice
a9f6f7fdfe
Introduce woocommerce_order_full_refunded_status filter
...
In certain situations it’s undesirable to automatically change the
order status for an order that has been fully refunded. For example, an
order processed with a credit card whose charge has been authorized but
not yet captured is typically voided, not refunded since no funds have
actually been transferred. In that case, it’s ideal to allow gateways
to change the status to cancelled instead.
2015-07-10 19:51:02 -04:00
Claudio Sanches
9e4dc64f55
Merge branch 'master' of github.com:woothemes/woocommerce
2015-07-10 20:17:27 -03:00
Claudio Sanches
b8a28bdab4
Admin variations - Cancel button reset the default form values
...
@mikejolley
2015-07-10 20:16:35 -03:00
Mike Jolley
86e0aa106e
bulk_edit
2015-07-11 00:05:13 +01:00
Mike Jolley
3ec4003bbb
Move add variation button and toolbars
2015-07-11 00:04:16 +01:00
Patrick Garman
fb84486798
Update WC_Logger to include actions on add & clear methods
...
This allows for easy integrating with third party logging services.
2015-07-10 14:26:30 -05:00
Claudio Sanches
a01660cbba
Fixed WC_API_Products::clear_product()
2015-07-10 10:49:18 -03:00
Mike Jolley
157503a6d3
20 not 25
2015-07-10 14:26:39 +01:00
Mike Jolley
3446880705
Translators
2015-07-10 14:02:52 +01:00
Mike Jolley
33877624ac
Welcome page content
2015-07-10 14:00:21 +01:00
Mike Jolley
2834eff221
Merge branch 'variations-8477'
...
Conflicts:
assets/js/frontend/add-to-cart-variation.js
assets/js/frontend/add-to-cart-variation.min.js
assets/js/frontend/add-to-cart.min.js
assets/js/frontend/checkout.min.js
assets/js/frontend/geolocation.min.js
2015-07-10 11:37:05 +01:00
Mike Jolley
1cd2e558ed
Remove add to cart variable from links
...
Closes #8554
2015-07-10 11:17:21 +01:00
Mike Jolley
8bf4469178
woocommerce_save_account_details_errors action
...
Closes #8532
2015-07-10 11:11:51 +01:00
Mike Jolley
ea82ce9f06
Tweak display name to only change if set to an email
...
#8532
2015-07-10 11:09:14 +01:00
Mike Jolley
a976d8e2ba
Don't add hyphens for cities
...
Closes #8547
2015-07-10 11:02:08 +01:00
Mike Jolley
d5a74203c2
Only need one numeric check
2015-07-10 10:48:29 +01:00
nils-fredrik@maksimer.no
3c2b54b360
Fix for #8550
2015-07-10 09:32:10 +02:00
Claudio Sanches
76b312b9e7
Use always min.js files on admin
2015-07-10 01:32:30 -03:00
Claudio Sanches
987a789367
Admin variations - Show link all variations bulk action
2015-07-10 00:49:52 -03:00
Claudio Sanches
3394277a86
Admin variations - Set _stock_status when link all variations
2015-07-09 18:28:02 -03:00
Claudio Sanches
c5ae7b18c7
Created woocommerce_ajax_save_product_variations action
2015-07-09 17:43:46 -03:00
Claudio Sanches
a64695b7f5
Admin variations - Added new triggers and removed data-product_id
2015-07-09 17:31:48 -03:00
Claudio Sanches
ce08c336e9
Updated jquery.payment.js to version 1.2.4
2015-07-09 17:17:34 -03:00
Mike Jolley
506b5ef3f6
Set total after update_shipping
...
Based on add_shipping code Closes #8475
2015-07-09 16:48:34 +01:00
Mike Jolley
60193c7861
Pass product to woocommerce_ajax_variation_threshold
2015-07-09 16:31:46 +01:00
Mike Jolley
30b01ff9b6
Add filter to force price display
2015-07-09 16:15:05 +01:00
Mike Jolley
85855938ec
woocommerce_ajax_variation_threshold
2015-07-09 16:04:46 +01:00
Mike Jolley
5f8a5bcb63
We don't need get_transient_version for children transients because other products do not affect this.
2015-07-09 16:02:26 +01:00
Mike Jolley
eaed944048
Tweak template logic to load variations when needed
2015-07-09 15:58:58 +01:00
Mike Jolley
65f19d5ca7
Ajax variation handling
...
If there are more variations than the threshold allows (set to 20
currently) this loads the matching variation via ajax instead of inline
in the HTML. #8477
2015-07-09 15:56:20 +01:00
Claudio Sanches
c4c2ebd038
Merge pull request #8536 from vicky081/patch-3
...
Class attribute added for Checkbox in settings
2015-07-09 11:43:00 -03:00
Vignesh
91faacb4c9
Return the output directly
...
Return the output directly instead of variable.
2015-07-09 13:39:29 +05:30
Mike Jolley
34f149bcbf
Replace dash with colon
2015-07-08 23:51:44 +01:00
Mike Jolley
fedfa53754
expand/close
2015-07-08 23:46:19 +01:00
Mike Jolley
a219243e60
Move link all variations to bulk actions
2015-07-08 23:34:21 +01:00
Mike Jolley
8161cbd095
Change remove buttons into links
2015-07-08 23:08:07 +01:00
Claudio Sanches
042a6644e2
Ajaxify grouped product option, closes #7751
2015-07-08 18:38:17 -03:00
Claudio Sanches
89cef9ff02
Introduces methods to WC_Abstract_Order for get customer full name
...
New methods:
WC_Abstract_Order::get_formatted_billing_full_name()
WC_Abstract_Order::get_formatted_shipping_full_name()
closes #8535
cc: @mikejolley
2015-07-08 18:00:19 -03:00
Claudio Sanches
94aa610dc0
Admin variations - Prompt when changing page #6995
2015-07-08 17:45:19 -03:00
Claudio Sanches
0a820f055f
Admin variations - Add cancel changes button #6995
2015-07-08 16:10:45 -03:00
Claudio Sanches
064af9a54c
Admin variations - Split the save button from the link/add buttons #6995
2015-07-08 15:53:00 -03:00
Claudio Sanches
bed51c6d0c
Removed code test on WC_AJAX::save_variations()
2015-07-08 14:17:33 -03:00
Claudio Sanches
ffef95f56f
Fixed ajax variations posted data
2015-07-08 13:55:29 -03:00
Vignesh
8a4e7e34ca
Update class-wc-admin-settings.php
2015-07-08 20:42:04 +05:30
Vignesh
4eef4bf846
Class attribute added for Checkbox in settings
...
Noticed class attribute missed in checkbox of admin settings function, this class name will help for developer also, can you please consider this as my proposal?
2015-07-08 20:24:36 +05:30
Mike Jolley
38d0d0dcad
trim invalid chars from sum
2015-07-08 11:02:20 +01:00
Mike Jolley
d19a7d2c2e
Shipping debug for all users
2015-07-08 11:02:20 +01:00
Claudio Sanches
2ec12a7985
Prevent errors when variation don't have sale price dates
2015-07-08 04:05:08 -03:00
Claudio Sanches
843a55a6b5
Admin ajax variations
2015-07-07 20:53:36 -03:00
Claudio Sanches
c03ea5625d
Fixed the delete all variable products action
2015-07-07 19:51:50 -03:00
Claudio Sanches
4f3fb07dc9
Added new styles for variable pagenav
2015-07-07 19:06:51 -03:00
Claudio Sanches
bbe3cb5b1b
Added bulk variation edit for increase and decrease prices
2015-07-07 17:35:21 -03:00
Claudio Sanches
8b681fddf7
Created bulk edit actions for variable sale schedule
2015-07-07 16:39:59 -03:00
Claudio Sanches
e69d172f6c
Fixed bulk variation edit and added cases to save regular and sales prices
2015-07-07 16:07:09 -03:00
Claudio Sanches
11ca22ef1a
Created _wc_save_product_price() private function
2015-07-07 16:06:34 -03:00
Mike Jolley
85dcee63ae
Flat rate shipping costs should ignore virtual items.
...
Closes #8506
2015-07-07 10:41:56 +01:00
Claudio Sanches
268a696918
Initial bulk edit variations actions
2015-07-06 22:50:35 -03:00
Claudio Sanches
de01133142
Save only updated/edited variations and fixed the variations sync and product cache/transients
2015-07-06 19:07:01 -03:00
Claudio Sanches
af0b786104
Improved relative path check #8503
2015-07-06 15:02:15 -03:00
Claudio Sanches
e888294caa
[2.3] Fixed download URL for relative paths, closes #8503
2015-07-06 15:00:04 -03:00
Claudio Sanches
ffd63efbe2
Merge pull request #8513 from paulwilde/woocommerce-form-field
...
Refactor woocommerce_form_field to remove duplication.
2015-07-06 14:07:33 -03:00
Mike Jolley
fd6fd817a2
Merge pull request #8516 from Sk-Shaikat/master
...
Refund deleted hook parameter fix
2015-07-06 18:57:39 +02:00
Claudio Sanches
47eb3c5deb
Merge pull request #8523 from adnanoner/master
...
Add variable $order to action 'woocommerce_order_item_' . $item['type'] . '_html'
2015-07-06 13:52:35 -03:00
Mike Jolley
6676ed08fa
500 response on IPN fail
...
Closes #8519
2015-07-06 17:48:46 +01:00
adnanoner
725e3ee4e0
Add $order to action 'woocommerce_order_item_' . $item['type'] . '_html'
...
This comes in handy when you want change the line_items loop.
In my case I wanted to have a single line for each order items (per quantity) so I could edit the order and change the product for individual items. Would be appreciated if this could be merged.
2015-07-06 18:09:06 +02:00
Mike Jolley
270eb785da
Merge pull request #8522 from shivapoudel/wp_json_encode
...
Encode pointers into json, with some sanity checks
2015-07-06 18:07:02 +02:00
Mike Jolley
e908055f31
Only check changelog for woothemes plugin URI plugins
...
Closes #8520
2015-07-06 16:02:34 +01:00
Mike Jolley
439ce9eed2
Merge branch 'save-fields-refactor-8495'
...
Closes #8495
2015-07-06 15:31:43 +01:00
Mike Jolley
2440717f72
live -> interactive
2015-07-06 14:52:41 +01:00
Shiva Poudel
3d328c92c4
Method should be conditional_includes
2015-07-06 15:34:31 +05:45
Shiva Poudel
ba2afde068
Encode pointers into json, with some sanity checks
2015-07-06 15:30:10 +05:45
Mike Jolley
792536bd8e
Prevent white space in report
...
Closes #8499
2015-07-06 10:18:23 +01:00
Claudio Sanches
ae18af8cc7
Added method to save variations via ajax
2015-07-06 01:50:20 -03:00
Claudio Sanches
2dc0ef3f86
Added method to set the pagenav fields when add and remove variations
2015-07-06 01:09:36 -03:00
Claudio Sanches
c3b5ad2337
Refactored the link all variations, remove variation and add variation methods
2015-07-05 23:55:08 -03:00
Claudio Sanches
ee437bb646
Improved the navigation and tested if variations have some edition
2015-07-05 22:31:56 -03:00
Claudio Sanches
3de8405cc9
Created variations ajax pagination
2015-07-05 22:00:38 -03:00
Claudio Sanches
b16b026647
Load initial variations when click on variations tab
2015-07-05 20:19:45 -03:00
Mike Jolley
18c6a940f1
Merge branch 'onboarding'
...
Conflicts:
assets/css/admin.css
assets/css/select2.css
assets/css/woocommerce-layout.css
assets/css/woocommerce.css
assets/js/admin/order-backbone-modal.min.js
includes/admin/class-wc-admin-help.php
includes/admin/class-wc-admin.php
includes/admin/views/html-admin-page-status-report.php
includes/admin/views/html-notice-install.php
includes/admin/views/html-notice-template-check.php
includes/admin/views/html-notice-theme-support.php
includes/admin/views/html-notice-tracking.php
includes/class-wc-install.php
includes/class-wc-language-pack-upgrader.php
includes/shipping/international-delivery/class-wc-shipping-international
-delivery.php
2015-07-04 23:11:12 +01:00
Mike Jolley
1257343006
Added missing locales based on popularity (from tracker)
2015-07-04 22:35:23 +01:00
Mike Jolley
45d89438c7
Ensure cart item key is set
2015-07-04 15:25:08 +01:00
Mohaiminul Islam
653bb17414
Add new parameter on refund deleted hook
...
This hook parameter dose not helps to get order id when trigger in action due to delete that post. This should add '$order_id' as parameter
2015-07-04 15:22:19 +06:00
Mohaiminul Islam
64f2e2bed0
Refund deleted hook parameter fix
...
This hook parameter dose not trigger in action due to delete that post. This should set '$order_id' as parameter
2015-07-04 14:17:05 +06:00
Paul Wilde
e62291963f
Set featured image labels for product image.
2015-07-03 20:57:16 +01:00
Paul Wilde
5c5e6fb015
Refactor woocommerce_form_field so that the container, label and description are not repeated for every field type.
2015-07-03 20:37:47 +01:00
Claudio Sanches
3d59933d6b
Created initial methods to load variations by ajax
2015-07-02 17:42:22 -03:00
Andrew Wikel
968586f2ed
Update to reflect current PayPal menu structure
...
Just update instructions to be more accurate.
2015-07-01 14:53:16 -05:00
Mike Jolley
02464c62cf
Revised HELP tabs
...
Added links to education partners (@jobthomas) and included WooCommerce
101 videos in context.
2015-07-01 15:22:43 +01:00
Mike Jolley
f779166bd1
onboarding site links #7829
2015-07-01 13:38:24 +01:00
Mike Jolley
84f0b541ed
Tweak wording and US states
2015-07-01 13:30:34 +01:00
Mike Jolley
7d1a016502
Adjust sales report to deal with partial shipping refunds and full refunds
2015-07-01 12:11:21 +01:00
Mike Jolley
99b96daf70
Wording for inc/ex prices
2015-06-30 14:06:36 +01:00
Mike Jolley
049c95e724
Filter all item data
...
Closes #8361
2015-06-30 13:40:32 +01:00
Mike Jolley
dc00921ced
Merge pull request #8486 from justinshreve/get-price-suffix-price-param
...
Add $price and $qty parameters to get_price_suffix
2015-06-30 12:59:43 +02:00
Justin Shreve
eb85cd1682
Add $price and $qty to get_price_suffix so custom values can be passed into get_price_including_tax and get_price_excluding_tax
2015-06-29 19:24:48 +00:00
Justin Sainton
4d5d018a34
Deprecate PHP4 constructor usage in widgets. This is deprecated in upcoming PHP versions.
2015-06-29 11:46:03 -07:00
Claudio Sanches
c13409150f
Fixed tests for get_woocommerce_currencies()
...
@mikejolley
2015-06-29 15:13:42 -03:00
Gregory Karpinsky
9094bb0662
Do not FATAL on $product->has_file
2015-06-29 09:08:16 -04:00
Mike Jolley
eae15e9d72
Merge pull request #8453 from corsonr/low_stock_email_tweak
...
Add product stock in low stock email notification
2015-06-29 12:22:29 +02:00
Remi Corson
66b6536054
no more brackets
2015-06-29 11:06:41 +02:00
Remi Corson
a2a903d71a
fixed string
2015-06-29 09:57:58 +02:00
Mike Jolley
d0a41989c9
Merge pull request #8451 from slash1andy/patch-1
...
Changed "pending" to "processing"
2015-06-28 16:48:03 +02:00
roykho
c208928b0e
remove hardcoded tree type
2015-06-27 07:41:24 -07:00
Claudio Sanches
289e44e1db
Merge pull request #8471 from vicky081/patch-1
...
Removed Commented Code
2015-06-27 09:13:52 -03:00
Gerhard
230301e6da
Don't reveal username when login failed on valid email login
2015-06-26 14:15:31 +02:00
Claudio Sanches
ec0783f382
Fixed deprecated woocommerce_lostpassword_url() and lost password url on myaccount/form-login.php
...
ref #8459
2015-06-25 15:17:06 -03:00
Claudio Sanches
22ac2f56bf
Added Argentine currency and symbol
2015-06-25 12:58:58 -03:00
Vignesh
1241dcee69
Removed Commented Code
2015-06-25 21:24:05 +05:30
Remi Corson
67400956eb
add product stock in low stock email notification
2015-06-25 10:09:12 +02:00
Andrew Wikel
6b5cf56b66
Changed "pending" to "processing"
...
reflects more accurate order statuses.
2015-06-24 15:57:28 -05:00
Claudio Sanches
6e114d4f3c
Updated the docblock for deprecated vars in woocommerce_get_product_thumbnail(), closes #8441
2015-06-23 12:46:37 -03:00
Claudio Sanches
349fc2f665
[API] post__in filter for v2
2015-06-23 11:51:40 -03:00
Claudio Sanches
e003b7803f
Merge pull request #8440 from kilbot/patch-4
...
Add post__not_in filter for REST API requests
2015-06-23 11:50:36 -03:00
Claudio Sanches
9dc28be577
Support HTTP_X_HTTP_METHOD_OVERRIDE in API old versions
2015-06-23 11:49:19 -03:00
Paul Kilmurray
9b848fb1bd
Add post__not_in filter for REST API requests
...
To match the `post__in` filter above
2015-06-23 20:48:19 +08:00
Paul Kilmurray
a030ab52cb
Allow HTTP method to be overwritten by HTTP_X_HTTP_METHOD_OVERRIDE
...
For the same reasons [outlined here](https://github.com/WP-API/WP-API/issues/964 ), ie: Backbone uses X-HTTP-Method-Override.
2015-06-23 20:42:39 +08:00
Mike Jolley
71f2c25da4
Calc totals should not calc tax if disabled
2015-06-23 13:29:38 +01:00
Mike Jolley
84bc6e1b1a
Merge branch 'geolocate-cache'
...
Conflicts:
includes/class-wc-customer.php
Closes #7939
2015-06-23 12:26:03 +01:00
Mike Jolley
14c88b49bc
Tweak option labelling
2015-06-23 12:20:13 +01:00
Mike Jolley
00d574a929
get_taxable_address() should get postcode and city too.
...
@SiR-DanieL Can you check this?
2015-06-23 11:50:15 +01:00
Mike Jolley
1801f57a39
Fix for permalink structures containing index.php
2015-06-23 11:45:04 +01:00
Mike Jolley
817e5355fd
Pass $item object, not item meta array
...
Closes #8419
2015-06-23 10:24:13 +01:00
Claudio Sanches
b43abff674
Merge pull request #8415 from justinshreve/oauth-7928
...
Fix issues with our OAuth implementation, including nonconformance to spec. Closes #7928
2015-06-22 15:00:51 -03:00
Justin Shreve
819a4fae0d
wp_endswith doesn't actually exist (its a wpcom/jetpackism) - update with a simple substr check
2015-06-22 17:58:50 +00:00
Claudio Sanches
c92bc6d865
Merge pull request #8406 from justinshreve/api-basic-auth-8256
...
Implement full basic authentication & query string auth without mixing the two, closes #8256
2015-06-22 14:06:07 -03:00
adnanoner
d07e567050
add $args to woocommerce_refund_created action hook
...
#8432
2015-06-22 17:54:45 +02:00
Mike Jolley
9adbdd4a2c
Tweak URL generation before redirect
2015-06-22 15:30:42 +01:00
Mike Jolley
eb4cbaf69f
get_taxable_address does not need to handle geolocation_ajax any more
2015-06-22 15:30:34 +01:00
Mike Jolley
8dbd30e76b
Merge branch 'add-email-notification-for-partial-refunds-issue-8278'
2015-06-22 15:01:17 +01:00
Mike Jolley
07cc12049d
Merge remote-tracking branch 'origin/add-email-notification-for-partial-refunds-issue-8278' into add-email-notification-for-partial-refunds-issue-8278
2015-06-22 14:59:51 +01:00
Mike Jolley
f988aae387
Use hashes and server side redirection
2015-06-22 14:55:15 +01:00
davidlenehan
d7538559a8
Pulling customs refund email fields from wp_options
...
Pulling customs refund email fields from wp_options correctly now and
overriding the basic lookup for subject and heading.
2015-06-22 14:18:44 +01:00
davidlenehan
a171407bcb
Adding form fields for partial refund emails
...
This is not a working solution yet, looking for feedback on ho west to
implement this
2015-06-22 13:36:47 +01:00
davidlenehan
47c18b1947
Fixing issue where email settings were blank
...
Fixing issue where email strings were blank for refunded orders in
wp-admin > WooCommerce > Settings > emails
2015-06-22 11:14:19 +01:00
Mike Jolley
5937a08696
Fix cat dropdown URL
...
Because a filter is not a fix :)
Closes #8412
2015-06-22 10:22:15 +01:00
Mike Jolley
0d6ec24a83
Merge branch 'pr/8413'
2015-06-22 10:14:31 +01:00
Mike Jolley
e967c1e01c
Tweak filters - move to format_string
2015-06-22 10:14:21 +01:00
fhugas
e0c81c5fb8
Removed redundant strtolower()
...
Removed the redundant strtolower on line 43 in the private function get_file_name_from_class() which is only called from line 66 using a $class variable that is just strtolower()ed on line 65
2015-06-21 23:44:47 +02:00
Justin Shreve
fcab013d53
$enc_type for http_build_query() is only available in PHP 5.4+
...
go back to a normalization approach
2015-06-19 23:03:45 +00:00
Justin Shreve
482303c0f9
Don't convert nested parameters to strings.
...
Switch to the native http_build_query instead of our own normalize function.
2015-06-19 16:11:17 +00:00
Justin Shreve
59bc17e0cb
Check before building the current URL to see if a trailing slash should be appended or not, that way if a request includes one, the signature still matches.
2015-06-19 16:05:23 +00:00
Justin Shreve
c43f9157c3
When generating the signature to compare, append a trailing &.
...
The OAuth spec (http://tools.ietf.org/html/rfc5849#section-3.4.2 ) states that a & character must be present, even if a token secret is not a part of the request.
2015-06-19 15:05:51 +00:00
Nicola Mustone
c7e1540dea
added filters for emails placeholders
2015-06-19 17:01:37 +02:00
Justin Shreve
9e2f0f55d8
Remove reauth endpoint. It's not going to work the way we want it to. If clients need to log out (like a browser), they can clear the sessions per browser. Also returns JSON error when auth is not returned correctly.
2015-06-19 13:42:10 +00:00
Justin Shreve
8da19e4dae
Provide some directions in the Basic auth input box so the user knows where to provide the API key and secret.
2015-06-19 13:42:10 +00:00
Justin Shreve
d63f7d014f
Implement basic auth improvements and query string fall back.
...
If the key and secret query strings are provided, do auth based on those. If not, and the Basic auth headers are set, do full basic auth (including sending the correct headers).
Also implements a /reauth endpoint for basic auth.
2015-06-19 13:42:10 +00:00
Justin Shreve
ade8db4f21
Load v2 files when v2 of the API is requested. Add rewrite support for v3 and load the 'default' API files for those requests.
2015-06-19 13:42:10 +00:00
Justin Shreve
c9a2611d33
Version off the current api files into a v2 folder.
2015-06-19 13:42:10 +00:00
Mike Jolley
1e5d508675
woocommerce_removed_coupon
...
since the other action is ‘woocommerce_applied_coupon’ Closes #8404
2015-06-19 13:50:59 +01:00
Mike Jolley
a8f88ec8d7
Merge pull request #8409 from justinshreve/prevent-duplicate-location-code-notice
...
Prevent duplicate key name 'location_type_code' MySQL error
2015-06-19 13:45:35 +01:00
Mike Jolley
5381dddff9
Merge remote-tracking branch 'origin/master'
2015-06-19 13:43:34 +01:00
Mike Jolley
f5693309e2
Merge branch 'pr/8408'
2015-06-19 13:43:27 +01:00
Mike Jolley
e08e123988
Note version since
2015-06-19 13:43:18 +01:00
Mike Jolley
126a662968
Merge pull request #8398 from justinshreve/sku-space-search-8395
...
Fix searching for SKUs with spaces (#8395 )
2015-06-19 13:38:09 +01:00
Mike Jolley
7e2ba5e05a
Ajax endpoint should always be relative
2015-06-19 13:30:57 +01:00
Mike Jolley
c136d4ffd8
Merge branch 'master' into add-email-notification-for-partial-refunds-issue-8278
2015-06-19 13:05:52 +01:00
Mike Jolley
928b1cca2f
Use DKK symbol
2015-06-19 12:15:14 +01:00
Paul Kilmurray
3538d02ca9
Allow decimal stock quantity via REST API
...
The WooCommerce default is to validate stock quantity as integer, however some users find it useful to override this to allow any float quantity, eg:
```php
remove_filter('woocommerce_stock_amount', 'intval');
add_filter( 'woocommerce_stock_amount', 'floatval' );
```
Currently the API forces stock quantities to integer, this change will allow decimal quantities.
2015-06-19 12:07:10 +08:00
Justin Shreve
6a1d3f0032
In create_tables, drop the location_type_code index before doing a dbDelta, otherwise a duplicate key error occurs.
2015-06-19 00:47:18 +00:00
Gabor Javorszky
1dfb27f928
Adds WC_Abstract_Order->get_address
...
Adds a function to retrieve order address in non-localized, raw, non-formatted way.
2015-06-19 01:43:31 +01:00
James Koster
82df867276
text color. #7841
2015-06-18 14:46:25 +01:00
davidlenehan
4c2982affe
Removing an unused file
...
Deleting a file no longer needed for this.
2015-06-18 12:00:14 +01:00
davidlenehan
718d550252
Merging refund email template files
...
Changing previous commit to merge templates for partial and full
refunds to cut down on files.
2015-06-18 11:34:21 +01:00
Mike Jolley
af83181a25
Set to default locale if QS does not match customer data in store
2015-06-17 16:56:26 +01:00
Mike Jolley
389ccd5761
Remove base location from script and don't rely on session storage
2015-06-17 16:56:06 +01:00
davidlenehan
8b02b02145
Add email notification for partial refunds
...
fixes #8278
Emails are now sent to the customer when a partial refund is issued. I
referenced #7785 when doing this.
When a full refund happens the email the customer receives is clear
enough that they are getting a full refund. However I thought it would
be useful to add a new line in these new partial refund emails that
states exactly the value of the partial refund as it may not be that
clear.
2015-06-17 15:35:54 +01:00
Mike Jolley
b8f644fe9e
Remove line breaks
2015-06-17 15:19:04 +01:00
Justin Shreve
55317e69e3
Move the wp_posts ID check out of the string matching so we can find by ID _OR_ find based on sku match
2015-06-17 13:59:39 +00:00
Mike Jolley
4a9c2aece9
Update option wording
2015-06-17 14:27:42 +01:00
Mike Jolley
b1441c05c1
Move geolocation to separate script
2015-06-17 14:16:35 +01:00
Mike Jolley
9886a805df
Fix up standards #7939
2015-06-17 13:59:04 +01:00
Mike Jolley
d939d7b395
Merge pull request #8391 from justinshreve/sale-date-8357
...
Make sure sale prices are properly applied when no from date is set and today is used as default (#8357 )
2015-06-17 13:49:53 +01:00
Mike Jolley
5ac994f4f2
Nonces
2015-06-17 13:35:09 +01:00
Justin Shreve
8ae228f535
Do a less than or equals to check in meta-box-product-data in the case of $date_from being exactly the current time.
2015-06-17 12:18:57 +00:00
Mike Jolley
33c298fea7
Experiment with appending geolocation to query string to prevent caching
2015-06-17 12:12:49 +01:00
Mike Jolley
9843608cd4
Move country field with other address fields
...
Closes #8263
2015-06-17 10:17:41 +01:00
Evan Mattson
2181cd1d26
rename $email_id to $email_key
...
`$email_id` here is not the same as `$email->id`, renaming to show this, and for consistency with similar code
2015-06-16 21:37:54 -04:00
Evan Mattson
c9c48b718e
identify current section by email key to be consistent
2015-06-16 21:36:36 -04:00
Justin Shreve
e1130005a5
When figuring out if to store a sale price, make sure $date_from is set to "today" when blank. The date meta was previously set, but the check to set the actual sale price saw $date_from as empty.
2015-06-16 20:00:16 +00:00
Tamara Zuk
bd7f07d29f
[2.3] Fix bug introduced in #8365
...
my mistake 🙀
2015-06-16 14:46:54 -04:00
Mike Jolley
a31a1911cd
Merge pull request #8388 from justinshreve/download-url-help-text
...
Update the help text to mention that we expect already encoded URLs
2015-06-16 18:09:12 +01:00
Claudio Sanches
1876227c9a
Removed dead variable and fixed coding standards on wc_create_page()
2015-06-16 13:08:30 -03:00
Justin Shreve
5d8b17bd6f
Update the help text to mention that we expect already encoded URLs.
2015-06-16 15:48:05 +00:00
Mike Jolley
bf9265309e
Merge pull request #8386 from jobthomas/onboarding
...
Edited copy text: consistency with second tab.
2015-06-16 15:45:59 +01:00
Mike Jolley
e626545f67
Shipping costs for new settings
2015-06-16 15:43:39 +01:00
Mike Jolley
b4574ba911
Remove code to view test product
2015-06-16 15:14:14 +01:00
Mike Jolley
f8151f416c
Merge branch 'text-attribute-handling'
2015-06-16 15:11:58 +01:00
Mike Jolley
622b11ae9f
Add version check to prevent pre-2.4 logic kicking in when not needed
...
@claudiosmweb
2015-06-16 15:10:53 +01:00
Claudio Sanches
dde7bc699b
Merge pull request #8385 from jobthomas/master
...
Copy edit shipping settings
2015-06-16 10:54:19 -03:00
Job
fd5fec705b
Copy edit shipping settings
...
users > customer's
2015-06-16 15:51:36 +02:00
Mike Jolley
09fb3a604b
[2.3] Small tweak to use email ID rather than classname directly
...
#8365
2015-06-16 14:47:03 +01:00
Mike Jolley
2501af0376
Merge pull request #8365 from tamarazuk/master
...
[2.3] Email settings save tweak
2015-06-16 14:43:07 +01:00
Mike Jolley
f414ab99b4
Merge pull request #8375 from justinshreve/negative-refund-amount-8346
...
Prevent negative refund amounts (#8346 )
2015-06-16 14:25:17 +01:00
Claudio Sanches
680605481f
Merge pull request #8383 from woothemes/pages-cant-be-created-on-install-issue-8269
...
Allow trashed pages to be republished, closes #8269
2015-06-16 10:15:52 -03:00