This article is about next plugin: https://codecanyon.net/item/interkassa-20-payment-gateway-for-woocommerce/7286207?ref=realmag777
There is no filters and actions exists to connect both plugins. But you can change code a little to make them works together.
Find function generate_interkassa_form and change code:
if(class_exists('WOOCS'))
{
global $WOOCS;
$aData = strtoupper($WOOCS->storage->get_val('woocs_current_currency'));
} else {
$aData = get_woocommerce_currency();
}
Find function __construct and change code:
if(class_exists('WOOCS'))
{
global $WOOCS;
$aData = strtoupper(strtoupper($WOOCS->storage->get_val('woocs_current_currency')););
} else {
$aData = $_POST;
}
That is all.
[...]
- Plugin link: https://wordpress.org/plugins/woocommerce-payu-latam-gateway/
- open woocommerce-gateway-payulatam.php
- find function __construct()
- instead of:
$this->currency = ($this->is_valid_currency()) ? get_woocommerce_currency() : 'USD';
add next code:
if (class_exists('WOOCS'))
{
global $WOOCS;
$curr = strtoupper($WOOCS->storage->get_val('woocs_current_currency'));
} else
{
$curr = get_woocommerce_currency();
}
$this->currency = ($this->is_valid_currency()) ? $curr : 'USD';
find function is_valid_currency() and replace all code to the next code:
function is_valid_currency()
{
if (class_exists('WOOCS'))
{
global $WOOCS;
$curr = strtoupper($WOOCS->storage->get_val('woocs_current_currency'));
} else
{
$curr [...]
Plugin link: https://mofsy.ru/portfolio/woocommerce-robokassa-payment-gateway.html
How to adapt:
[...]
Plugin: https://wordpress.org/plugins/yith-woocommerce-points-and-rewards/
- In file functions.php of your current wp theme add next code:
add_filter('ywpar_get_active_currency_list', 'woof_get_active_currency_list');
function woof_get_active_currency_list($currencies) {
global $WOOCS;
$currencies = array_keys($WOOCS->get_currencies());
return $currencies;
}
- In file wp-content\plugins\yith-woocommerce-points-and-rewards-premium\templates\panel\types\options-percentual-conversion.php add next code:
<?php
if (class_exists('WOOCS')) {
global $WOOCS;
$currencies = $WOOCS->get_currencies();
echo $currencies;
} else {
echo get_woocommerce_currency_symbol($current_currency);
}
?>
- In file \wp-content\plugins\yith-woocommerce-points-and-rewards-premium\templates\panel\types\options-conversion.php add next cod [...]
Plugin link: https://makewebbetter.com/product/giftware-woocommerce-gift-cards/
- In file \wp-content\plugins\woocommerce-ultimate-gift-card\function\woocommerce-ultimate-gift-card-function.php add next code:
if (class_exists('WOOCS')) {
global $WOOCS;
$currency = $WOOCS->current_currency;
$currencies = $WOOCS->get_currencies();
$rate = $currencies;
if (isset($_POST) AND floatval($_POST) != 0.0) {
$_POST = floatval($_POST) / $rate;
}
}
-
$rate = 1;
if (class_exists('WOOCS')) {
global $WOOCS;
//$order_id=$item->get_order_id();
//$order_currency = get_post_meta($order_id, ‘_order_currency’, true);
//woocs
$order_currency = $WOOCS->current_currency;
$currencies = $WOOCS->get_currencies();
$rate = $currencies;
}
-
$total_discou [...]
Plugin link: https://wordpress.org/plugins/woocommerce-paypal-payments/
- go to file wp-content\plugins\woocommerce-paypal-payments\modules\ppcp-api-client\services.php
- add next code as on the screen: $currency = get_woocommerce_currency();
[...]