Commit Graph

51 Commits

Author SHA1 Message Date
Romario 67a178f4f7 Replace 'DIRECTORY_SEPARATOR' with '/' 2020-08-26 15:50:34 -05:00
Romario 073c63c9c4 Replace dirname with __DIR__ and add DIRECTORY_SEPARATOR
Previously 'dirname(  __FILE__ )' was used to import files, however, the directory separator was missing.

This commit replaces 'dirname(  __FILE__ )' that was introduced in 5370d02484 with __DIR__  and added DIRECTORY_SEPARATOR
2020-08-21 15:16:26 -05:00
Romario 5370d02484 Change relative include paths to absolute include paths
Relative include paths in PHP can break whenever the server is running opcache.  As such, WordPress.com deploy system refuses to include WooCommerce because of that issue.

This commit changes the relative include paths to absolute include paths.

Relates to #27269
2020-08-20 15:32:04 -05:00
Claudio Sanches d48f1d4e2e Fixed package tag usage 2020-08-05 13:36:24 -03:00
Claudio Sanches 85ca36919b
Use urlencode 2020-03-05 11:54:41 -03:00
Claudio Sanches 63fcbab7b4 Escape MaxMind database URL 2020-02-16 18:55:49 -03:00
Claudio Sanches 2ec4492074 Simplify MaxMind integration title 2020-01-29 13:43:27 -03:00
Claudio Sanches 8ee6337aea Move validation to the top 2020-01-22 12:39:19 -03:00
Claudio Sanches d9cc0910ef Trim whitespaces and strip slashes from MaxMind License Key 2020-01-22 12:38:10 -03:00
Christopher Allford a6981fc1c0 Added a file existence check to the MaxMind country lookup method to prevent warnings 2020-01-20 21:20:32 -08:00
Rodrigo Primo 6333d11bc7
Merge pull request #25431 from woocommerce/update/maxmind-integration-docs
Updated MaxMind's license key field description
2020-01-20 13:54:38 -03:00
Claudio Sanches 66fcc31f00 Updated MaxMind's license key field description 2020-01-20 13:18:52 -03:00
Christopher Allford c8c66cabee Expanded the license key invalid error to consider the case where the key is not active yet 2020-01-20 07:57:44 -08:00
Christopher Allford 1ac8eebac3 Added clarity to the file path in the integration settings 2020-01-14 13:32:59 -08:00
Claudio Sanches 92478b4739 Introduced woocommerce_maxmind_geolocation_update_database_periodically filter 2020-01-14 16:57:07 -03:00
Claudio Sanches 992e13fb08 Updated implementation of geolite2 2020-01-14 16:24:07 -03:00
Claudio Sanches b3b4e92fe1 Moved HTML to a single file 2020-01-14 12:20:46 -03:00
Christopher Allford 0f18570827 Added the database path to the integration page for documentation purposes 2020-01-13 21:02:22 -08:00
Christopher Allford 25dbc47da9 Added a note that the MaxMind integration will only do country lookups. 2020-01-13 14:43:00 -08:00
Christopher Allford 7a5083e47b Revert "Added a database option to allow for selecting different MaxMind databases"
This reverts commit d32c470cea.
2020-01-13 14:41:24 -08:00
Christopher Allford d32c470cea Added a database option to allow for selecting different MaxMind databases 2020-01-13 14:10:08 -08:00
Claudio Sanches f9d8b85c04 Remove notice when license key is present 2020-01-13 17:40:10 -03:00
Christopher Allford 48d819ebeb Added support for non-standard upload folder paths 2020-01-13 11:00:23 -08:00
Christopher Allford 6d3a3053c5 Moved the database file into the woocommerce_uploads folder 2020-01-13 08:53:43 -08:00
Christopher Allford 4f6aec61fd Added support for a randomized MaxMind database file prefix 2020-01-13 08:16:44 -08:00
Claudio Sanches 91ec28f167 Updated integration ID and included methods to display notices 2020-01-10 15:02:11 -03:00
Claudio Sanches 8aa7e62a21 Fixed fatal error in system status page 2020-01-10 12:22:42 -03:00
Claudio Sanches 2554cbf6e0 Prevent fatal error if MaxMind Reader is not installed 2020-01-10 12:16:53 -03:00
Christopher Allford 93e1d606ed Fixed a bug where empty database paths might break the update 2020-01-10 02:47:23 -08:00
Christopher Allford 19ded6609d Refactored the MaxMind database class to not use static methods in order to make testing the integration class easier 2020-01-10 02:09:51 -08:00
Christopher Allford b7521368a7 Fixed the response for the geolocation filter 2020-01-10 00:07:55 -08:00
Christopher Allford bbbfc3bfab Moved the MaxMind geolocation lookup into the integration class 2020-01-09 23:46:25 -08:00
Christopher Allford 02ee3f695e Moved the database update from the WC_Geolocation class to the MaxMind-specific integration 2020-01-09 23:22:42 -08:00
Christopher Allford 6e41f370a5 Added a documentation link to the license key setting description 2020-01-09 21:39:28 -08:00
Christopher Allford f91ff82806 Moved the loading of the database class into the integration 2020-01-09 21:29:47 -08:00
Christopher Allford 0d4b8f4bd3 Added sanitization to the license key in download URLs 2020-01-09 20:44:13 -08:00
Christopher Allford 72a84911ea Simplified the URL generation for geolocation database downloads 2020-01-09 16:18:20 -08:00
Christopher Allford bf057927ae Moved the loading of integration classes into the WC_Autoloader 2020-01-09 15:46:01 -08:00
Christopher Allford 000a75c23b Fixed the validation for MaxMind license keys 2020-01-08 22:56:24 -08:00
Christopher Allford 95e59fc777 Made the database service class methods static for convenience \ 2020-01-08 21:59:04 -08:00
Christopher Allford 1eb49ef8b8 Added filterable support for fetching the database path
This replaces the corresponding geolocation class functionality. We are deprecating the woocommerce_geolocation_local_database_path filter in favor of the woocommerce_maxmind_geolocation_databse_path filter. Since we want the option to turn this into a feature plugin, it's wise to make sure nothing is too generic.
2020-01-08 21:48:05 -08:00
Christopher Allford 46d7f16b19 Added support for downloading and extracting the GeoLite2 database 2020-01-08 21:09:35 -08:00
Christopher Allford 45157ff4e1 Added a default integration settings page for managing MaxMind Geolocation services 2020-01-08 21:08:25 -08:00
Coen Jacobs ae64e20bb3 Take out default variations #3169 2013-11-01 17:33:33 +01:00
Mike Jolley a112cb1d7d Consistant method names Closes #3901, return doubles instead of number formatted strings. 2013-10-17 12:43:44 +01:00
Mike Jolley 44f50cb6cd Code from .17 + readme 2013-10-16 10:28:24 +01:00
Mike Jolley ef49977905 add_to_cart_url add_to_cart_text and single_add_to_cart_text class methods allowing greater control with custom classes.
Closes #3484 and Closes #3143. Pinging @thenbrent as the handler was
originally his idea and I've killed it.

@helgatheviking In 2.1, add to cart URLs will only be used in loops, so
conditonal logic should no longer be neccessary. Single templates post
to themselves without the need for the URL.
2013-09-25 12:35:06 +01:00
Mike Jolley 355dd16962 Removed @coenjacobs helpers and cleaned up main clas 2013-09-12 14:41:02 +01:00
Mike Jolley 7179900b75 Send tax inclusive, rounded item price to google. Fixes #3718
@coenjacobs .14?
2013-09-03 11:19:49 +01:00
Gerhard 9954c87fa6 Google Analytics, Add to cart event uniformity for shop and single. 2013-07-26 09:10:12 +02:00