Changeset 3340235
- Timestamp:
- 08/06/2025 09:25:42 AM (8 months ago)
- Location:
- clonable
- Files:
-
- 123 added
- 11 edited
-
tags/2.6.1 (added)
-
tags/2.6.1/Bootstrap.php (added)
-
tags/2.6.1/clonable-wp.php (added)
-
tags/2.6.1/controllers (added)
-
tags/2.6.1/controllers/Controller.php (added)
-
tags/2.6.1/controllers/DashboardController.php (added)
-
tags/2.6.1/controllers/LandingPageController.php (added)
-
tags/2.6.1/controllers/LanguageSwitcherController.php (added)
-
tags/2.6.1/controllers/LanguageTagController.php (added)
-
tags/2.6.1/controllers/SettingController.php (added)
-
tags/2.6.1/controllers/WoocommerceController.php (added)
-
tags/2.6.1/controllers/index.php (added)
-
tags/2.6.1/exceptions (added)
-
tags/2.6.1/exceptions/ApiException.php (added)
-
tags/2.6.1/exceptions/CurlException.php (added)
-
tags/2.6.1/exceptions/ValidationException.php (added)
-
tags/2.6.1/helpers (added)
-
tags/2.6.1/helpers/Functions.php (added)
-
tags/2.6.1/helpers/Html.php (added)
-
tags/2.6.1/helpers/Json.php (added)
-
tags/2.6.1/helpers/Locales.php (added)
-
tags/2.6.1/helpers/MultiCurrency.php (added)
-
tags/2.6.1/helpers/Session.php (added)
-
tags/2.6.1/helpers/clonable-locales-list.php (added)
-
tags/2.6.1/helpers/index.php (added)
-
tags/2.6.1/images (added)
-
tags/2.6.1/images/clonable-full-logo.png (added)
-
tags/2.6.1/images/clonable.png (added)
-
tags/2.6.1/images/configure-wordpress-thumbnail.png (added)
-
tags/2.6.1/images/flags.png (added)
-
tags/2.6.1/images/index.php (added)
-
tags/2.6.1/images/language-switcher-thumbnail.png (added)
-
tags/2.6.1/index.php (added)
-
tags/2.6.1/middleware (added)
-
tags/2.6.1/middleware/Auth.php (added)
-
tags/2.6.1/middleware/ClonedSite.php (added)
-
tags/2.6.1/middleware/MiddlewareHandler.php (added)
-
tags/2.6.1/middleware/MiddlewareInterface.php (added)
-
tags/2.6.1/middleware/WooCommerce.php (added)
-
tags/2.6.1/middleware/index.php (added)
-
tags/2.6.1/models (added)
-
tags/2.6.1/models/ApiKey.php (added)
-
tags/2.6.1/models/ClonableWooCommerce.php (added)
-
tags/2.6.1/models/ClonedSite.php (added)
-
tags/2.6.1/models/LanguageSwitcher.php (added)
-
tags/2.6.1/models/LanguageTag.php (added)
-
tags/2.6.1/models/Settings.php (added)
-
tags/2.6.1/models/Site.php (added)
-
tags/2.6.1/models/index.php (added)
-
tags/2.6.1/objects (added)
-
tags/2.6.1/objects/ApiResponse.php (added)
-
tags/2.6.1/objects/CircuitBreaker.php (added)
-
tags/2.6.1/objects/ClonableConfig.php (added)
-
tags/2.6.1/objects/ClonableResponse.php (added)
-
tags/2.6.1/objects/CurlBuilder.php (added)
-
tags/2.6.1/objects/ExcludedProductTerm.php (added)
-
tags/2.6.1/objects/Notification.php (added)
-
tags/2.6.1/objects/index.php (added)
-
tags/2.6.1/readme-da_DK.txt (added)
-
tags/2.6.1/readme-de_DE.txt (added)
-
tags/2.6.1/readme-es_ES.txt (added)
-
tags/2.6.1/readme-fr_FR.txt (added)
-
tags/2.6.1/readme-it_IT.txt (added)
-
tags/2.6.1/readme-nb_NO.txt (added)
-
tags/2.6.1/readme-nl_NL.txt (added)
-
tags/2.6.1/readme-sv_SE.txt (added)
-
tags/2.6.1/readme.txt (added)
-
tags/2.6.1/routes (added)
-
tags/2.6.1/routes/Router.php (added)
-
tags/2.6.1/routes/index.php (added)
-
tags/2.6.1/services (added)
-
tags/2.6.1/services/AllowedHostsService.php (added)
-
tags/2.6.1/services/ApiService.php (added)
-
tags/2.6.1/services/CacheService.php (added)
-
tags/2.6.1/services/ClonableWooCommerceService.php (added)
-
tags/2.6.1/services/LanguageSwitcherService.php (added)
-
tags/2.6.1/services/LanguageTagService.php (added)
-
tags/2.6.1/services/LocaleService.php (added)
-
tags/2.6.1/services/MultiCurrencyService.php (added)
-
tags/2.6.1/services/ShortCodeService.php (added)
-
tags/2.6.1/services/SubfolderService.php (added)
-
tags/2.6.1/services/SyncService.php (added)
-
tags/2.6.1/services/index.php (added)
-
tags/2.6.1/services/modules (added)
-
tags/2.6.1/services/modules/DataPanelModule.php (added)
-
tags/2.6.1/services/modules/ExclusionModule.php (added)
-
tags/2.6.1/services/modules/ProductImporterModule.php (added)
-
tags/2.6.1/services/modules/TaxonomyModule.php (added)
-
tags/2.6.1/services/modules/index.php (added)
-
tags/2.6.1/traits (added)
-
tags/2.6.1/traits/Forms.php (added)
-
tags/2.6.1/traits/PluginCheck.php (added)
-
tags/2.6.1/traits/Validation.php (added)
-
tags/2.6.1/traits/index.php (added)
-
tags/2.6.1/uninstall.php (added)
-
tags/2.6.1/views (added)
-
tags/2.6.1/views/DashboardView.php (added)
-
tags/2.6.1/views/LanguageSwitcherView.php (added)
-
tags/2.6.1/views/LanguageTagView.php (added)
-
tags/2.6.1/views/Layout.php (added)
-
tags/2.6.1/views/OnboardingView.php (added)
-
tags/2.6.1/views/SettingsView.php (added)
-
tags/2.6.1/views/ViewInterface.php (added)
-
tags/2.6.1/views/WoocommerceView.php (added)
-
tags/2.6.1/views/css (added)
-
tags/2.6.1/views/css/clonable-extra-button.css (added)
-
tags/2.6.1/views/css/clonable-global.css (added)
-
tags/2.6.1/views/css/clonable-thumbnails.css (added)
-
tags/2.6.1/views/css/clonable-woocommerce.css (added)
-
tags/2.6.1/views/css/clonable.css (added)
-
tags/2.6.1/views/css/fomantic-dropdown.css (added)
-
tags/2.6.1/views/css/fomantic-transition.css (added)
-
tags/2.6.1/views/css/freakflags.css (added)
-
tags/2.6.1/views/css/index.php (added)
-
tags/2.6.1/views/index.php (added)
-
tags/2.6.1/views/scripts (added)
-
tags/2.6.1/views/scripts/alpine.js (added)
-
tags/2.6.1/views/scripts/dohjs.js (added)
-
tags/2.6.1/views/scripts/fomantic-dropdown.js (added)
-
tags/2.6.1/views/scripts/fomantic-transition.js (added)
-
tags/2.6.1/views/scripts/index.php (added)
-
tags/2.6.1/views/scripts/onload.js (added)
-
tags/2.6.1/views/scripts/woocommerce-clone-field.js (added)
-
trunk/clonable-wp.php (modified) (2 diffs)
-
trunk/readme-da_DK.txt (modified) (2 diffs)
-
trunk/readme-de_DE.txt (modified) (2 diffs)
-
trunk/readme-es_ES.txt (modified) (2 diffs)
-
trunk/readme-fr_FR.txt (modified) (2 diffs)
-
trunk/readme-it_IT.txt (modified) (2 diffs)
-
trunk/readme-nb_NO.txt (modified) (2 diffs)
-
trunk/readme-nl_NL.txt (modified) (2 diffs)
-
trunk/readme-sv_SE.txt (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/services/MultiCurrencyService.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
clonable/trunk/clonable-wp.php
r3338869 r3340235 5 5 Description: Official plugin for improving your clones made with Clonable. 6 6 Plugin URI: https://kb.clonable.net/en/introduction/getting-started/wordpress#de-clonable-plug-in-downloaden 7 Version: 2.6. 07 Version: 2.6.1 8 8 Author: Clonable BV 9 9 Author URI: https://www.clonable.net … … 115 115 116 116 define('CLONABLE_NAME', 'Clonable'); 117 define('CLONABLE_VERSION', '2.6. 0');117 define('CLONABLE_VERSION', '2.6.1'); 118 118 119 119 if (defined('WP_CLI') && WP_CLI) { -
clonable/trunk/readme-da_DK.txt
r3338869 r3340235 5 5 Tested up to: 6.8.2 6 6 Requires PHP: 7.2 7 Stable tag: 2.6. 07 Stable tag: 2.6.1 8 8 License: GPL v2 or later 9 9 … … 32 32 33 33 == Changelog == 34 v2.6.1 35 Fixed a warning with parsing of custom currencies. 36 34 37 v2.6.0 35 38 Added ability to override currencies for specific target regions. -
clonable/trunk/readme-de_DE.txt
r3338869 r3340235 5 5 Tested up to: 6.8.2 6 6 Requires PHP: 7.2 7 Stable tag: 2.6. 07 Stable tag: 2.6.1 8 8 License: GPL v2 or later 9 9 … … 32 32 33 33 == Changelog == 34 v2.6.1 35 Fixed a warning with parsing of custom currencies. 36 34 37 v2.6.0 35 38 Added ability to override currencies for specific target regions. -
clonable/trunk/readme-es_ES.txt
r3338869 r3340235 5 5 Tested up to: 6.8.2 6 6 Requires PHP: 7.2 7 Stable tag: 2.6. 07 Stable tag: 2.6.1 8 8 License: GPL v2 or later 9 9 … … 32 32 33 33 == Changelog == 34 v2.6.1 35 Fixed a warning with parsing of custom currencies. 36 34 37 v2.6.0 35 38 Added ability to override currencies for specific target regions. -
clonable/trunk/readme-fr_FR.txt
r3338869 r3340235 5 5 Tested up to: 6.8.2 6 6 Requires PHP: 7.2 7 Stable tag: 2.6. 07 Stable tag: 2.6.1 8 8 License: GPL v2 or later 9 9 … … 32 32 33 33 == Changelog == 34 v2.6.1 35 Fixed a warning with parsing of custom currencies. 36 34 37 v2.6.0 35 38 Added ability to override currencies for specific target regions. -
clonable/trunk/readme-it_IT.txt
r3338869 r3340235 5 5 Tested up to: 6.8.2 6 6 Requires PHP: 7.2 7 Stable tag: 2.6. 07 Stable tag: 2.6.1 8 8 License: GPL v2 or later 9 9 … … 32 32 33 33 == Changelog == 34 v2.6.1 35 Fixed a warning with parsing of custom currencies. 36 34 37 v2.6.0 35 38 Added ability to override currencies for specific target regions. -
clonable/trunk/readme-nb_NO.txt
r3338869 r3340235 5 5 Tested up to: 6.8.2 6 6 Requires PHP: 7.2 7 Stable tag: 2.6. 07 Stable tag: 2.6.1 8 8 License: GPL v2 or later 9 9 … … 32 32 33 33 == Changelog == 34 v2.6.1 35 Fixed a warning with parsing of custom currencies. 36 34 37 v2.6.0 35 38 Added ability to override currencies for specific target regions. -
clonable/trunk/readme-nl_NL.txt
r3338869 r3340235 5 5 Tested up to: 6.8.2 6 6 Requires PHP: 7.2 7 Stable tag: 2.6. 07 Stable tag: 2.6.1 8 8 License: GPL v2 or later 9 9 … … 32 32 33 33 == Changelog == 34 v2.6.1 35 Waarschuwing opgelost bij het parsen van valuta's 36 34 37 v2.6.0 35 38 De mogelijkheid toegevoegd om valuta's te overschijven voor specifieke regio's. -
clonable/trunk/readme-sv_SE.txt
r3338869 r3340235 5 5 Tested up to: 6.8.2 6 6 Requires PHP: 7.2 7 Stable tag: 2.6. 07 Stable tag: 2.6.1 8 8 License: GPL v2 or later 9 9 … … 32 32 33 33 == Changelog == 34 v2.6.1 35 Fixed a warning with parsing of custom currencies. 36 34 37 v2.6.0 35 38 Added ability to override currencies for specific target regions. -
clonable/trunk/readme.txt
r3338869 r3340235 5 5 Tested up to: 6.8.2 6 6 Requires PHP: 7.2 7 Stable tag: 2.6. 07 Stable tag: 2.6.1 8 8 License: GPL v2 or later 9 9 … … 32 32 33 33 == Changelog == 34 v2.6.1 35 Fixed a warning with parsing of custom currencies. 36 34 37 v2.6.0 35 38 Added ability to override currencies for specific target regions. -
clonable/trunk/services/MultiCurrencyService.php
r3338869 r3340235 3 3 namespace Clonable\Services; 4 4 5 use Clonable\Helpers\Functions; 6 use Clonable\Helpers\Json; 5 7 use Clonable\Helpers\MultiCurrency; 6 8 use Clonable\Models\ClonableWooCommerce; … … 62 64 return MultiCurrency::get_currency_by_region($target_region); 63 65 } else { 64 foreach ($custom_currencies as $currency) { 65 if ($currency['target_region'] === $target_region) { 66 $currency_data = Json::handle_input($custom_currencies); 67 foreach ($currency_data as $currency) { 68 if ($currency->target_region === $target_region) { 66 69 // If a custom currency has been defined, return that one instead of the custom one 67 return $currency ['currency'];70 return $currency->currency; 68 71 } 69 72 }
Note: See TracChangeset
for help on using the changeset viewer.