Jump to content

Variable Item Amount


Guest markcausa

Recommended Posts

Guest markcausa

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?

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

Guest markcausa

This is the problem:

<form action="/index.php?act=viewProd&amp;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.

Link to comment
Share on other sites

Guest markcausa

perhaps code it and link to it separately?

Looks like the only option :)

I appreciate the responses though. Thank you guys very much! :)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...