Title: Opencart bitcoin plugin for Coinbase prices Post by: pugetfield on June 10, 2014, 06:53:44 PM This is a dirty hack but i thought i would share. It is based on the btcgear plugin with the MtGox code swapped for Coinbase
1a. Download code from https://github.com/btcgear/Bitcoin_Exchange_Rate_OpenCart (https://github.com/btcgear/Bitcoin_Exchange_Rate_OpenCart) and extract somewhere. 1b. Download code from https://github.com/coinbase/coinbase-php (https://github.com/coinbase/coinbase-php) and copy the 'lib' folder to \upload\catalog\controller\common\ in above dir. 2. Edit the file \upload\catalog\controller\common\bitcoin_update.php as follows; Replace everything after public function runUpdate() { (line 60) with; Code: require_once(dirname(__FILE__) . '/lib/Coinbase.php'); 3. Install code as per instructions in instructions.txt Please let me know if you need any help or something, or can make the code better - or fork it on Git for me! |