Server IP : 162.0.217.223 / Your IP : 216.73.216.168 Web Server : LiteSpeed System : Linux premium269.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : mypckeys ( 1539) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/mypckeys/yeslicense.org/wp-content/themes/woodmart/inc/integrations/ |
Upload File : |
<?php /** * CURCY - WooCommerce Multi Currency Premium * * @package woodmart */ if ( ! defined( 'WOOMULTI_CURRENCY_VERSION' ) ) { return; } if ( ! function_exists( 'woodmart_curcy_convert_price_limit' ) ) { /** * Converse shipping progress bar limit. * * @param float $limit * @return float */ function woodmart_curcy_convert_price_limit( $limit ) { if ( 'wc' === woodmart_get_opt( 'shipping_progress_bar_calculation', 'custom' ) ) { return $limit; } $currency_data = WOOMULTI_CURRENCY_Data::get_ins(); $currencies = $currency_data->get_list_currencies(); $current_currency = $currency_data->get_current_currency(); if ( array_key_exists( $current_currency, $currencies ) ) { $limit *= $currencies[ $current_currency ]['rate']; } return $limit; } add_filter( 'woodmart_shipping_progress_bar_amount', 'woodmart_curcy_convert_price_limit' ); }