WOOCS - WooCommerce Currency Switcher

WooCommerce – Robokassa Payment Gateway

Plugin link: https://mofsy.ru/portfolio/woocommerce-robokassa-payment-gateway.html

How to adapt:

  • open file \wp-content\plugins\wc-robokassa\class-wc-robokassa.php
  • insert next code as on the screen below:
     if (class_exists('WOOCS'))
    	{
    	   global $WOOCS;
    	   $this->currency = strtoupper($WOOCS->storage->get_val('woocs_current_currency'));
    	} else
    	{
    	   $this->currency = get_woocommerce_currency();
    	}