Support

Home Forums Event Espresso Premium Selling Additional Items via Event Espresso

Selling Additional Items via Event Espresso

Posted: June 5, 2013 at 8:53 am

Viewing 7 reply threads


Nathan Vance

June 5, 2013 at 8:53 am

Hi, We are setting up a website based on river tubing with different options they can purchase. The client also wants to be able to have customers purchase different items through it as well, for example: a hotdog or hamburger plate, waterproof bag for a cellphone and documents, sun glasses, etc. Can this be done through Event Espresso? We currently have it set with multiple packages fro different tube upgades and are looking at a way to add this. The website is http://www.saludariveryachtclub.com.  Thanks in advance.


Josh

  • Support Staff

June 5, 2013 at 10:26 am

Hi Nathan,

Event Espresso doesn’t handle physical goods that well. Some folks have set up options like these as separate events and from there used the Multi Event Registration’s [ESPRESSO_CART_LINK] shortcode to offer the additional items on the registration page.

From there, some JavaScript can be used to hide the additional event registration forms that display on the registration page. Sidney worked up something that could be adapted for this use case:

https://github.com/sidharrell/eventespresso/blob/master/simplify-mer-attendee-page.js


Nathan Vance

June 5, 2013 at 12:39 pm

Hi Josh, thanks for the quick response. I think your idea for this work around is a good one, however, I am fairly new on knowing how to implement this code or where to put it. Do you mind giving me further guidance. Much thanks. Nathan.


Josh

  • Support Staff

June 5, 2013 at 1:47 pm

It could go right into the multi_registration_page.php template file as long as your wrap it in script tags like this:

<script>//code goes here
</script>


Nathan Vance

June 6, 2013 at 10:09 am

Hi Josh, so I need to post it directly after the script tag correct, and does not need the “//”? Does it need to be inside the php tags or can it go directly after?


Josh

  • Support Staff

June 6, 2013 at 10:51 am

Hi Nathan,

The // is a comment marker. Anything after the // will be ignored. So no // before your code or it will not run.

The script tags need to be within the html part of the document. So if you look in the example code below, you’ll see it’s added right after a closing ?> tag and before an opening php tag:

?>
<script>
jQuery(document).ready(function($) {
	$('#event_espresso_checkout_form div.multi-reg-page:not(:first)').css('display', 'none');
	$('.copy-all-button-wrapper').parent().parent().css('display', 'none')
	$('.event_questions input').change(function() {
		$('.copy-all-button').click();
	});
});
</script>
<?php 


Nathan Vance

June 20, 2013 at 9:53 am

Hi Josh,

Was wonder how to link to the event with the short code? We have the JQuery script added in now and were looking into getting the other parts started now.


Josh

  • Support Staff

June 20, 2013 at 11:15 am

Hi Nathan,

Here’s an example based on your original question:

1) You can create an event for an item, like the waterproof bag, find its ID by looking in the ID column of the event overview. Let’s say it’s 18.
2) You’d place this anywhere on the page where you want the additional items to appear:
[ESPRESSO_CART_LINK event_id=”18″ anchor=”Add a waterproof bag”]

You can bundle them all together too:
[ESPRESSO_CART_LINK event_id=”18-19-20″ anchor=”Add all the options to the cart”]

Viewing 7 reply threads

The support post ‘Selling Additional Items via Event Espresso’ 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