I have a form that creates a registration within the system and then sends the user to PayPal via the PayPal Standard Add-On functionality in order to collect payment. There is a single product with a fixed quantity (of one) and fixed price ($20). This all works as expected.
I’ve since been instructed to add a “Promo/Discount” code to the form that would add a discount of $10 for anyone with the appropriate discount code.
I’ve created a new product field on the form called “Discount” and added a single-line text field called “Discount Code”. I’ve enabled conditional formatting on the “Discount” field such that it is only enabled in the event that the “Discount Code” field’s value matches the valid code. On the frontend, the form does exactly what I expect. The “Discount” product’s field appears when the “Discount Code” value matches and the form total adjusts from $20 to $10.
The problem is that the PayPal redirection querystring that is being generated by the PayPal Standard Add-On doesn’t appear to take the conditional formatting into account and so the total that it sends along to PayPal is the full $20 regardless of the addition or omission of the “Discount” product. Enabling logging and checking the Add-On’s debug output confirms that the “Discount” product is never added.
** NOTE: I do realize that there is an Elite “Coupon” Add-On, but we only have a Pro license and I haven’t been given any budget for this functionality and want to explore all current options before going back with a “You have to pay for that functionality” response. **
Has anyone dealt with PayPal feeds and conditional logic not playing nicely together? Perhaps there is a better way to conditionally modify the price value?