Pages:
Author

Topic: [CLOSED] OpenCart Bitcoin payment extension (100 BTC) (Read 11372 times)

sr. member
Activity: 353
Merit: 250
On the store front ( Opencart version 1.5.4 ), I got this:

Error communicating with payment provider. Please contact the store for assistance.

In the log, I see this:

2013-01-20 5:52:23 - PHP Notice:  Undefined variable: bitcoin_send_address in /var/www/html/opencart/catalog/view/theme/default/template/payment/bitcoin.tpl on line 51
2013-01-20 5:52:23 - PHP Notice:  Undefined variable: bitcoin_send_address in /var/www/html/opencart/catalog/view/theme/default/template/payment/bitcoin.tpl on line 53
2013-01-20 5:52:23 - PHP Notice:  Undefined variable: bitcoin_send_address in /var/www/html/opencart/catalog/view/theme/default/template/payment/bitcoin.tpl on line 55

where should this variable be set?

hero member
Activity: 742
Merit: 500
What we did on SquareWear.biz was add btc as a currency and modified the display so that the bitcoin price always displays with the fiat currency selected in parentheses.  We also modified the opencart currency update script that runs so that it grabs prices from bitcoincharts.  However, it only does this whenever you click on the dashboard.  Weirdly, I think that's the intended behavior for opencart.  So once a day, I just click on dashboard and watch the prices change.  PM me if you'd like to see our code modifications.  One warning, we're running 1.4.9 and not the newest Opencart.

PM sent good sir.
full member
Activity: 210
Merit: 100
Fezzik, tear his arms off.
What we did on SquareWear.biz was add btc as a currency and modified the display so that the bitcoin price always displays with the fiat currency selected in parentheses.  We also modified the opencart currency update script that runs so that it grabs prices from bitcoincharts.  However, it only does this whenever you click on the dashboard.  Weirdly, I think that's the intended behavior for opencart.  So once a day, I just click on dashboard and watch the prices change.  PM me if you'd like to see our code modifications.  One warning, we're running 1.4.9 and not the newest Opencart.
hero member
Activity: 742
Merit: 500
*bump*

Anybody? Anybody? Bueller?
hero member
Activity: 742
Merit: 500
OK so if I leave the default currencies there (USD, Pounds, Euro etc.) it works beautifully and converts to BTC at a decent exchange rate during checkout, but I'd really like to have the option to display prices in BTC while browsing. Is there some easy way to add a currency that will match MyBitcoin's exchange rate? I can see the currency entries in the database, it looks like I'd just need to set the BTC entry's exchange rate to 1/usd_value but I'd rather not hand-code all that if there's already something integrated or someone's already written the code.

Has anyone already tackled this?

Edit: I have no problem doing the work myself if there's no solution, I just want to know if there is one I'm overlooking or if I should do the work. I'm pretty sure I've got both a Mt Gox ticker API script and a simple database update script just laying around that I could bash together, but I'd rather use something official, developed by pros who speak PHP fluently (unlike this .NET pro who speaks PHP quite poorly  Grin )
full member
Activity: 238
Merit: 100
Bitcoin payment module for opencart 1.4.9.4.
All payments are processed by mybitcoin.com

PM me if you found bugs or need help setting it up. Or find me on IRC 'tabsa'.

Download here:
https://github.com/tabsa/opencart-bitcoin-payment-module/zipball/master

Readme here:
https://github.com/tabsa/opencart-bitcoin-payment-module/blob/master/README

Donate here if you find this usefull: 1PLDpSpTtMnmoSYPfZFEBhuhHPEUSBkSQj

It seems like there was a glitch or something in the add on for bitcoins in open cart.  I am in wait for something that works securely with open cart 1.5x so i can get my bitcoin commerce going.  Btw- I am a completely newbie to site developments and ecommerce.
full member
Activity: 210
Merit: 100
Fezzik, tear his arms off.
I am getting the following errors when I try to use tabsa's module:

Code:
2011-04-29 16:42:55 - PHP Notice:  Undefined index:  SCI_Currency_BTC_Rate in /home/bitcoinw/public_html/catalog/controller/payment/btc_mybitcoin.php on line 57
2011-04-29 16:42:55 - PHP Notice:  Undefined variable: main_currency in /home/bitcoinw/public_html/catalog/view/theme/default/template/payment/btc_mybitcoin.tpl on line 20
2011-04-29 16:42:55 - PHP Notice:  Undefined variable: btc_rate in /home/bitcoinw/public_html/catalog/view/theme/default/template/payment/btc_mybitcoin.tpl on line 20
2011-04-29 16:42:55 - PHP Notice:  Undefined variable: total_btc in /home/bitcoinw/public_html/catalog/view/theme/default/template/payment/btc_mybitcoin.tpl on line 21

I contacted him via PM and he said he would look into it, but I haven't heard anything back from him in over a week.  I need to get a storefront up and running ASAP, so I'm going to close this bounty and go with a custom Rails cart instead.  I have sent tabsa a payment of 25 BTC for his efforts thus far, which is more than the original bounty in value terms due to the tremendous run-up in the Bitcoin exchange rate.

I had the same errors.  The newest version of his extension fixes these errors.
hero member
Activity: 726
Merit: 500
I am getting the following errors when I try to use tabsa's module:

