Bitcoin Forum

Bitcoin => Project Development => Topic started by: Cryptoman on April 09, 2011, 03:39:24 PM



Title: [CLOSED] OpenCart Bitcoin payment extension (100 BTC)
Post by: Cryptoman on April 09, 2011, 03:39:24 PM
I'm pledging 100 BTC for someone to write an extension for OpenCart to accept payment in Bitcoin.  I'm going to use the features from Mike Gogulski's WordPress payment module as a rough specification.  You can find Mike's module here: http://www.nostate.com/3971/bitcoin-for-wp-e-commerce-shopping-cart-for-wordpress/.  Since OpenCart also utilizes PHP extensions, you should be able to borrow a lot of code from the WP module, especially the Bitcoin support library.

Perhaps someone who is an experienced PHP coder could take a look at this and determine what is a reasonable bounty for the project.  Also, I would encourage others to add to the bounty.  I would like to keep the code open source, by whatever license the community deems appropriate (GNU, MIT, BSD, etc.).  


Title: Re: OpenCart Bitcoin payment extension (100 BTC)
Post by: flix on April 12, 2011, 12:25:32 PM
If you manage to get this done for OpenCart, you might also consider some others.. like osCommerce, Prestashop, Magento...


see:
http://en.wikipedia.org/wiki/Comparison_of_shopping_cart_software

Magento claims to have 90.000 shops using it, PrestaShop over 10.000, osCommerce 12.000...

Getting just one of these systems would open a lot of doors... and they already have multi-currency options, so it should not be too hard..


Title: Re: OpenCart Bitcoin payment extension (100 BTC)
Post by: Cryptoman on April 12, 2011, 06:28:11 PM
We do have a PrestaShop module.  See here: http://www.bposhaughnessy.com/electronics/?p=43.



Title: Re: OpenCart Bitcoin payment extension (100 BTC)
Post by: wobber on April 13, 2011, 03:08:23 PM
We do have a PrestaShop module.  See here: http://www.bposhaughnessy.com/electronics/?p=43.



It won't work on Prestashop 1.4


Title: Re: OpenCart Bitcoin payment extension (100 BTC)
Post by: Cryptoman on April 18, 2011, 05:32:30 PM
A developer has contacted me and is willing to write the module for 150 BTC.  Is there anyone else who would like to contribute to this bounty?



Title: Re: OpenCart Bitcoin payment extension (100 BTC)
Post by: fabianhjr on April 25, 2011, 02:36:05 PM
I will do the module, just wait a sec while I do it and finish my bitcoinClient class in PHP.


Title: Re: OpenCart Bitcoin payment extension (100 BTC)
Post by: tabsa on April 26, 2011, 12:55:30 AM
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 (https://github.com/tabsa/opencart-bitcoin-payment-module/zipball/master)

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

Donate here if you find this usefull: 1PLDpSpTtMnmoSYPfZFEBhuhHPEUSBkSQj


Title: Re: OpenCart Bitcoin payment extension (100 BTC)
Post by: Cryptoman on April 27, 2011, 05:16:21 AM
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 (https://github.com/tabsa/opencart-bitcoin-payment-module/zipball/master)

Readme here:
https://github.com/tabsa/opencart-bitcoin-payment-module/blob/master/README (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.


Title: Re: OpenCart Bitcoin payment extension (100 BTC)
Post by: tabsa on April 27, 2011, 11:50:07 AM
Yeah, i kinda was aiming for the bounty :)

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.


Title: Re: OpenCart Bitcoin payment extension (100 BTC)
Post by: Escalion on April 28, 2011, 09:49:03 AM
I also develop for a company that used prestashop 1.4

I will release the source for a working module here when done.


Title: Re: OpenCart Bitcoin payment extension (100 BTC)
Post by: Cryptoman on April 28, 2011, 04:14:24 PM
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.


Title: Re: OpenCart Bitcoin payment extension (100 BTC)
Post by: F4C3 on May 04, 2011, 04:34:58 AM
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.


Title: Re: OpenCart Bitcoin payment extension (100 BTC)
Post by: Cryptoman on May 04, 2011, 04:44:33 AM
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.


Title: Re: OpenCart Bitcoin payment extension (100 BTC)
Post by: RSantana on May 04, 2011, 06:18:28 AM
Let's get some more momentum behind a Magento plugin.


Title: Re: OpenCart Bitcoin payment extension (100 BTC)
Post by: F4C3 on May 05, 2011, 01:26:53 AM
https://github.com/jalder/Zen-Cart-Bitcoin-Payment-Module


Title: Re: OpenCart Bitcoin payment extension (100 BTC)
Post by: Bit_Happy on May 07, 2011, 08:44:39 AM
...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


Title: Re: OpenCart Bitcoin payment extension (100 BTC)
Post by: F4C3 on May 07, 2011, 04:48:13 PM
...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.


Title: Re: OpenCart Bitcoin payment extension (100 BTC)
Post by: MemoryDealers on May 08, 2011, 02:10:44 PM
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



Title: Re: OpenCart Bitcoin payment extension (100 BTC)
Post by: Cryptoman on May 11, 2011, 03:23:27 PM
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.


Title: Re: OpenCart Bitcoin payment extension (100 BTC)
Post by: Gabriel Beal on May 20, 2011, 06:54:05 PM
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.


Title: Re: OpenCart Bitcoin payment extension (100 BTC)
Post by: accord01 on June 17, 2011, 01:42:16 AM
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 (https://github.com/tabsa/opencart-bitcoin-payment-module/zipball/master)

Readme here:
https://github.com/tabsa/opencart-bitcoin-payment-module/blob/master/README (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.


Title: Re: [CLOSED] OpenCart Bitcoin payment extension (100 BTC)
Post by: enmaku on July 07, 2011, 06:59:21 AM
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  ;D )


Title: Re: [CLOSED] OpenCart Bitcoin payment extension (100 BTC)
Post by: enmaku on July 07, 2011, 02:17:27 PM
*bump*

Anybody? Anybody? Bueller?


Title: Re: [CLOSED] OpenCart Bitcoin payment extension (100 BTC)
Post by: Gabriel Beal on July 07, 2011, 02:23:59 PM
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.


Title: Re: [CLOSED] OpenCart Bitcoin payment extension (100 BTC)
Post by: enmaku on July 07, 2011, 02:32:26 PM
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.


Title: Re: [CLOSED] OpenCart Bitcoin payment extension (100 BTC)
Post by: bitgold on January 20, 2013, 03:45:10 PM
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?