Support

Home Forums Event Espresso Premium Price modifier does not work for $0 dollars

Price modifier does not work for $0 dollars

Posted: June 27, 2014 at 1:28 pm


ILAwebsite

June 27, 2014 at 1:28 pm

I have a simple question that asks to answer yes or no.
When you answer Yes it adds $20.00, if you answer no, it doesn’t modify the price. Like so: yes|20.00,no|0

The question is outputted as Yes only. So there is no choice to say no. If I make this field required, than this is a problem because it forces people to answer yes. Any ideas how to resolve this problem?


Lorenzo Orlando Caum

  • Support Staff

June 27, 2014 at 4:01 pm

Hi Cheri,

The price modifier supports values other than zero.


Lorenzo


ILAwebsite

June 27, 2014 at 4:11 pm

How can I set this up if someone answers no and does not get charged, and answers yes and gets charged? Is there a way? Or is there an alternative method?


Lorenzo Orlando Caum

  • Support Staff

June 27, 2014 at 5:33 pm

Hi Cheri,

You can set it to use a yes option like this:

yes|20

Then add this jQuery code to rename select one to no.

https://gist.github.com/lorenzocaum/0092e90982b2ffbf0fda

The code above can go into your child theme’s functions.php or a site specific plugin.

It works by looking for “Select One” and renaming it to No. This means that there is a possibility that it will rename other dropdown options on the form.


Lorenzo

The support post ‘Price modifier does not work for $0 dollars’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Lorenzo Orlando Caum 5 years, 4 months ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!
[for="input_96_5_3"]
[for="input_96_5_3"]
[gravityform id=96 title=false description=false]
  • This field is for validation purposes and should be left unchanged.
[i]
[i]
[gravityform id=69 title=false description=false]
  • This field is for validation purposes and should be left unchanged.