Sindbad~EG File Manager
<?php namespace TierPricingTable\Integrations\Plugins;
use TierPricingTable\PricingRule;
class WOOCS extends PluginIntegrationAbstract {
public function run() {
add_filter( 'tiered_pricing_table/price/price_by_rules',
function ( $product_price, $quantity, $product_id, $context ) {
global $WOOCS_STARTER;
if ( $WOOCS_STARTER ) {
if ( 'view' === $context ) {
return $WOOCS_STARTER->get_actual_obj()->raw_woocommerce_price( $product_price );
}
}
return $product_price;
}, 10, 10 );
}
public function getTitle(): string {
return __( 'WooCommerce Currency Switcher (FOX)', 'tier-pricing-table' );
}
public function getIconURL() {
return $this->getContainer()->getFileManager()->locateAsset( 'admin/integrations/fox-icon.png' );
}
public function getAuthorURL() {
return 'https://wordpress.org/plugins/woocommerce-currency-switcher/';
}
public function getDescription() {
return __( 'Make the tiered pricing properly work with multiple currencies.', 'tier-pricing-table' );
}
public function getSlug() {
return 'woocs';
}
public function getIntegrationCategory() {
return 'multicurrency';
}
protected function isActiveByDefault() {
return false;
}
}
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists