A site I recently built for a salon wants to sell giftcards. I set it up as one product with 3 text fields (to/from/message). I set the shipping cost to the fixed amount they told me to, and the default price when I created the product was $0. Obviously the user has to enter in the amount they want the card to be worth.
Initially I was thinking of trying to use the Ubercart Custom Prices module and maybe have a 4th text field called price where they enter in an amount. The custom field where you enter in the code would just need something like textfieldvalue + total = total. Problem #1: what synatx would I use for that? I remember I used to have documentation that listed usable terms, but I seem to have lost it. I don't see it conspicuously mentioned in the link above, nor in the zip file that I downloaded from there.
Also, if this doesn't work, can Ubercart be set up like this out-of-box? That is, no default price but rather the user can enter in?
If all else fails I'll probably set up the prices as options in a select dropdown. That's just tedious though, because I'd have to put in 500 options ($1-$500).


).
Pro Drupal Development (for D6) is probably a good investment... I learned just hacking away on modules and keeping drupal.org handy. Same way I learned PHP... php.net is actually an incredible resource.


Joined: 01/14/2008