Support

Home Forums Event Espresso Premium Need Donation as optional

Need Donation as optional

Posted: July 30, 2018 at 5:24 am

Viewing 10 reply threads


shankarpic5k

July 30, 2018 at 5:24 am

I need to setup registration form as like this http://pic5k.org/register/?epl_action=process_cart_action&cart_action=add&event_id=754
need to pass donation price too.

  • This topic was modified 6 years, 4 months ago by Josh. Reason: removed img tag


shankarpic5k

July 30, 2018 at 5:25 am

<form autocomplete=”off” action=”/register/?epl_action=regis_form&cart_action=add&event_id=754″ method=”post” id=”events_planner_shopping_cart” novalidate=”novalidate”>

<div class=”epl_cart_wrapper”>

<div class=”event_name section”>REGULAR REGISTRATION</div>

<div class=”section” style=”display:none”>

<div style=”display:none;”>

<input type=”radio” id=”” name=”_epl_start_date[754][]” class=”” style=”” value=”” checked=”checked”>

</div>

</div>

<div class=”section”>
<div class=”epl_times_wrapper” style=”display:none;”>

<span>Time: </span>

<select name=”_epl_start_time[754][]” id=”” class=”” style=””><option value=”3b945d”>08:00 AM – 12:30 PM</option>
</select>
</div>

<table class=”epl_prices_table”>
<tbody><tr>
<th>
Type </th>

<th>
Price </th>
<th>
Your Choice </th>

</tr>

<tr>
<td>
Participation at the Event </td>

<td>
$25 </td>
<td style=”text-align:center;”>
<select name=”_att_quantity[754][lbizgA][]” id=”” class=”epl_att_qty_dd select” style=””><option value=””>0</option>
<option value=”1″>1</option>
<option value=”2″>2</option>
<option value=”3″>3</option>
<option value=”4″>4</option>
<option value=”5″>5</option>
<option value=”6″>6</option>
<option value=”7″>7</option>
<option value=”8″>8</option>
<option value=”9″>9</option>
<option value=”10″>10</option>
</select> </td>

</tr>
<tr>
<td>
Participation at the Event – Student </td>

<td>
$10 </td>
<td style=”text-align:center;”>
<select name=”_att_quantity[754][3KEEax][]” id=”” class=”epl_att_qty_dd select” style=””><option value=””>0</option>
<option value=”1″>1</option>
<option value=”2″>2</option>
<option value=”3″>3</option>
<option value=”4″>4</option>
<option value=”5″>5</option>
<option value=”6″>6</option>
<option value=”7″>7</option>
<option value=”8″>8</option>
<option value=”9″>9</option>
<option value=”10″>10</option>
</select> </td>

</tr>
<tr>
<td>
+ Our additional contribution of $25 (optional) </td>

<td>
$25 </td>
<td style=”text-align:center;”>
<input type=”radio” id=”_att_quantity[754][iuPz1h][]” name=”_att_quantity[754][iuPz1h][]” class=”epl_att_qty_dd” style=”” value=”1″>
<br> </td>

</tr>
<tr>
<td>
+ Our additional contribution of $50 (optional) </td>

<td>
$50 </td>
<td style=”text-align:center;”>
<input type=”radio” id=”_att_quantity[754][x3n3yd][]” name=”_att_quantity[754][x3n3yd][]” class=”epl_att_qty_dd” style=”” value=”1″>
<br> </td>

</tr>
<tr>
<td>
+ Our additional contribution of $75 (optional) </td>

<td>
$75 </td>
<td style=”text-align:center;”>
<input type=”radio” id=”_att_quantity[754][HmRZM8][]” name=”_att_quantity[754][HmRZM8][]” class=”epl_att_qty_dd” style=”” value=”1″>
<br> </td>

</tr>

</tbody></table> </div>

<div id=”epl_totals_wrapper” class=”section”>

<table class=”epl_totals_table”>

<tbody><tr class=”epl_grand_total”>

<td class=”epl_w200″ style=”font-weight:bold;”>Total</td>
<td class=”epl_total_price epl_w100 epl_ta_r”> $0</td>
</tr>

</tbody></table> Refresh Total
</div>

<div class=”section”>

<div class=”individual_pay_choice clearfix”>
<span class=”pay_choice_field”>
<input type=”radio” id=”” name=”_epl_selected_payment[]” class=”” style=”” value=”” checked=”checked”>
</span>
<span class=”pay_choice_field”>
<label for=””><span style=”font-size:11px; font-family: Arial, Verdana;”>The safer, easier way to pay.</span></label> </span>
</div> </div>

</div>

