Closed (won't fix)
Project:
Webform Pay
Version:
6.x-1.0-alpha3
Component:
Code
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
10 Jan 2011 at 15:49 UTC
Updated:
30 Sep 2011 at 04:41 UTC
One feature that would really come in handy is a coupon code field. Currently the only way I can think to accomplish this is to add a new field to the form that we can validate and adjust our price field with, however I was thinking that this feature would be pretty widely used if it existed.
Overall I am loving the simplicity of this module -- it has really come in handy on sites where uc would just be overkill. Thanks for taking the time to put it together.
Comments
Comment #1
quicksketchI probably won't be adding support for coupon codes to Webform Pay. Once you start trying to cover "typical" e-commerce purposes it's all downhill (coupon codes, recurring payments, sales, carts, etc.)
Comment #2
WillHall commentedI can appreciate that, thanks for your response.
Comment #3
DrewMathers commentedYou might be able to this by using Webform Conditional to substitute different payment fields depending on the choice of a coupon option. You would then have to use the regular expression or PHP validation methods in Webform Validation to validate the coupon code.
Comment #4
allie mickaA coupon code payment method would also be a valuable feature for the Payment API proper, as it would be useful for a variety of non-webform payment transactions (e.g. signing up for a site, registering for an event, etc.) That sort of thing is definitely in Pay's bailiwick, as is recurring payments. "Carty" stuff like inventory/shipping/etc. is where we all must draw the line and defer to a real cart system.
Comment #5
quicksketchYeah, as #2 suggested, other modules might be able to provide this functionality. Webform Conditional probably won't handle it correctly at the moment (since it still submits fields that are hidden), but ultimately this may just require clever usage, or, just a separate component for "Coupon code" that affects the value in some creative way.