Claudio Sanches
10f9fb28a3
Improved wc_get_shipping_method_count()
2016-05-25 18:29:32 -03:00
Claudio Sanches
b68f396ef8
Fixed check for core legacy methods
2016-05-25 18:24:20 -03:00
Claudio Sanches
13c6988a36
Improve wc_get_shipping_method_count() to count all legacy methods
2016-05-25 16:06:06 -03:00
Mike Jolley
ab454c2286
Fix method count type in wc_get_shipping_method_count
2016-05-25 12:36:17 +01:00
Mike Jolley
4b2bf266ca
wc_get_shipping_method_count helper function
...
#10987
2016-05-25 12:05:33 +01:00
Mike Jolley
a02ac79339
Change range symbol to ... to avoid conflicts with postcodes with hyphens
2016-05-23 17:30:37 +01:00
Mike Jolley
e5bbd9c092
Check wc_get_shipping_zone does not exist
...
Closes #10843
2016-05-03 15:16:20 +01:00
Claudio Sanches
e7a632d489
Rename wc_sanitize_postcode() to wc_normalize_postcode()
...
cc @mikejolley
2016-04-28 13:51:43 -03:00
Claudio Sanches
83c470987f
Sanitize postcodes before comparisons, closes #10808
2016-04-27 20:43:48 -03:00
Mike Jolley
9fb5fa9efd
@since 2.6
2016-04-22 16:47:54 +01:00
Mike Jolley
23271af0f6
Fixed comparisons for ranges and wildcards
2016-04-22 15:42:20 +01:00
Mike Jolley
558211a869
Split postcode matching queries to avoid expansion
2016-04-22 14:02:36 +01:00
Claudio Sanches
b6d33ee906
WP-API
2016-04-19 12:49:16 -03:00
Claudio Sanches
cfedab0d74
Added Bitcoin/BTC currency
...
@mikejolley
2016-04-18 20:28:04 -03:00
Claudio Sanches
71aa29d144
Added new 109 currencies
...
@mikejolley
2016-04-18 20:21:14 -03:00
Mike Jolley
6ae2fea045
Allow default address to be empty.
...
Fixes #10664
2016-04-18 14:51:39 +01:00
Wampamba David
ff5c52b6bb
Adds Ugandan Shilling currency and currency symbol.
2016-04-02 14:11:35 +03:00
Mike Jolley
d1f363c356
Exclude geolocation of bots by user agent
...
Closes #10626
2016-04-01 11:14:26 +01:00
Mike Jolley
c9196a6377
Move help tip to core functions
2016-03-31 15:30:42 +01:00
Mike Jolley
dbfba48411
Disable API fallback for geolocating customers
...
Causes server slowdown due to external calls. Should be off by default.
Closes #10615
2016-03-30 13:02:21 +01:00
Claudio Sanches
4a625fc2f2
New rest functions file name
2016-03-29 19:52:24 -03:00
Mike Jolley
bea3c66777
Change arrow entity
...
@jameskoster
2016-03-24 14:27:32 +00:00
Claudio Sanches
4e1a3d7a0c
Introduces woocommerce_queued_js filter, closes #10553
2016-03-14 10:47:34 -03:00
Justin Shreve
927941e2ca
Merge pull request #10260 from justinshreve/token-api
...
Payment Token API
2016-03-04 04:34:41 -08:00
Mike Jolley
a1cce4a1b2
Issues from Justin
2016-03-04 10:53:48 +00:00
Claudio Sanches
c0affe96e0
Created API functions
2016-03-01 19:41:59 -03:00
Justin Shreve
e3d7e206d0
Create a function for getting correctly formatted credit card type labels (MasterCard, American Express, etc)
2016-03-01 11:49:42 -08:00
Shiva Poudel
e6e2a7ed42
Fix docblock for wc_back_link function
2016-02-21 10:10:33 +05:45
Justin Shreve
c2d29e4884
Add a back button on the email notification management screens so you can easily get back to the main listing of emails.
2016-02-18 08:46:06 -08:00
Claudio Sanches
7ae806d16f
Created new account functions file
2016-02-16 13:43:06 -02:00
Mike Jolley
116e70f6dd
Missing functions from master
2016-02-10 14:40:46 +00:00
Mike Jolley
352184cc06
Merge branch 'master' into shipping-zones
...
# Conflicts:
# assets/css/admin.css
# i18n/languages/woocommerce.pot
# includes/abstracts/abstract-wc-payment-gateway.php
# includes/abstracts/abstract-wc-shipping-method.php
# includes/admin/settings/class-wc-settings-shipping.php
# includes/wc-core-functions.php
# uninstall.php
2016-02-05 14:58:48 +00:00
Mike Jolley
a71a4de1b8
Add hash check when resuming order to detect changes.
...
@claudiosmweb
2016-02-05 09:41:25 +00:00
Mike Jolley
fd74d992ab
When COOKIEPATH is an empty string, cookies won't work across pages.
...
@claudiosmweb Found a few multisite installs where COOKIEPATH was an
empty string which broke cookies. I don’t see any side affects of this
change. 2.5?
2016-02-01 13:05:36 +00:00
Almaz Mannanov
1cb65394a4
Update wc-core-functions.php
...
Russian ruble has its own symbol.
2016-01-27 20:22:43 +03:00
Mike Jolley
7fb7120d8e
[2.5] Move URL functions to core-functions file.
...
Closes #10170
2016-01-27 11:53:19 +00:00
Claudio Sanches
6110c8316e
Added Saudi Riyal currency
...
Request from:
https://wordpress.org/support/topic/saudi-riyal-support?replies=1
2016-01-25 20:59:19 -02:00
Mike Jolley
2de38180d3
Remove isolation levels causing issue on some servers
2016-01-15 11:43:06 +00:00
Mike Jolley
1076854608
Merge branch 'master' into shipping-zones
...
# Conflicts:
# assets/css/admin.css
# includes/abstracts/abstract-wc-shipping-method.php
# includes/class-wc-shipping.php
# includes/shipping/flat-rate/class-wc-shipping-flat-rate.php
# includes/shipping/flat-rate/includes/class-wc-eval-math.php
# includes/shipping/free-shipping/class-wc-shipping-free-shipping.php
#
includes/shipping/legacy-international-delivery/class-wc-shipping-legacy
-international-delivery.php
#
includes/shipping/legacy-local-delivery/class-wc-shipping-legacy-local-d
elivery.php
2016-01-11 11:48:18 +00:00
Mike Jolley
3c5520d18c
Add filter on default location array
...
Closes #10017
2016-01-07 11:25:24 +00:00
Fredrik Forsmo
676525c2b7
Improve docblock comments in various functions
...
* Added missing param tags to functions
* Added comments to `wc_get_attachment_image_attributes` and
`wc_prepare_attachment_for_js`
* Fixed return type value for functions where it says bool but the code
returns array
* Renamed boolean to bool
2016-01-06 17:11:09 +01:00
Mike Jolley
62ca37f651
Merge branch 'master' into shipping-zones
...
# Conflicts:
# includes/admin/class-wc-admin-assets.php
# includes/class-wc-install.php
2016-01-04 14:35:45 +00:00
Mike Jolley
901db7b0f8
zone tweaks
2015-12-18 17:10:58 +00:00
Shiva Poudel
4146558fd6
Updated the currency code for 'Lao Kip'
...
See: https://en.wikipedia.org/wiki/ISO_4217
2015-12-17 11:52:38 +05:45
Claudio Sanches
e097ff7b56
Oops
2015-12-16 14:25:11 -02:00
Claudio Sanches
b2eadf0322
Better way to handle currency symbols
...
cc @mikejolley
2015-12-16 13:23:44 -02:00
Mike Jolley
992f1176bd
wc_get_template_part filter should always run regardless of whether a matching template was found.
...
Closes #9851
2015-12-16 11:28:34 +00:00
Claudio Sanches
4b52c0d052
Added Kenyan shilling currency
2015-12-09 13:06:54 -02:00
Mike Jolley
885dab8efc
wc_get_template_html - New helper to get the html from a template file
2015-12-04 13:26:24 +00:00
Takashi Irie
d88ba80f84
Edits for Twnety Sixteen
2015-11-23 11:55:50 +00:00
Shiva Poudel
853530cece
Fixed rupee sign for currency in product data sale and regular price
2015-11-12 03:00:54 +05:45
Shiva Poudel
6a268f003f
Rs. currency symbol can use rupee sign html entity
...
@see http://www.w3schools.com/charsets/ref_utf_currency.asp
2015-11-11 01:12:48 +05:45
Ibrahim
e2903ef450
Added rupee symbol for INR
...
The rupee symbol (http://www.fileformat.info/info/unicode/char/20b9/index.htm ) has been adopted since 2010
2015-11-10 13:26:18 +05:30
Mike Jolley
61e746730f
wc_transaction_query function
...
Only uses transactions if enabled, or read uncommitted is supported
#9279
2015-11-04 14:11:40 +00:00
Mike Jolley
7eb45ba16f
Added wc_array_cartesian function to generate variations in a logical order.
...
Fixes #9515 @claudiosmweb
2015-11-04 12:14:51 +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
Ahmad Awais
9954602229
Better Documentation: Period Endings
...
As per the [PHP documentation standards in the core handbook](https://make.wordpress.org/core/handbook/best-practices/inline-documentation-standards/php/ ), this commit helps make the documentation better by adding:
- Period endings
- Short descriptions
- Long descriptions
2015-11-01 00:10:45 +05:00
Claudio Sanches
f3b6870837
Sort get_woocommerce_currencies() items
2015-10-28 16:24:06 -02:00
Mohsin Rasool
6683baffaa
Add Currency Symbol for Pakistan, Issue #9453
2015-10-28 16:13:42 +05:00
Claudio Sanches
3a536ac8b7
Sanitize shipping method label/title, closes #9159
2015-10-01 17:17:45 +02:00
Mike Jolley
27ac395496
Use geolocation class IP function
...
Fixes #9048
Closes #9050
2015-09-07 14:24:00 +01: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
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
c13409150f
Fixed tests for get_woocommerce_currencies()
...
@mikejolley
2015-06-29 15:13:42 -03:00
Claudio Sanches
22ac2f56bf
Added Argentine currency and symbol
2015-06-25 12:58:58 -03: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
f988aae387
Use hashes and server side redirection
2015-06-22 14:55:15 +01:00
Mike Jolley
928b1cca2f
Use DKK symbol
2015-06-19 12:15:14 +01:00
Mike Jolley
b8f644fe9e
Remove line breaks
2015-06-17 15:19:04 +01:00
Mike Jolley
33c298fea7
Experiment with appending geolocation to query string to prevent caching
2015-06-17 12:12:49 +01:00
Claudio Sanches
3f45c874fe
Created wc_api_hash()
2015-06-08 12:57:19 -03:00
Claudio Sanches
3697ad9de2
Improved the API keys entropy
2015-06-08 12:01:54 -03:00
Claudio Sanches
267c481d86
Improved admin bar visit store link #8196
2015-05-27 11:55:32 -03:00
Remi Corson
611765e0da
added comparison with home url
2015-05-22 13:59:51 +02:00
Remi Corson
db0ee68886
Added visit store link in admin bar
2015-05-21 10:57:50 +02:00
Claudio Sanches
8a9ab7ffea
Fixed get_woocommerce_api_url() for the new API versions numbers and
...
fixed the tests
@mikejolley
2015-05-05 09:01:34 -03:00
Mike Jolley
c19f2e573e
[2.3] Only automatically cancel orders created via checkout + allow post_parent to be set
2015-04-01 14:21:10 +01: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
Mike Jolley
af2407a089
Move default customer location to general settings tab.
2015-03-06 14:45:04 +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
62cb430eaa
Run coupon codes through html_entity_decode.
...
Closes #7395
2015-02-12 22:50:22 +00:00
Mike Jolley
518cca7326
WC_TEMPLATE_DEBUG_MODE in admin.
...
Fixes #7336
2015-02-11 23:32:27 +00:00
Max Rice
1f62a53e0e
Add hash_equals() function
2015-01-19 00:11:41 -05:00
Mike Jolley
4e8e90a8de
Support dev environment
2014-12-23 22:03:10 +00:00
Mike Jolley
f820905327
Handle geolocation option
2014-12-23 18:50:05 +00:00
Mike Jolley
34413a1dd7
Core methods for getting locations
2014-12-23 17:33:51 +00:00
Claudio Sanches
264a347fb5
Registre support for twenty fifteen
2014-12-12 09:49:54 -02:00
Mike Jolley
dd53f8e730
Move widget registration to own function/file - avoid register_widget in class files
2014-11-20 20:56:24 +00:00
claudiosmweb
8eeb6fc204
Removed more some unused code
2014-11-19 22:43:09 -02:00
claudiosmweb
da43955416
Introduces the wc_get_default_location() function
2014-11-18 12:56:13 -02:00
claudiosmweb
324a86cea8
Fixed DocBlock for wc_get_core_supported_themes()
2014-10-30 11:00:24 -02:00
claudiosmweb
fa6edff86d
Added UAH currency, closes #6653
2014-10-30 10:27:16 -02:00
Mike Jolley
423b9c4969
Merge pull request #6596 from krautnerds/fix-cropping-in-core-function
...
Fixed cropping function to respect option settings
2014-10-24 12:01:58 +01:00
Florian Ludwig
d443823a52
Fixed constant value cropping to option setting
...
I don’t think that it is the right way to set the cropping by checking
if the ‚crop’ option is set because it could have been set to 0 in the
options. In that case it would be cropped either way because isset
would also return true.
2014-10-22 15:23:20 +02:00
Barry Kooij
4d3fbaa9e0
Regex escape mathes before using them as regex to prevent delimiter problems.
2014-10-21 15:20:19 +02:00
Barry Kooij
e122cf482a
Changed pregmatch delimiters and optimized regex.
...
Fixes #6584 .
2014-10-21 15:09:43 +02:00
Mike Jolley
d1de7f42b9
Made template debug mode set WC_TEMPLATE_DEBUG_MODE constant and remove all overrides for all template loading functions.
...
Closes #6436
2014-10-03 10:52:11 +01:00
shivapoudel
5eaa138d21
Absolute path fix for wc-core-functions.php
2014-09-21 00:52:11 +05:45
Mike Jolley
1d3b7a52c1
Improved headers sent notice to include file and line.
2014-09-17 11:40:54 +01:00
Mike Jolley
5b3b855377
Merge pull request #6233 from shivapoudel/patch-2
...
Fix with $ for Colombian Peso
2014-09-12 09:34:28 +01:00
Mike Jolley
ec28795a4e
Merge pull request #6232 from shivapoudel/patch-1
...
Fix some issues with Currency code for NPR
2014-09-12 09:33:47 +01:00
claudiosmweb
ec9e08ba7d
Fixed images crop option and wc_get_image_size() function
...
Reported in http://wordpress.org/support/topic/hard-crop
@mikejolley
2014-09-11 21:22:30 -03:00
Shiva Poudel
22f80cf173
Fix indendation ❤️
2014-09-12 00:45:43 +05:45
Shiva Poudel
647988d22e
Fix with $ for Colombian Peso
...
No symbol shown in Currency Settings selection so ;)
2014-09-12 00:41:02 +05:45
Shiva Poudel
51ba1df181
Fix some issues with Currency code for NPR
...
NRP was typo mistake so found the bug and fix. I have send pull for this Nepali currency previously.
2014-09-12 00:31:41 +05:45
Mike Jolley
c4ef86d44e
scrutinizer patches
2014-09-08 00:37:55 +01:00
Mike Jolley
72f9374902
Merge pull request #6068 from bryceadams/master
...
Added Lao Kip Currency & Before / After Downloads actions
2014-08-22 10:47:02 +01:00
Bryce
04234a4968
Added Lao Kip Currency
2014-08-21 11:42:46 +07:00
Shiva Poudel
547b96f54d
Tab index fix for PYG Currency and Symbol.
2014-08-21 10:13:39 +05:45
Shiva Poudel
ee7755fd0e
Added Nepali Currency and Symbol.
2014-08-21 10:10:51 +05:45
claudiosmweb
6e21079d76
moved exclude order notes from wp_count_comments to class-wc-comments.php
2014-08-12 12:13:29 -03:00
Mike Jolley
5046256cea
Prevent 404's caused by attachment link workaround.
...
Fixes #5975
2014-08-06 11:50:09 +01:00
Max Rice
572becdcde
Introduce WC_Webhook class
...
Part of #5564
2014-07-30 16:23:22 -04:00
Mike Jolley
cdc0efed75
Merge pull request #5843 from maxrice/feature-orders-endpoint-issue-4160
...
Create/Edit/Delete orders via the REST API
2014-07-28 09:18:49 +01:00
Mike Jolley
708861421a
Merge pull request #5839 from maxrice/api-versioning
...
Update REST API version to v2
2014-07-28 09:18:41 +01:00
Ninos Ego
7b24853afc
Add filter: wc_get_template
...
Allow 3rd party plugin filter template file from their plugin
2014-07-22 03:05:25 +02:00
Max Rice
4661cd3acf
set a proper code for wp_error
2014-07-12 21:43:27 -04:00
Max Rice
8c3df8f65f
update get_woocommerce_api_url() to handle multiple versions
2014-07-12 17:51:29 -04:00
Claudio Sanches
9701cfe2a7
Revert "order_type taxonomy and register_order_type() function"
2014-07-08 14:10:37 -03:00
Mike Jolley
cc5b722a22
Merge pull request #5804 from claudiosmweb/feature-register-order-type
...
order_type taxonomy and register_order_type() function
2014-07-08 15:49:28 +01:00
Coen Jacobs
f427ebaf7c
Updated Turkish Lira symbol
2014-07-08 14:34:42 +02:00
claudiosmweb
16953e96f8
save the order type when create a order with wc_create_order()
2014-07-07 17:23:43 -03:00
claudiosmweb
2b1a99eca6
introduces the wc_get_core_supported_themes() function
2014-06-27 16:42:23 -03:00
claudiosmweb
2fb2d8dfb6
removed order notes from wp_count_comments() function, closes #5732
2014-06-24 15:56:53 -03:00
Mike Jolley
0e623e2c50
PESO Closes #5493
2014-06-24 16:08:04 +01:00
Mike Jolley
cf3cca4c8e
Merge branch 'feature-wc-create-order'
2014-06-18 16:07:29 +01:00
Mike Jolley
94549e1462
Notices
2014-06-13 16:11:15 +01:00
Mike Jolley
c591a3fb54
Set correct post type
2014-06-11 16:11:28 +01:00
Mike Jolley
ef3e728855
Setters + wc_create_order + wc_update_order for #4169
2014-06-11 15:10:03 +01:00
Coen Jacobs
3ad8935b20
Removed ununsed global variables in local scopes
2014-06-08 22:33:11 +02:00
Mike Jolley
32e77897cc
Placeholder functions
2014-06-06 15:51:09 +01:00
Mike Jolley
ded4b7404d
Admin changes for #5046
...
- Removed post type classes. Since they were always loaded, there was
no benefit having them split up. Combined meaning less hooked in
methods.
- Stopped loading some function files and sessions in the admin area.
They are not needed there.
- Made a few admin page classes static as they are stateless
2014-06-04 11:16:19 +01:00
Mike Jolley
7c5c113b61
Prevent sub pages of the shop page 404'ing with verbose page rules
...
Fixes #4621
2014-06-04 07:46:21 +01:00
claudiosmweb
dfbe3e2e16
excluded the product_cat custom rewrites from the rewrite_rules_array, closes the #4844
2014-06-02 17:00:44 -03:00
Mike Jolley
25795c1fba
Merge pull request #5578 from claudiosmweb/feature-wc_get_log_file_path-function
...
Introduces the wc_get_log_file_path() function
2014-05-29 16:35:48 +01:00
Patrick Rauland
1baaf9f754
capitalizing paraguayan guarani
2014-05-29 09:36:57 -05:00
Patrick Rauland
889e758b38
adding paraguayan currency. see #5568
2014-05-29 09:34:52 -05:00
claudiosmweb
7ca27a8f80
introduces the wc_get_log_file_path() function
2014-05-28 11:08:33 -03:00
Patrick Rauland
3b90a1d8c2
fixing danish krone symbol
2014-05-23 20:13:30 -05:00
demon36
d57ac66fce
added egypptian currency
...
#5502
2014-05-18 14:30:37 -07:00
Josh Eaton
3d8daf7054
Update comment to reflect that parameter template_name for wc_get/locate_template() only accepts strings
...
Fixes #5389
2014-04-28 16:04:21 -04:00
Mike Jolley
e7898f8670
[2.2] Protect admins from shop managers
...
Closes #5322
2014-04-23 14:18:21 +01:00
Max Rice
ebf7603a45
Use is_ssl() for get_woocommerce_api_url()
...
When accessing the API over OAuth for a site that has the checkout
forced over SSL, the OAuth string to sign is incorrect. This fixes that
by checking whether the current request is SSL when returning the api
URL
2014-03-31 16:22:17 -04:00
vlinicx
61ac7fbc9a
Update wc-core-functions.php
...
Adding a currency symbol to Croatian currency
2014-03-22 14:33:25 +01:00
Mike Jolley
b1df70f17e
wc_session_use_secure_cookie filter
2014-03-19 09:16:28 +00:00
monirulalom
7ea71912a0
Update wc-core-functions.php file
...
Update wc-core-functions.php file to add Bangladeshi currency and symbol.
2014-03-18 00:33:08 +06:00
Gerhard
37ed91cedf
Remove opening bracket from AED currency symbol
2014-03-12 15:50:51 +02:00
Mike Jolley
c0c21c8364
Unify textdomains Closes #4814
2014-02-17 13:14:45 +00:00