Guest markcausa Posted June 12, 2008 Share Posted June 12, 2008 A non profit I am working with needs a visitor to be able to enter any amount to donate. I've created an item named "Monetary Donation" but need some help making it so the visitor can put in any amount as the item's "cost." Any ideas? Quote Link to comment Share on other sites More sharing options...
Guest Posted June 12, 2008 Share Posted June 12, 2008 Why not do a dropdown for $10, $20, etc.... ? Would be easier. Quote Link to comment Share on other sites More sharing options...
Guest markcausa Posted June 12, 2008 Share Posted June 12, 2008 They want people to be able to key in any amount, like $10 or $20000 Any ideas? Quote Link to comment Share on other sites More sharing options...
Guest Posted June 12, 2008 Share Posted June 12, 2008 Well, theorettically, you could do a special item that writes to the price field, but I don't know the specifics. Don't think you can do it as a standard product - perhaps code it and link to it separately? Quote Link to comment Share on other sites More sharing options...
Guest markcausa Posted June 12, 2008 Share Posted June 12, 2008 This is the problem: <form action="/index.php?act=viewProd&productId=4" method="post" name="addtobasket" target="_self"> and <input name="add" value="4" type="hidden"> It adds up the price through the data base, so there's no form or anything I can code up. Quote Link to comment Share on other sites More sharing options...
Guest markcausa Posted June 12, 2008 Share Posted June 12, 2008 perhaps code it and link to it separately? Looks like the only option I appreciate the responses though. Thank you guys very much! :) Quote Link to comment Share on other sites More sharing options...
burgensteen Posted June 12, 2008 Share Posted June 12, 2008 Your better off posting over at cubecartforums.org. Quote Link to comment Share on other sites More sharing options...
bsmither Posted June 12, 2008 Share Posted June 12, 2008 Originally, I had thought to just replace the Select form element of a product's options with a Textfield, but CC records these options in the basket as an ID code to a list of previously created option assignments. So that idea won't work. It seems that a user-enterable amount would require a full-blown mod. Take a look over at CubeCartForums.org to see what's available. Quote Link to comment Share on other sites More sharing options...
Guest markcausa Posted June 12, 2008 Share Posted June 12, 2008 Ok, it would also need PHP sanitation which is kind of a tall order. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.