Alter Quantity Based on Subscription Choice?

phoriumphorium Member
in Help edited December 2007
I'm setting up a cart with subscription options for a monthly service, but I need the quantity to change with the subscription value chosen.

For example, if I choose a service level (price) at a particular amount, say $25, and then choose a subscription renewal every 3 months, I need to change the quantity to 3 so the total charge is $75 every 3 months and not $25.

Any ideas on how to accomplish this?

Thanks in advance.
Comments
  • brettbrett FoxyCart Team
    Quick answer: Javascript.

    It'd actually be pretty easy. Set a select box, name=x:qty, with some numbers. Then add a function to onchange to set the value of hidden inputs for sub_frequency and quantity to that value.

    If that's way over your head, or if you don't know any javascript, let us know and I'll see if we can throw something together.
  • That's what I thought... I just wanted to make sure I wasn't missing something. I'll tackle that with JavaScript and post for others to see once it's working.
  • brettbrett FoxyCart Team
    Great. If you could use the included jQuery it'd probably be easiest. It's jQuery 1.2.1, and it's called $j() instead of $().
Sign In or Register to comment.