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.

Event Espresso