sidhujag Posted February 25, 2015 Share Posted February 25, 2015 I am developing prestashop ecommerce app for a client (http://cryptosmith.info)... now since user is able to pay via gold/silver (bitGOLD, bitSILVER from bitshares DEX, see bitshares.org) it is price and time sensitive... if user checks out then I want to give them 15 mins to complete the order process. I also created a custom payment gateway for bitshares which will process an order once payment is complete... what is the best method of doing the timeout, in the payment gateway or in the shopping cart via prestashop? 1 Link to comment Share on other sites More sharing options...
hiranp Posted March 7, 2015 Share Posted March 7, 2015 I have a similiar problem. I have limited stock and people horde products into their carts and others can't purchase things. Did you figure out a way to set a timeout for the cart, so after 10 minutes, the items become unavailble if they are already sold. Link to comment Share on other sites More sharing options...
sidhujag Posted March 7, 2015 Author Share Posted March 7, 2015 I have a custom payment gateway i created and I ended up doing a timeout with a 15 min timer where I send a cancel order to the backend.. http://Cryptosmith.info src: https://github.com/sidhujag/bitshares-prestashop Link to comment Share on other sites More sharing options...
El Patron Posted March 7, 2015 Share Posted March 7, 2015 I have a custom payment gateway i created and I ended up doing a timeout with a 15 min timer where I send a cancel order to the backend.. http://Cryptosmith.info src: https://github.com/sidhujag/bitshares-prestashop Hi, thanks for sharing! Can you point out the code, sorry I looked through the bitshares.php but it was not obvious how you accomplished cancel order etc. Probably the 3.5euro reading glasses I had to buy in Spain when my US glasses went kaput. Thanks, Fred Link to comment Share on other sites More sharing options...
sidhujag Posted March 7, 2015 Author Share Posted March 7, 2015 Hey see function cancelOrderUser here https://github.com/sidhujag/bitshares-prestashop/blob/master/bitshares/userfunctions.php Its a function thats called from a javascript front end https://github.com/sidhujag/bitsharescheckout Link to comment Share on other sites More sharing options...
Recommended Posts