Posted - 10/01/2018 : 21:02:37
For anyone who wants to see this demo, I have a link below.
The donate button will not show until a shipping option has been selected on the last stage of checkout. After tax and all in grand total, we check to see what that amount is. Then we display a button (can be dressed up to look like other button on your site) and it have a hover title with some info. We can add a tool tip popup there if needed. Clicking the button loops through the donations page and adds to cart. The shopper will proceed back to checkout where the donate button is replaced with a thank you button. If the user selects a different shipping option, they will not be asked to round up again. If the user goes back to cart and removes the donation, then the button will ask them to round up again.
If the customers cart already has an even number, they will not be presented with a round up option.
This dev site has no ssl, so you may see a security warning. This link is to a product that has a non even price, so it's good to test with. Just add to cart and enter an address and you should see the button. Click the button to add the donation.
This is updater proof and is a very easy addition to your cart.asp or cart.php page
http://www.floridasurpluswarehouse.com/flsurplus/dev/proddetail.php?prod=testproduct
Edited by - dbdave on 10/01/2018 21:06:14
|