Claudio Sanches
ddeea547b1
Use WC_Shortcode_Products inside featured_products shortcode
2017-08-25 18:42:02 -03:00
Claudio Sanches
72df581c6f
Use WC_Shortcode_Products inside top_rated_products shortcode
2017-08-25 15:55:34 -03:00
Claudio Sanches
c0da59d75a
Use WC_Shortcode_Products inside best_selling_products shortcode
2017-08-25 11:46:47 -03:00
Claudio Sanches
3dabdda480
Apply WC_Shortcode_Products class into sale_products shortcode
2017-08-25 11:00:48 -03:00
Claudio Sanches
0cea847c63
Renamed $loop_name to $type
2017-08-24 22:22:42 -03:00
Claudio Sanches
d7bea55aae
Use WC_Shortcode_Products to render product shortcode results
2017-08-24 22:16:42 -03:00
Claudio Sanches
71019aadfe
Moved woocommerce_shortcode_products_query filter to parse_query_args
2017-08-24 21:24:51 -03:00
Claudio Sanches
461066d2b1
Allow query products by category on products shortcode
2017-08-24 21:24:05 -03:00
Claudio Sanches
429aecd400
Allow set loop name
2017-08-24 20:20:14 -03:00
Claudio Sanches
a398e4893c
Fixed static method and added default value for construct method
2017-08-24 20:11:18 -03:00
Claudio Sanches
51e80b944b
Apply new WC_Shortcode_Products class into WC_Shortcodes::products
2017-08-24 19:33:14 -03:00
Claudio Sanches
7958f9cca9
Ignore coding standards
2017-08-24 19:17:18 -03:00
Claudio Sanches
84cf4d0be8
Fixed query args
2017-08-24 18:59:04 -03:00
Claudio Sanches
4f18cea88b
Removed extra comments, params and static method
2017-08-24 15:30:44 -03:00
Claudio Sanches
321832ade4
Introduced new WC_Shortcode_Products class
2017-08-24 15:29:30 -03:00
Mike Jolley
30a85e9f8d
Merge branch 'pr/16036'
2017-08-09 10:11:20 +01:00
Mike Jolley
889a3cfdd5
Merge pull request #16111 from woocommerce/fix/15986
...
Improve tracking page validation
2017-07-25 21:04:16 +01:00
Jaydeep Rami
3522857d23
Fix typo in WooCommerce plugin ( #16135 )
...
* Fixed typo
* Fixed more typo
* Fixed more typo
* Fix tyop
* Fix more typo
* Fix more typo
* Fix typo
* Fix typo
* Fix typo
* Fix typo datatime object
* Fix short name of compat
* Fix typo: update short name
* Fix typo "deactive" to "deactivate" and short BW - Compat
* Fix typo "Backwards compat"
* Fix typo 'parameters'
* Fix more typo 'pararmeters'
* Fix typo 'compund'
* FIx typo order
* Fix typo
* Fix typo 'incorrecly'
* Fix typo 'genarate'
* Fix typo 'reletive'
* Fix typo 'Handly'
* Fix typo 'rotatated'
* Fix typo
* Fix typo 'additonal'
* Fix typos
2017-07-17 11:10:52 +01:00
terence1990
f93413920b
Changed template name to receipt
2017-07-15 17:41:34 +01:00
Mike Jolley
1c6a629d78
Check stock levels before showing payment form
2017-07-14 10:48:43 +01:00
Mike Jolley
ac4d2db43a
Improve tracking page validation
...
Ensures error messages are vague but reflect the posted data.
Closes #15986
2017-07-13 14:50:30 +01:00
Terence O'Donoghue
43eaa8356a
Fixed template reference spacing
2017-07-11 09:53:50 +01:00
Job
9ca5556067
Login > Log in spelling
...
“Log in” is the verb, not “login”
2017-06-15 11:53:59 +02:00
Mike Jolley
636ad8b652
Add a nonce and confirmation for logging out via the customer my account page
2017-06-12 14:02:29 +01:00
Mike Jolley
d3666738d8
Merge branch 'pr/15069'
2017-05-23 18:56:58 +01:00
Mike Jolley
db012b3a12
Merge pull request #15011 from woocommerce/fix/14999
...
Add abspath checks
2017-05-23 15:57:35 +01:00
Mike Jolley
d31a58b117
More abspath
2017-05-23 15:40:19 +01:00
Mike Jolley
7ad295d64d
Merge pull request #15076 from woocommerce/feature/14385
...
Show login form on the "pay for order" step
2017-05-16 09:31:53 +01:00
Mike Jolley
cfce278840
If logged out, show a form on the payment step so the customer can login.
...
Closes #14385
To test, create an order pending payment for a USER. If you use the
‘payment’ link on the edit order screen logged out you should see a
login form.
If you create an order and associate no user account, no form should be
shown and you don’t need to login.
2017-05-15 16:53:06 +01:00
Rasmus Bengtsson
185934fad9
Fix phpdoc to include params and correct types
2017-05-15 13:50:52 +02:00
Rasmus Bengtsson
6a7fc8650f
Remove unused local variables
2017-05-15 12:06:52 +02:00
Mike Jolley
aacb01d1e7
Merge branch 'pr/13503'
...
# Conflicts:
# assets/css/twenty-seventeen.css
# assets/css/woocommerce-layout.css
# assets/css/woocommerce-layout.scss
# assets/css/woocommerce.css
2017-04-27 12:46:05 +01:00
Mike Jolley
f0f1efcffd
Ensure object exists
...
fixes #14239
2017-04-11 19:29:20 +01:00
Mike Jolley
9757d2a0ce
Correct variable name
...
Fixes #14263
2017-04-11 18:29:55 +01:00
terenceneedssurgery
a86d4f62f3
Checkout: Order Pay to Template
2017-03-23 11:25:08 +00:00
Claudio Sanches
59c2849736
Changed version 2.7 to 3.0
2017-03-15 13:36:53 -03:00
Mike Jolley
d55653a408
Merge branch 'master' into fix-13498
...
# Conflicts:
# includes/class-wc-order.php
# tests/unit-tests/crud/data.php
2017-03-15 15:52:40 +00:00
Mike Jolley
49b782d20e
Correct formatting
2017-03-14 12:34:20 +00:00
fuzzguard
1a99235dc8
Adding in proper error handling from 'lostpassword_post'
...
Since WP version 4.4.0 the 'lostpassword_post' hook has had the ability to handle error messages from the WP_Error class. This allows errors to to occur BEFORE the username or email address are validated against the WP.
wp-login.php
/**
* Fires before errors are returned from a password reset request.
*
* @since 2.1.0
* @since 4.4.0 Added the `$errors` parameter.
*
* @param WP_Error $errors A WP_Error object containing any errors generated
* by using invalid credentials.
*/
do_action( 'lostpassword_post', $errors );
if ( $errors->get_error_code() )
return $errors;
Proposal is to have this same process be respected by WooCommerce Lost Password process.
2017-03-11 11:43:21 +11:00
Mike Jolley
8ab839a030
Replace template usage of dates
2017-03-10 16:35:47 +00:00
Aristeides Stathopoulos
10ffc92a73
Inline control structures are not allowed
2017-03-07 22:24:24 +02:00
Boro Sitnikovski
58d7e6d940
Fix direct access of order_date property
2017-01-31 17:29:09 +01:00
Claudio Sanches
ddc8ce93a4
Use notices functions in order tracking, closes #12874
2017-01-18 14:45:20 -02:00
Mike Jolley
66c3cff76d
More escaping
2017-01-06 14:09:36 +00:00
Justin Sternberg
d07d704187
Add the shortcode_atts call to WC_Shortcode_Cart::output
2017-01-03 13:17:04 -05:00
Justin Sternberg
6d21f2170e
Add the shortcode_atts call to WC_Shortcode_Checkout::output
2017-01-03 13:15:26 -05:00
Justin Sternberg
5f92dce1f3
Add the shortcode name param to the woocommerce_order_tracking shortcode
2017-01-03 13:13:27 -05:00
Justin Sternberg
d036123ebf
Add the shortcode name param to the woocommerce_my_account shortcode.
2017-01-03 13:12:12 -05:00
Mike Jolley
d7dfdd3d10
Wrap all deprecation calls.
2016-11-23 16:15:00 +00:00
Mike Jolley
00ed627b29
Data stores
2016-11-14 18:18:08 +00:00
Rami Yushuvaev
f27499b501
i18n Improvements ( #12078 )
...
* use %s in translations strings
* merge simmilar error strings
* i18n: use sprintf() in translation strings to make them easier to understand for translators
* i18n: remove sprintf() function from translation string with unused parameter
* i18n: move colons and brackets into the translation strings
* revert comit addaa5d
* Fix broken sprintf()
* i18n: move colons into the translation strings on error messages
* Fix Travis-CI Error: operator must be surrounded by a single space
2016-10-24 08:33:32 +01:00
Krzysztof Grabania
cb059f5af0
Added address type to filter
...
It will allow to modify address fields only for selected address type
2016-10-21 15:12:45 +02:00
Claudio Sanches
657c312cae
Fix strings case ( #12069 )
...
* Fixed case for all _e, esc_attr_e and esc_html_e strings
* Fixed case for all _n_noop strings
* Fixed case for all _x strings
* Fixed case for all __, esc_html__ and esc_attr__ strings
* Fixed a few more strings
* Fixed strings in unit tests
* Fix PayPal Standard case.
* Save Order text
2016-10-12 11:16:30 +01:00
Rami Yushuvaev
83e938af1e
i18n: Merge similar translation strings to reduce the total strings count #11905
2016-10-11 04:39:13 +03:00
Claudio Sanches
e6a956f795
Improve password reset using WP functions
2016-10-05 19:01:59 -03:00
Aristeides Stathopoulos
cc0b29ccf4
PEAR.Functions.FunctionCallSignature.SpaceAfterCloseBracket
2016-09-02 05:00:46 +03:00
Aristeides Stathopoulos
d4e3faf014
PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket
2016-09-02 04:51:31 +03:00
Aristeides Stathopoulos
0516e96843
PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket
2016-09-02 04:33:57 +03:00
Aristeides Stathopoulos
fde1037757
fix failing tests.
2016-09-01 23:50:14 +03:00
Mike Jolley
1b2df3dd3b
Merge branch 'pr/11797'
...
# Conflicts:
# includes/admin/meta-boxes/class-wc-meta-box-coupon-data.php
# includes/api/class-wc-rest-coupons-controller.php
# includes/class-wc-coupon.php
# tests/unit-tests/api/coupons.php
# tests/unit-tests/coupon/crud.php
2016-09-01 11:46:05 +01:00
Mike Jolley
62d0619b1a
Avoid legacy keys
2016-08-30 18:03:00 +01:00
Mike Jolley
7439f6d79f
Use set_props
2016-08-30 17:59:41 +01:00
Aristeides Stathopoulos
f2730eea02
WordPress.WhiteSpace.ControlStructureSpacing.BlankLineAfterEnd
2016-08-27 08:57:05 +03:00
Aristeides Stathopoulos
dea39df779
WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterOpenParenthesis
2016-08-27 07:38:29 +03:00
Aristeides Stathopoulos
9543c7fe1c
WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeCloseParenthesis
2016-08-27 07:29:49 +03:00
Aristeides Stathopoulos
82f3cc221e
WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeOpenParenthesis
2016-08-27 07:23:02 +03:00
Aristeides Stathopoulos
6c30f84fa2
WordPress.Arrays.ArrayKeySpacingRestrictions.SpacesAroundArrayKeys
2016-08-27 06:23:21 +03:00
Aristeides Stathopoulos
478a914494
WordPress.Arrays.ArrayDeclaration.SpaceInEmptyArray
2016-08-27 05:48:53 +03:00
Aristeides Stathopoulos
b063bcfe4c
last item in a multiline-array should end in a comma
2016-08-27 04:46:45 +03:00
Mike Jolley
f4a4f6c361
Reduce stock and other notices
2016-08-09 14:15:04 +01:00
Mike Jolley
8d58febaf8
Merge branch 'master' into orders-crud-function-update
...
# Conflicts:
# includes/class-wc-checkout.php
2016-08-09 14:03:06 +01:00
Mike Jolley
31803f4e51
Billing/shipping
2016-08-08 16:46:58 +01:00
Mike Jolley
7685587b22
payment_method
2016-08-05 16:04:41 +01:00
Mike Jolley
8d3b4bc5a4
payment_method_title
2016-08-05 15:59:55 +01:00
Mike Jolley
84c52370fa
more getters
2016-08-05 15:57:40 +01:00
Mike Jolley
39b4831e95
get_id
2016-08-05 15:56:23 +01:00
Mike Jolley
1bc9da3e91
Merge branch 'master' into WC-CRUD
...
# Conflicts:
# includes/class-wc-coupon.php
2016-08-04 12:10:04 +01:00
Mike Jolley
d2adabaf89
Redirect to login after password reset.
...
Closes #11376
2016-07-27 12:47:41 +01:00
Mike Jolley
c8cce05c4d
Use a cookie and redirect instead of query string
2016-06-24 15:06:01 +01:00
Mike Jolley
9f5dfe782d
Calc totals before checking cart items so coupon messages are output
...
Fixes #11177 @claudiosmweb
2016-06-18 20:16:12 +01:00
Mike Jolley
a0d14d0baf
[fix] Handle notices without outputting outside of template files
...
Fixes #11112
2016-06-14 11:33:28 +01:00
Mike Jolley
78142a8ebb
Merge branch 'master' into WC-CRUD
...
# Conflicts:
# includes/class-wc-checkout.php
# includes/class-wc-coupon.php
# includes/class-wc-customer.php
# tests/unit-tests/cart/cart.php
# tests/unit-tests/cart/functions.php
# tests/unit-tests/coupon/coupon.php
# woocommerce.php
2016-06-13 15:01:58 +01:00
Mike Jolley
06a4af5aa0
Empty cart on thanks page
2016-06-09 10:38:57 +01:00
Mike Jolley
3fd15ad50f
Unused vars and code docs
2016-06-06 18:57:24 +01:00
Mike Jolley
828fdcc193
Deprecated notice
2016-06-06 13:54:17 +01:00
Mike Jolley
02d5991b2a
bw compat handling
2016-06-06 12:55:07 +01:00
Mike Jolley
eb73855066
Don't handle content switch in account shortcode
2016-06-06 12:04:42 +01:00
Antonino Scarfì
f5603bb762
Avoid leave query string on URL after delete and set default actions for token, from Payment Methods endpoint. Also, change hook position on set default action for token.
2016-05-26 15:50:22 +02:00
Mike Jolley
d6a085b5ae
Improve lost password flow
...
@claudiosmweb Fixes #10785
Add confirmation and explanation after initial reset.
Also splits template files into lost password, reset password, and
confirmation for clarity.
2016-04-27 16:00:30 +01:00
Justin Shreve
25430afd33
Make session loading work correctly, add an alias for address_1 and shipping_address_1, fix total spent and order count
2016-03-17 09:41:12 -07:00
Justin Shreve
ffc80ccd15
Start updating some usage, and start implementing the actual CRUD functions, and some new get/setters for username, email, etc.
2016-03-17 09:41:12 -07:00
Justin Shreve
31bae0c19e
Hook up the tokenization API to the "add payment method" button in my account settings.
2016-03-01 11:49:41 -08:00
Justin Shreve
9db1f65196
Hook up the payment token API to the my account > payment methods tab
2016-03-01 11:49:41 -08:00
Justin Shreve
5d8967c7d7
Prepare a list of payment methods for output on the payment methods "my account" page.
2016-03-01 11:49:40 -08:00
Mike Jolley
fdddbff229
Fix my account endpoint with plain permalinks
...
@claudiosmweb Fixes #10390
2016-02-19 17:14:26 +00:00
Claudio Sanches
36c0b6047a
Less "my" and more "ours"
2016-02-16 13:50:06 -02:00
Claudio Sanches
e9b5653f0b
Created new filter for endpoint title and improved woocommerce_my_account_*_endpoint filter
2016-02-16 13:50:06 -02:00
Claudio Sanches
02e3c6362d
Created my account > orders template
2016-02-16 13:50:06 -02:00
Claudio Sanches
6e319dfe8d
Allow custom endpoints for my account
2016-02-16 13:47:04 -02:00
Mike Jolley
5f9786fe8c
Merge pull request #10354 from Ninos/checkout-notices
...
Fixed: Notice in checkout (order received) - undefined variable $order
2016-02-16 12:25:22 +00:00
Ninos Ego
f7d61a7aa1
Fixed: Notice in checkout (order received) with no existing order id -> undefined variable order
2016-02-15 16:11:04 +01:00
Mike Jolley
64dfcdbea4
[2.5] Remove obsolete notice and add styles for add payment page
2016-01-28 11:58:09 +00:00
Mike Jolley
0049415797
[2.5] get_currentuserinfo() is deprecated in WP 4.5
2016-01-18 14:42:01 +00:00
Claudio Sanches
5893875b0c
Removed period for file headers
2015-11-03 11:53:50 -02:00
Claudio Sanches
ee30b5b308
Fixed php docs standards
2015-11-03 11:31:20 -02:00
Mike Jolley
277dbeb029
Merge branch 'WPprodigy-patch-2'
2015-10-06 12:33:55 +01:00
Mike Jolley
5ec400e514
Validate terms and conditions and improve templates
2015-10-06 12:33:45 +01:00
Florian Ludwig
5cffd789a4
Removed unused variable
2015-09-08 00:08:40 +02:00
Florian Ludwig
9966f6b0a4
Fixed issue where space before or after mail led to "Invalid e-mail" error
2015-09-08 00:08:32 +02:00
Kevin Hagerty
e4b092fe10
Use the needs_payment function
...
Instead of checking against a list of valid order statuses, use the needs_payment function which already checks against those statuses
2015-09-05 08:06:57 -04:00
Claudio Sanches
a9a6009b66
Check if order is valid in checkout shortcode, closes #8829
2015-08-15 17:50:42 -03:00
Claudio Sanches
9e41552342
Removed all "@return void"
2015-07-16 16:55:48 -03:00
Ben Bidner
32e37b57d0
fixes too many arguments in function or method call: WC_Shortcode_My_Account::add_payment_method($wp->query_vars['add-payment-method'])
2015-06-01 12:52:10 +01:00
Nikki DelRosso
940c2369b0
Added method to check if cart is empty
2015-05-14 14:18:53 -07:00
Ninos Ego
4bdaff52cb
Remove unnecessary global variable
...
`$post` is not needed there.
2015-04-27 18:41:15 +02:00
Mike Jolley
e307786f5e
Merge pull request #7438 from paulwilde/upstream
...
Introduce wc_get_page_permalink
2015-02-16 11:13:02 +00: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
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
Mike Jolley
ee8b3f22c3
Return WP_USER from check_password_reset_key
...
Closes #7134
2015-01-19 10:53:33 +00:00
Mike Jolley
d663a7a72e
If using multisite, check user resetting password belongs to the current site
...
Closes #6725
2015-01-06 14:08:43 +00:00
Claudio Sanches
481aee3969
Fixed dead variable in my account shortcode class
2014-12-16 10:10:25 -02:00
Mike Jolley
18ebded7c5
Make check_cart_items consistantly placed
...
Closes #6708
2014-11-12 15:47:27 +00:00
Gregory Karpinsky
1f7eb3e595
Update class-wc-shortcode-my-account.php
...
Return if no data submitted. Otherwise, two PHP notices are issued on checking `! $user_data` and two `wc_add_notice` printed.
2014-11-06 23:08:48 -05:00
Mike Jolley
2b8be95360
Remove # (hash) from get_order_number and add to strings instead as needed.
...
Most places use Order #X
Some places use Order Number: X
Both are now valid.
Fixes #6518
2014-10-24 14:53:43 +01:00
Mike Jolley
b09f1062da
Merge pull request #6579 from woothemes/hotfix-unqiue-nonce-edit-details
...
[2.2] Make edit account details nonce unique to customer.
2014-10-21 13:17:36 +01:00
Gerhard
afc0ddf6e7
Propper verify nonce use on order tracking page.
2014-10-21 09:46:14 +02:00
Mike Jolley
1c9331737e
Minor tweaks to cart shortcode
2014-09-24 15:26:53 +01:00
shivapoudel
e53539f447
Indentation and new lines fix for includes/shortcodes :)
2014-09-21 01:18:32 +05:45
claudiosmweb
db8a07a8b8
removed "or" in favor to "||"
2014-09-15 10:57:46 -03:00
Mike Jolley
857f85fd8e
Merge pull request #6242 from chrisnharvey/patch-1
...
Fixing typo with get_error_message being referenced as a property
2014-09-12 14:20:36 +01:00
Mike Jolley
59ef851302
Readme for #6243
2014-09-12 14:18:11 +01:00
Chris Harvey
4d72eedae2
Checking password reset key using phpass
2014-09-12 14:03:39 +01:00
Chris Harvey
4a8ad5f09d
Fixing typo with get_error_message being referenced as a property
2014-09-12 13:36:17 +01:00
Mike Jolley
c6fe731337
Fix password reset
...
Fixes #6049
2014-08-19 10:43:51 +01:00
Barry Kooij
6655188f0b
Changed use of get_order with wc_get_order
2014-08-15 14:29:21 +02:00
Gerhard
4f011ae6a9
Lost password, lookup username first before email.
...
Customer use emails as usernames so need to lookup based on username first for instances where this apply.
2014-08-08 08:07:11 +02:00
Coen Jacobs
89ea6c46ab
Replace new WC_Order calls with get_order
2014-06-13 15:24:51 +02:00
Coen Jacobs
3ad8935b20
Removed ununsed global variables in local scopes
2014-06-08 22:33:11 +02:00
Mike Jolley
309f700283
has_status
2014-06-03 10:45:33 +01:00
Mike Jolley
e0a74fffc4
implement is_status()
2014-05-30 17:43:21 +01:00
claudiosmweb
79a8986f06
added the possibility to translate the edit-address endpoint slugs, closes #4820
2014-04-24 18:18:41 -03:00
Mike Jolley
c24ca386cc
Template cleanup
2014-04-23 11:37:05 +01:00
Mike Jolley
215011aa1f
Prevent short codes running with no cart class loaded. Closes #4962
2014-02-26 15:27:26 +00:00
Mike Jolley
b06e0bb19e
Tweak where message is added during reset to avoid needing a session Closes #4908
2014-02-26 13:13:53 +00:00
Mike Jolley
f79c7bed23
Merge pull request #4960 from kloon/tweak_guest_checkout_pay_link
...
Disable order owner check for payment link if guest checkout enabled
2014-02-26 11:48:42 +00:00
Gerhard
f64bc075a7
Move guest check to wc_customer_has_capability
2014-02-26 13:25:32 +02:00
Gerhard
76c8727340
Update error message, making it clear to log in and try again.
2014-02-26 12:03:36 +02:00
Gerhard
4d1a115330
Disable order owner check for payment if guest checkout is enabled as per #4957
2014-02-26 11:57:28 +02:00
Mike Jolley
3d4f16a7a4
Username from email hook Closes #4941
2014-02-25 11:40:54 +00:00