GRAYBYTE WORDPRESS FILE MANAGER5168

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/giriqfky/nioscentre.in/wp-content/plugins/cart-for-woocommerce/compatibilities/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/giriqfky/nioscentre.in/wp-content/plugins/cart-for-woocommerce/compatibilities//aelia.php
<?php
/**
 * Aelia Currency switcher
 */

namespace FKCart\Compatibilities;
if ( ! class_exists( '\FKCart\Compatibilities\Aelia' ) ) {
	class Aelia {

		public function __construct() {
		}

		public function is_enable() {
			return class_exists( '\Aelia\WC\CurrencySwitcher\WC_Aelia_CurrencySwitcher', false );
		}

		/**
		 *
		 * Modifies the amount for the fixed discount given by the admin in the currency selected.
		 *
		 * @param integer|float $price
		 *
		 * @return float
		 */
		public function alter_fixed_amount( $price, $currency = null ) {
			return $this->get_price_in_currency( $price, $currency );
		}

		/**
		 * Basic integration with WooCommerce Currency Switcher, developed by Aelia
		 * (http://aelia.co). This method can be used by any 3rd party plugin to
		 * return prices converted to the active currency.
		 *
		 * Need a consultation? Find us on Codeable: https://aelia.co/hire_us
		 *
		 * @param double price The source price.
		 * @param string to_currency The target currency. If empty, the active currency
		 * will be taken.
		 * @param string from_currency The source currency. If empty, WooCommerce base
		 * currency will be taken.
		 *
		 * @return double The price converted from source to destination currency.
		 * @author Aelia <support@aelia.co>
		 * @link https://aelia.co
		 */
		public function get_price_in_currency( $price, $to_currency = null, $from_currency = null ) {
			// If source currency is not specified, take the shop's base currency as a default
			if ( empty( $from_currency ) ) {
				$from_currency = get_option( 'woocommerce_currency' );
			}
			// If target currency is not specified, take the active currency as a default.
			// The Currency Switcher sets this currency automatically, based on the context. Other
			// plugins can also override it, based on their own custom criteria, by implementing
			// a filter for the "woocommerce_currency" hook.
			//
			// For example, a subscription plugin may decide that the active currency is the one
			// taken from a previous subscription, because it's processing a renewal, and such
			// renewal should keep the original prices, in the original currency.
			if ( empty( $to_currency ) ) {
				$to_currency = get_woocommerce_currency();
			}

			// Call the currency conversion filter. Using a filter allows for loose coupling. If the
			// Aelia Currency Switcher is not installed, the filter call will return the original
			// amount, without any conversion being performed. Your plugin won't even need to know if
			// the multi-currency plugin is installed or active
			return apply_filters( 'wc_aelia_cs_convert', $price, $from_currency, $to_currency );
		}

	}

	Compatibility::register( new Aelia(), 'aelia_cs' );
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 11 2025 08:33:18
giriqfky / giriqfky
0755
plugins
--
July 11 2025 08:33:18
giriqfky / giriqfky
0755
adp.php
0.874 KB
July 10 2025 16:47:16
giriqfky / giriqfky
0644
aelia.php
2.675 KB
July 10 2025 16:47:16
giriqfky / giriqfky
0644
allproductsubscriptions.php
1.672 KB
July 10 2025 16:47:16
giriqfky / giriqfky
0644
astra.php
1.236 KB
July 10 2025 16:47:16
giriqfky / giriqfky
0644
booster.php
0.66 KB
July 10 2025 16:47:16
giriqfky / giriqfky
0644
bump.php
0.543 KB
July 10 2025 16:47:16
giriqfky / giriqfky
0644
chained.php
0.641 KB
July 10 2025 16:47:16
giriqfky / giriqfky
0644
checkoutpluginstripe.php
1.176 KB
July 10 2025 16:47:16
giriqfky / giriqfky
0644
compatibility.php
7.48 KB
July 10 2025 16:47:16
giriqfky / giriqfky
0644
flexibleshipping.php
1.277 KB
July 10 2025 16:47:16
giriqfky / giriqfky
0644
freeshipping.php
0.536 KB
July 10 2025 16:47:16
giriqfky / giriqfky
0644
funnelkitcheckout.php
1.396 KB
July 10 2025 16:47:16
giriqfky / giriqfky
0644
funnelkitstripe.php
2.501 KB
July 10 2025 16:47:16
giriqfky / giriqfky
0644
germanized.php
1.893 KB
July 10 2025 16:47:16
giriqfky / giriqfky
0644
index.php
0.027 KB
July 10 2025 16:47:16
giriqfky / giriqfky
0644
klarna.php
0.956 KB
July 10 2025 16:47:16
giriqfky / giriqfky
0644
litespeed.php
0.748 KB
July 10 2025 16:47:16
giriqfky / giriqfky
0644
paymentpluginbraintree.php
0.609 KB
July 10 2025 16:47:16
giriqfky / giriqfky
0644
paymentpluginstripe.php
0.579 KB
July 10 2025 16:47:16
giriqfky / giriqfky
0644
paypalpayments.php
1.524 KB
July 10 2025 16:47:16
giriqfky / giriqfky
0644
polylang.php
1.399 KB
July 10 2025 16:47:16
giriqfky / giriqfky
0644
pricebasedcountry.php
0.981 KB
July 10 2025 16:47:16
giriqfky / giriqfky
0644
pricebyquantity.php
1.712 KB
July 10 2025 16:47:16
giriqfky / giriqfky
0644
rightpresspricinganddiscount.php
0.602 KB
July 10 2025 16:47:16
giriqfky / giriqfky
0644
shoptimizer.php
0.663 KB
July 10 2025 16:47:16
giriqfky / giriqfky
0644
smartcoupons.php
1.13 KB
July 10 2025 16:47:16
giriqfky / giriqfky
0644
supportSelectOptions.php
1.811 KB
July 10 2025 16:47:16
giriqfky / giriqfky
0644
tablerate.php
1 KB
July 10 2025 16:47:16
giriqfky / giriqfky
0644
translatepress.php
0.472 KB
July 10 2025 16:47:16
giriqfky / giriqfky
0644
wcrewardpoints.php
0.918 KB
July 10 2025 16:47:16
giriqfky / giriqfky
0644
wcstripe.php
0.731 KB
July 10 2025 16:47:16
giriqfky / giriqfky
0644
weglot.php
0.441 KB
July 10 2025 16:47:16
giriqfky / giriqfky
0644
wooProductBundle.php
0.65 KB
July 10 2025 16:47:16
giriqfky / giriqfky
0644
woocommerce-product-bundles.php
3.42 KB
July 10 2025 16:47:16
giriqfky / giriqfky
0644
woocommerceSubscriptionByWC.php
1.203 KB
July 10 2025 16:47:16
giriqfky / giriqfky
0644
woocs.php
0.656 KB
July 10 2025 16:47:16
giriqfky / giriqfky
0644
woomulticurrency.php
1.083 KB
July 10 2025 16:47:16
giriqfky / giriqfky
0644
wpfactoryminmaxamount.php
1.581 KB
July 10 2025 16:47:16
giriqfky / giriqfky
0644
wpml-multicurrency.php
1.22 KB
July 10 2025 16:47:16
giriqfky / giriqfky
0644
wpml.php
1.984 KB
July 10 2025 16:47:16
giriqfky / giriqfky
0644
yaycurrency.php
0.83 KB
July 10 2025 16:47:16
giriqfky / giriqfky
0644
yithbundle.php
1.32 KB
July 10 2025 16:47:16
giriqfky / giriqfky
0644
yithgiftcard.php
0.809 KB
July 10 2025 16:47:16
giriqfky / giriqfky
0644
yithminmaxqty.php
0.965 KB
July 10 2025 16:47:16
giriqfky / giriqfky
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF