Masoud Amini
7fac0156fe
Update wc-core-functions.php
2016-12-19 16:10:11 +03:30
Masoud Amini
72856b1b60
Update wc-core-functions.php
2016-12-19 14:23:56 +03:30
James Koster
7f15372919
declare support and add wrappers. #12038
2016-11-25 11:57:42 +00:00
Mike Jolley
12a216595a
CRUD ajax updates
2016-11-24 14:20:58 +00:00
Mike Jolley
d7dfdd3d10
Wrap all deprecation calls.
2016-11-23 16:15:00 +00:00
Mike Jolley
ac3be6ba50
Order stores complete
2016-11-18 14:07:21 +00:00
Mike Jolley
ac6bda2f62
Product crud abstract todos ( #12316 )
...
* Get dimensions and weights, with soft deprecation
* Product attributes
* Ratings
* Fix read method
* Downloads
* Feedback
* Fix up store
2016-11-11 15:31:00 +00:00
Mike Jolley
4fc03c9930
Revert "[Product CRUD] Abstract todos ( #12305 )"
...
This reverts commit 9a6136fcf8
.
2016-11-11 11:58:57 +00:00
Mike Jolley
9a6136fcf8
[Product CRUD] Abstract todos ( #12305 )
...
* Get dimensions and weights, with soft deprecation
* Product attributes
* Ratings
* Fix read method
* Downloads
* Feedback
2016-11-11 11:43:52 +00:00
Mike Jolley
09ea4ba91f
[Product CRUD] Variable, variation, notices, and stock handling ( #12277 )
...
* No longer needed
* Remove old todos
* Use getters in admin list
* Related and upsells update for CRUD
* Fix notice in gallery
* Variable fixes and todos
* Context
* Price sync
* Revert variation attributes change
* Return parent data in view context
* Defer term counting
* wc_find_matching_product_variation
* Stock manage tweaks
* Stock fixes
* Correct id
* correct id
* Better sync
* Data logic setter fix
* feedback
2016-11-09 16:10:37 +00:00
Mike Jolley
5f4dbdb733
[Product CRUD] Variations - setters, getters and admin. ( #12228 )
...
* Started on variation changes
* Stock functions
* Variation class
* Bulk change ->id to get_id() to fix variation form display
* Missing status
* Fix add to cart
* Start on stored data save
* save variation
* Save_variations
* Variation edit panel
* Save variations code works.
* Remove stored data code and fix save
* Improve legacy class
* wc_bool_to_string
* prepare_set_attributes
* Use wc_get_products
* More feedback fixes
* Feedback fixes
2016-11-09 16:05:49 +00:00
Mike Jolley
038104c8a8
[Product CRUD] Product crud admin use getters ( #12196 )
...
* Initial props
* Work on admin saving
* Set/get attributes
* Atom was moaning about this before but no longer.
* Update get_shipping_class
* WC_Product_Attribute
* Use getter in admin panel
* Fix attribute saving
* Move settings into new files
* Refactor panels and use getters
* Use getters for variation panel
* Revert save variation changes for now
* Add todos
* Fix downloads
2016-11-09 15:44:02 +00:00
Mike Jolley
af32b3ea91
Product crud admin save routine ( #12174 )
...
* Initial props
* Work on admin saving
* Set/get attributes
* Atom was moaning about this before but no longer.
* Update get_shipping_class
* WC_Product_Attribute
* Use getter in admin panel
* Fix attribute saving
* Spacing
* Fix comment
* wc_implode_text_attributes helper function
2016-11-09 15:43:20 +00:00
Rami Yushuvaev
d85075dcb0
a11y: replace `title` attributes with `aria-label`, for better accessibility
2016-11-04 17:41:51 +02:00
Rami Yushuvaev
0c1e531091
few more i18n updates ( #12185 )
...
* i18n: simpler translation strings
* i18n: simpler translation strings
* i18n: readble printf(), and moving the %s placeholder to `%s product`
* i18n: make string translatable and remove the HTML tags
* i18n: avoide using HTML tags in translatino strings
2016-10-26 11:31:32 -02:00
Daniel Hüsken
ab7f9dd674
Flush rewrite rules with cron for attribute terms ( #12132 )
2016-10-21 15:29:50 +01:00
Egill R. Erlendsson
7cbf06f93a
Fix currency symbol for Icelandic Krona
...
The currency symbol for Icelandic Krona is kr, not Kr. This patch fixes
the woocommerce_currency_symbol for ISK.
2016-10-19 13:49:20 +00:00
Mike Jolley
705dc18991
Merge branch 'pr/12064'
2016-10-12 11:54:40 +01:00
Mike Jolley
a7e531e26d
Made wc_get_wildcard_postcodes return the orignal postcode plus * since wildcards should match empty strings too.
...
Fixes #12016
2016-10-12 11:52:39 +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
baceb4621b
Fixed KGS currency symbol.
...
Fixes based in the http://www.nbkr.kg website
2016-09-21 15:15:51 -03:00
Mike Jolley
0e6bbc8210
User agent tracking
2016-09-12 22:11:05 +01:00
Aristeides Stathopoulos
734f284fa4
WordPress.PHP.YodaConditions.NotYoda
2016-09-08 01:32:24 +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
ec8a0b288b
PHPCS: WordPress.Arrays.ArrayDeclaration.NoCommaAfterLast
2016-08-27 05:08:49 +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
077f57f139
Merge branch 'master' into WC_Data_Exception
2016-08-25 11:03:14 +01:00
Mike Jolley
2dc3e5252f
Made WC_TEMPLATE_DEBUG_MODE a constant only
2016-08-24 16:46:07 +01:00
Mike Jolley
938361535f
Exception handling
2016-08-24 16:02:19 +01:00
Mike Jolley
cde78abed3
Working on catching errors
2016-08-24 15:26:35 +01:00
Mike Jolley
46793622df
wc_do_deprecated_action helper
2016-08-15 11:02:49 +01:00
Mike Jolley
7861b76e9b
Checkout handling
...
Also introduces add_item so you can add items to an order before the
order exists. Save at once is more efficient.
2016-08-09 14:02:40 +01:00
Mike Jolley
cfe28c9b25
Made WC_Logger pluggable via wc_get_logger function.
...
Closes #11474
2016-08-08 13:59:23 +01:00
Mike Jolley
3f2ee5a396
Rewrite rule improvements
...
Closes #11500
Extra rules are needed to support subpages, but the previous method was
very greedy and affected other URIs.
To improve this, loop over shop subpages and add rules specific to
those to avoid 404s.
Also flushes permalinks when a subpage of shop is saved so these rules
are correctly generated.
2016-07-26 13:39:31 +01:00
Mike Jolley
c9eef82550
Merge branch 'pr/11497'
...
# Conflicts:
# includes/wc-core-functions.php
2016-07-22 12:55:34 +01:00
Mike Jolley
fb18af837c
Docblock
...
72a5f9a9d1
2016-07-21 15:30:07 +01:00
Mike Jolley
72a5f9a9d1
Maintain method_order sorting for zones in list
...
Closes #11486
2016-07-21 14:30:05 +01:00
Manos Psychogyiopoulos
17c6108832
ensure WC_ROUNDING_PRECISION is defined and use it as a low precision boundary in wc_get_rounding_precision()
2016-07-21 12:14:12 +03:00
Claudio Sanches
7778583340
Fixed wrong number of decimal precision, closes #11368
2016-07-11 17:26:54 +02:00
Mike Jolley
7266e020fb
Avoid normalization of zone postcodes so wildcard matching can be performed on postcodes with spaces. E.g. SP1 *
...
Also adds matching zone notice when shipping debug is on.
fixes #11154
2016-06-16 11:28:53 +01:00
Mike Jolley
fe9b53e49a
Fixed wc_postcode_location_matcher logic
...
Due to the return values overwriting each other,
wc_postcode_location_matcher did not work with zones using multiple
postcodes. This changes the return to return an array of values instead
of a single value to fix that logic.
Also adjusts taxes which use wc_postcode_location_matcher so this
continues to function.
Fixes #11095
@claudiosmweb
2016-06-11 00:26:07 +01:00
Mike Jolley
1185333b56
Move legacy API code into WC_Legacy_API
...
@claudiosmweb to keep legacy api separated from the new REST API code.
2016-06-07 11:03:16 +01:00
Mike Jolley
730019ef18
scrutinizer best practice
2016-06-06 19:39:23 +01:00
Mike Jolley
3fd15ad50f
Unused vars and code docs
2016-06-06 18:57:24 +01:00
Scrutinizer Auto-Fixer
7cef8ae4c9
Scrutinizer Auto-Fixes
...
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2016-06-06 16:50:18 +00:00
Mike Jolley
d4d6f3181c
Best practice tweaks
2016-06-06 17:24:31 +01:00
Mike Jolley
a40fb29eca
wc_set_time_limit helper function
2016-06-06 16:55:27 +01:00
Mike Jolley
690cd0804b
Fix notice in wc_postcode_location_matcher
2016-05-26 15:09:03 +01:00
Mike Jolley
14e89c69da
No need to count legacy separate
...
@claudiosmweb
2016-05-26 12:54:14 +01:00
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