Support

Home Forums Pre-Releases Remove price modification from showing on form- Price Modifier Addon

Remove price modification from showing on form- Price Modifier Addon

Posted: November 22, 2013 at 12:27 am


Megan Roach

November 22, 2013 at 12:27 am

I am just installed and am trying out the price modifier add-on and I would like to remove the actual price modification text from showing the price on the form: eg “Widget A [$45]” I want to show just “Widget A”

I have it set up in the form of a dropdown menu with multiple options at different prices, but I don’t want those to show up. Is there some code I can comment out to hide this?

Thanks!


Dean

November 22, 2013 at 3:36 am

Hi Megan,

It isn’t possible without a code change.

In the confirmation_display.php, you could add something like the following to the table row on line 143

id='<?php echo str_replace(" ", "_", $question->question); ?>'

This will add an id to each row with the question name (spaces replaced with underscores) so that you can use CSS to target the row and display:none it.


Megan Roach

November 22, 2013 at 7:42 am

Where is the confirmation_display.php file stored?


Megan Roach

November 22, 2013 at 7:58 am

Nevermind, I found the confirmation_display.php file and added the code. Should I now just add the CSS to my custom CSS file? I am not familiar with this type of CSS coding….can you give me a quick sample of what the code would look like! Thanks so much!


Sidney Harrell

November 22, 2013 at 2:29 pm

Can you give a link to the registration page? The specific css would depend on the question’s text, but it would be something like:

#Add_a_dinner {display: none}


Megan Roach

November 22, 2013 at 2:56 pm

http://www.familyeconomics.com/event-registration/?ee=1

This is still rough and in the works, but here is the form. I am using the price mod to subtract the fee from adding additional attendees for a family registration. I just don’t want folks to get confused when they see the price subtraction.


Sidney Harrell

November 22, 2013 at 3:43 pm

You’ll want to put the id as the attribute on the table row like this:

<tr id='<?php echo str_replace(" ", "_", $question->question); ?>'>

The support post ‘Remove price modification from showing on form- Price Modifier Addon’ 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