Code:
2011-04-29 16:42:55 - PHP Notice:  Undefined index:  SCI_Currency_BTC_Rate in /home/bitcoinw/public_html/catalog/controller/payment/btc_mybitcoin.php on line 57
2011-04-29 16:42:55 - PHP Notice:  Undefined variable: main_currency in /home/bitcoinw/public_html/catalog/view/theme/default/template/payment/btc_mybitcoin.tpl on line 20
2011-04-29 16:42:55 - PHP Notice:  Undefined variable: btc_rate in /home/bitcoinw/public_html/catalog/view/theme/default/template/payment/btc_mybitcoin.tpl on line 20
2011-04-29 16:42:55 - PHP Notice:  Undefined variable: total_btc in /home/bitcoinw/public_html/catalog/view/theme/default/template/payment/btc_mybitcoin.tpl on line 21

I contacted him via PM and he said he would look into it, but I haven't heard anything back from him in over a week.  I need to get a storefront up and running ASAP, so I'm going to close this bounty and go with a custom Rails cart instead.  I have sent tabsa a payment of 25 BTC for his efforts thus far, which is more than the original bounty in value terms due to the tremendous run-up in the Bitcoin exchange rate.
vip
Activity: 1052
Merit: 1155
I also am interested in the magento plugin.
My store is changing from Yahoo store to Magento within the next two weeks, and I want to have automated bitcoin transactions ready ASAP.

The more online stores we can have that accept bitcoin,  the faster it will become accepted as main stream.

http://www.memorydealers.com

newbie
Activity: 31
Merit: 0
...along with a backend service in zencart admin to view the transactions for easy matching to the pending orders...

For digital downloads can your plugin complete the transaction 100% automatically? Thanks

I can add this feature in the near future if you'd like.  Essentially it would just have to be a cron job running on the server cross checking pending invoices and payment addresses, then working with the zencart api to mark the item as processed, at which point your product settings should automatically deliver the item at Processed.
legendary
Activity: 2114
Merit: 1040
A Great Time to Start Something!
...along with a backend service in zencart admin to view the transactions for easy matching to the pending orders...

For digital downloads can your plugin complete the transaction 100% automatically? Thanks
member
Activity: 111
Merit: 10
CoinedBits.com
Let's get some more momentum behind a Magento plugin.
hero member
Activity: 726
Merit: 500
I've just finished writing the first version of a bitcoin payment module for zencart.  It works with bitcoind over rpc and is very easy to install.  Offers unique payment address for each customer checkout, along with a backend service in zencart admin to view the transactions for easy matching to the pending orders.

Let me know if you are interested.

Excellent!  Are you planning to release the source?  I'm somewhat committed to OpenCart at the moment.  I've tried tabsa's code and had a little trouble with it, but I'd like to see the OpenCart module at least working with MyBitcoin.  Then I'll pay him part of the bounty and see if he or someone else wishes to extend it to communicate with bitcoind.
newbie
Activity: 31
Merit: 0
I've just finished writing the first version of a bitcoin payment module for zencart.  It works with bitcoind over rpc and is very easy to install.  Offers unique payment address for each customer checkout, along with a backend service in zencart admin to view the transactions for easy matching to the pending orders.

Let me know if you are interested.
hero member
Activity: 726
Merit: 500
I decided to make it working with mybitcoin.com for obviously user friendly reasons, keeping bitcoind running securely, and supporting it requires a VPS at minimum and some technical knowledge.

You should be able to just use https over Json-rpc.
newbie
Activity: 7
Merit: 0
I also develop for a company that used prestashop 1.4

I will release the source for a working module here when done.
member
Activity: 69
Merit: 10
Yeah, i kinda was aiming for the bounty Smiley

I decided to make it working with mybitcoin.com for obviously user friendly reasons, keeping bitcoind running securely, and supporting it requires a VPS at minimum and some technical knowledge.

Making it work with bitcoind is next on my list, but it will probably take a week or two to get there.
hero member
Activity: 726
Merit: 500
Bitcoin payment module for opencart 1.4.9.4.
All payments are processed by mybitcoin.com

PM me if you found bugs or need help setting it up. Or find me on IRC 'tabsa'.

Download here:
https://github.com/tabsa/opencart-bitcoin-payment-module/zipball/master

Readme here:
https://github.com/tabsa/opencart-bitcoin-payment-module/blob/master/README

Donate here if you find this usefull: 1PLDpSpTtMnmoSYPfZFEBhuhHPEUSBkSQj

Did you write this with the bounty in mind?  This is a nice effort, though not exactly what I had in mind.  Mybitcoin.com has had some issues in the past, and I consider them somewhat unreliable.  The WordPress module referenced in the OP communicates with bitcoind on either the same server or a remote one.  Give me a couple of days to try out your code and I will at least make a donation.
member
Activity: 69
Merit: 10
Bitcoin payment module for opencart 1.4.9.4.
All payments are processed by mybitcoin.com

PM me if you found bugs or need help setting it up. Or find me on IRC 'tabsa'.

Download here:
https://github.com/tabsa/opencart-bitcoin-payment-module/zipball/master

Readme here:
https://github.com/tabsa/opencart-bitcoin-payment-module/blob/master/README

Donate here if you find this usefull: 1PLDpSpTtMnmoSYPfZFEBhuhHPEUSBkSQj
Pages:
Jump to: