Price Attributes

barkerybarkery Member
in Help edited January 2008
I've got the form setup to take orders for custom engraved dog tags. I'm using radio buttons and text fields to get my customers information.

I would like to offer them the ability to engrave information on the back of the tag (more input text fields) for an additional charge.

How would I customize the foxycart form to add additional money to the cost if a customer inputs information in that section of the form?

Any suggestions?
  • lukeluke FoxyCart Team
    Hey Barkery, it sounds like you're looking for product options that modify price. This should get you all setup:

    Please let us know if that helps or if I misunderstood your question.

    You could also add two products with one click using this feature:
  • brettbrett FoxyCart Team
    I think what you need would be a checkbox that does two things on checked:
    1. The checkbox would have a price modifier on it, like value="engraving_back{p+5}"
    2. Adds a new textarea for the back of the tag.

    I was thinking that the textarea would have the price modifier on it, but that doesn't really work, so you'd need the two separate inputs to handle it fully.

    How handy with jQuery/javascript are you? The only trick would be adding the textarea dynamically when the checkbox gets checked.
  • Luke and Brett,

    That worked beautifully. I added a checkbox and going to add javascript to blur the fields if the checkbox is not active.

    On a side note, is there any way to weigh the fields in the order they are sent to the shopping cart? Meaning, when you add the product to the cart, it displays the options in a set order.
Sign In or Register to comment.