<p class=”epl_button_wrapper”>

<input type=”submit” name=”next” class=”epl_button” value=”Next: Attendee Information”>

</p>
</form>


Josh

  • Support Staff

July 30, 2018 at 10:19 am

Hi,

I’m looking at the URL you posted and I can see that’s a page with an events planner plugin ticket selector.

You can do something similar with Event Espresso 4 regular by adding additional, optional tickets. Under “Ticket Options” you hit the Create New Ticket button to add more ticket options.

You can also upgrade your site from EE4 Decaf to the regular (caffeinated) version to add advanced ticket options (like a maximum qty option per ticket option). You’ll follow these steps to upgrade to the regular version:

1) Download the EE4 plugin from your account page
2) Go to your WP Dashboard Plugins page and deactivate and delete the decaf version of Event Espresso (you will not lose data because Event Espresso does not run uninstall scripts when you deactivate & delete the plugin)
​3) Upload the new plugin to your site via Dashboard -> Plugins -> Add New.
4) Activate the plugin.


shankarpic5k

July 31, 2018 at 12:37 am

Hi Josh,
I have followed all the steps you have given still not able to build the same form . can you please provide me the documentation link so that i will follow to achieve my task. i need to set up the form same like which shared link.


Tony

  • Support Staff

July 31, 2018 at 3:30 am

You can’t setup EE to be exactly the same as the page you linked to without heavy customization to the ticket selector which is not something we can provide.

Josh mentioned you can add additional tickets to the event to be used as donations but its not going to work exactly the same as the current event output does.


shankarpic5k

July 31, 2018 at 4:32 am

“Josh mentioned you can add additional tickets to the event to be used as donations but its not going to work exactly the same as the current event output does.”

can you explain clearly how to achieve this?
for donation ticket no need attendee information.


Tony

  • Support Staff

July 31, 2018 at 4:48 am

You would add the tickets to the event like so – http://take.ms/26lYe

Then set the Min and Max qty for those donation tickets to 1 – http://take.ms/utYQhM

However, you set the registration questions on the event, so you can either collect the attendee information for 1 registration, or all registration (1 tickets = 1 registration) so you can’t specify to not request details for the donation tickets with that set up.

Another option would be to use a 3rd party add-on to create a question that you can assign a value to, so the user would have a donation question on the registration form and if the selected that it would add the value of the question to the registration.

Take a look here:

http://aparnascodex.com/downloads/price-modifier-for-event-espresso-4/

Would that work better?


shankarpic5k

August 7, 2018 at 4:20 am

Hi,
iam a wordpress developer. if i want to add donation field can you please provide a way to change code.i build my form you can see here (http://sraossinc.net:7071/pic5k/events/regular-registration/) but i need to show donation amount in attendee information and pass donation amount too paypal express payment too.


Tony

  • Support Staff

August 7, 2018 at 4:27 am

iam a wordpress developer. if i want to add donation field can you please provide a way to change code.

If you are a developer you can use this code:

https://github.com/eventespresso/ee-code-snippet-library/blob/master/checkout/bc_ee_add_product_surcharge.php

As a based to build out your own custom question field that will add a value to the EE transaction, another example I modified to do multiple fields, here:

https://gist.github.com/Pebblo/51c4284d2dbedb7c0e1daff0c562f1dc

i build my form you can see here (http://sraossinc.net:7071/pic5k/events/regular-registration/) but i need to show donation amount in attendee information and pass donation amount too paypal express payment too.

Unless I’m misunderstanding, the current setup would work for both of those requirements?


shankarpic5k

August 7, 2018 at 4:46 am

Hi,
The code URL you have shared is not exact functionality am expecting to implement.

Is it possible to discuss with you reg. the issue am facing ?
Can you please provide your contact number to reach you ?

Thank You


Tony

  • Support Staff

August 7, 2018 at 4:52 am

The code URL you have shared is not exact functionality am expecting to implement.

Of course, it’s a base for you to build from as you are asking how to do something EE currently does not, so it’s a customization.

Is it possible to discuss with you reg. the issue am facing ?

You would be better adding the details here, there are more team members than just me and others may be able to provide more details or a different ideas to mine.

Can you please provide your contact number to reach you ?

Currently, we do not provide phone support and have details as to why here:

https://eventespresso.com/wiki/why-we-dont-have-phone-support/

If you add the details of what you are trying to do here we may be able to provide you with pointers to get you on the right direction. However, note that it does sound like you are trying to add a custom function to EE, which is outside the scope of support but we’ll help point you in the right direction if we can.

Viewing 10 reply threads

The support post ‘Need Donation as optional’ 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