Bitcoin Forum
December 09, 2016, 07:59:34 AM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: bitmunchies engineering update: checkout improvements and Minimal accounts  (Read 1023 times)
bearbones
Sr. Member
****
Offline Offline

Activity: 317



View Profile WWW
May 19, 2011, 06:43:15 PM
 #1

My bitcoind server has been experiencing some connectivity issues.  This is why bitmunchies has been slow, and json throws an error on the checkout page.  I have called Quest, and they're working on it.  I also wrote a modification to my cart which should prevent this in the future.  Unfortunately, it won't be of much use until Quest gets their shit together.  I will be releasing this with an update to the existing osc bitcoin module instead of publishing a separate module.  They beat me to it.  Smiley

I disabled all requirements aside from email and password on the signup page, and allow valid, generic replacements.  This took me a couple of hours, and resulted in an arrangement I call 'Minimal Accounts.'  A brief explanation can be found here: http://www.bitmunchies.com/minimalaccounts.php.

On a side note: Why are the existing oscommerce contributions to the guest checkout issue so damn complicated?  I tried both this and this.  After hours of debugging, neither worked.  There must be a reason why they didn't take the simpler approach.  If anyone sees a problem with the Minimal Accounts system, or experiences trouble, please let me know!

Feed Ze Birds Pay and get paid for tweets
Coinapult Send Bitcoins easily over email or text message
1481270374
Hero Member
*
Offline Offline

Posts: 1481270374

View Profile Personal Message (Offline)

Ignore
1481270374
Reply with quote  #2

1481270374
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
bearbones
Sr. Member
****
Offline Offline

Activity: 317



View Profile WWW
May 19, 2011, 07:34:46 PM
 #2

I also wrote a modification to my cart which should prevent this in the future.  Unfortunately, it won't be of much use until Quest gets their shit together.  I will be releasing this with an update to the existing osc bitcoin module instead of publishing a separate module.  They beat me to it.  Smiley

Further details on this, for the immediately curious:

created a table in the DB linking order ids to unique addresses
A cron job populates this table with addresses but does not assign orders
At checkout, instead of querying bitcoind for a new address, it pulls one out of the queue, and assigns its order number
call setaccount(), though if this fails, it is no biggie.  The address is already linked in oscommerce.

This avoids any lag caused by connectivity issues between bitcoind server and php server (or other bitcoind-related issues).

Feed Ze Birds Pay and get paid for tweets
Coinapult Send Bitcoins easily over email or text message
TehZomB
Sr. Member
****
Offline Offline

Activity: 294


WTB NHL Expansion team in Baltimore


View Profile WWW
May 19, 2011, 10:29:20 PM
 #3

Sounds great! Love the service - keep up the good work.

Gabriel Beal
Full Member
***
Offline Offline

Activity: 210


Fezzik, tear his arms off.


View Profile WWW
May 22, 2011, 02:45:20 PM
 #4

I also wrote a modification to my cart which should prevent this in the future.  Unfortunately, it won't be of much use until Quest gets their shit together.  I will be releasing this with an update to the existing osc bitcoin module instead of publishing a separate module.  They beat me to it.  Smiley

Further details on this, for the immediately curious:

created a table in the DB linking order ids to unique addresses
A cron job populates this table with addresses but does not assign orders
At checkout, instead of querying bitcoind for a new address, it pulls one out of the queue, and assigns its order number
call setaccount(), though if this fails, it is no biggie.  The address is already linked in oscommerce.

This avoids any lag caused by connectivity issues between bitcoind server and php server (or other bitcoind-related issues).

That's good stuff.  This is why I think we need a bitcoin-business organization to specifically share this kind of thing.  Maybe we could just start a sub-forum.

Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!