Support » Plugin: WooCommerce Multilingual - run WooCommerce with WPML » Add a custom service withou API key

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author sergey.r

    (@sergeyr-1)

    Hi Karolina,
    in you own class you need set $this->requires_key to false in constructor.

    You can check in WCML_Exchange_Rates_Fixerio for example https://clip2net.com/s/42FxWvB

    Hi Segey,

    I’ve checked my code and had something like this originally, but it stopped working (I haven’t touched the API for a while). When I set mine or fiexrio $this->requires_key to false, nothing changes. Could you try at your end?

    /**
     * Class WCML_Exchange_Rates_Fixerio
     */
    class WCML_Exchange_Rates_Fixerio extends WCML_Exchange_Rate_Service {
    
    	private $id = 'fixerio';
    	private $name = 'Fixer.io';
    	private $url = 'http://fixer.io/';
    	private $api_url = 'http://data.fixer.io/api/latest?access_key=%1$s&base=%2$s&symbols=%3$s';
    
    	public function __construct() {
    		parent::__construct( $this->id, $this->name, $this->api_url, $this->url );
    		$this->requires_key = false;
    	}
    Plugin Author sergey.r

    (@sergeyr-1)

    Hi Karolina,
    yes you’re right it’s happened after one of latest changes in our code.

    We will fix this in next version.

    Thanks!

    Hi Sergey,

    thanks a lot. Could you ping me when it will be back and running? I will recommend not to update the version or just fill dummy content to the API field (I need to test).

    Have a great day!
    Karolina

    Hi Sergey,

    it’s true that the issue is already in the beta available for the download. But why the fix – a few simple lines – are not in the 4.6.6 released two days ago? It doesn’t break anything and you promised it, does it mean, I need to wait one month more? Could you give me ETA?

    Just these files need to be replaced: https://disk.kybernaut.cz/wcml_fixes.zip

    Thanks and best regards,
    Karolina

    Plugin Author sergey.r

    (@sergeyr-1)

    Hi Karolina,
    we will release another version on the next week with a list of fixes including this one ( We released 4.6.6 with only one urgent fix )

    Thanks for understanding!

    Perfect, happy to hear that!

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.