Posted: 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. |
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 |
|
|
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. |
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> |
|
|
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? |
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 |
|
|
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. |
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. You can bundle them all together too: |
|
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.