Support

Home Forums Event Espresso Premium EE4: Enabling duplication of additional info when exporting

EE4: Enabling duplication of additional info when exporting

Posted: January 30, 2015 at 2:04 pm

Viewing 12 reply threads


Fitness Universe

January 30, 2015 at 2:04 pm

There is an issue I’m having because the price modifier add-on isn’t available for EE4. As a stop-gap way of adding in a charge when they aren’t a current member, we created an extra option (membership fee) and put it at the very top of the options so they wouldn’t miss it.

So as I discovered, since there isn’t any way of choosing what you want to export, we are getting the membership fee along with the actual registration, where ideally it would only export just the registrants. So I created a VBA macro to delete the rows that had the membership charge in the column ‘Final Price of registration[REG_final_price]’.

Here’s where the problem comes in, when exporting registrations from my events, other than the system questions’ answers, none of the user-created questions’ answers were duplicated. All of the info was stored in the membership fee row. So when the macro deleted the membership fee rows, there was none of the additional info that I needed. I assume this is because if they ordered more than one item in one order, the program decides not to add the additional info onto anything other than the first item (membership fee). Is there a way to enable the duplication of the additional info onto the other items in the order?

If it helps, here is the link to one of our entry forms for reference: http://fitnessuniverse.com/events/fitness-new-england-registration-2/


Josh

  • Support Staff

February 3, 2015 at 7:57 am

Hi Web Desk,

One thing you can try is not set up the membership fee at the top, but instead make it a required ticket.


Fitness Universe

February 3, 2015 at 5:01 pm

Hi Josh,

That would certainly be one way to fix it, but I would prefer not to if possible, since customers who register might overlook it after selecting their event(s). Also, it’s a membership fee that is only paid once a year, making it required would only cause more problems that it would solve. Is there really no other way other than to place the membership fee at the bottom of the events?


Dean

February 4, 2015 at 4:23 am

Hi,

If the ticket is required, it cannot be overlooked, the registration process will not continue until 1 or more of the required tickets have been selected.

But yes, as a yearly fee, requiring it in an event might not be ideal.

I was going to suggest using a Membership plugin and making site access the same as the 2015 etc membership fee. Issue with that is it would cause the user to need to pay twice (once to join the site and then for the event/s).

What about adding it at the bottom but using some simple jQUery to move it to the top?

var row = jQuery.find(".ee-ticket-figure-new-england");
jQuery('.tkt-slctr-tbl tbody').prepend(row).closest('tr');

That obviously moves the Figure New England one, but I’m sure you get the drift.


Fitness Universe

February 14, 2015 at 12:23 pm

Hi,

Finally got around to getting our web developer guy try out the code provided, but he said he wasn’t able to get to work, it didn’t do anything. So, I suppose the stop-gap thing to do now is to just place it at the bottom and hope they don’t glance over it, until a better solution comes about (if ever).


Josh

  • Support Staff

February 19, 2015 at 8:13 am

Hi there,

Did your web developer wrap Dean’s example code within a pair of <script> tags?


Fitness Universe

February 20, 2015 at 3:08 pm

Hi,

Yes, he said he did.


Dean

February 23, 2015 at 1:33 am

Hi,

Add the following to a site specific plugin (https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/) and it should do the job for you:

function deans_magic_js() {

    if( !is_admin() && is_singular('espresso_events') ) {
        ?>

            <script type="text/javascript">
            var row = jQuery.find(".ee-ticket-figure-new-england");
            jQuery('.tkt-slctr-tbl tbody').prepend(row).closest('tr');
            </script>

        <?php
    }

}

add_action('wp_footer', 'deans_magic_js');


Fitness Universe

February 23, 2015 at 5:15 pm

Hi,

Our developer added in the code, but the membership fee still remained at the bottom. It’s unfortunate, but I think if we can’t do anything about this with Event Expresso’s current limitations, then we’ll just keep the membership on on the bottom without modifying anything. It would save a bit of work editing each event ID in the jQuery code as well (which again, we can’t get working).


Dean

February 24, 2015 at 1:29 am

Hi,

I did test the code and it should work (though the Class might need changing slightly).

But yeah, if you are not having any luck with it, you may need to just leave the ticket at the bottom.


Fitness Universe

February 27, 2015 at 12:29 pm

Hi,

Our developer tried it again and the code seems to work now. I don’t know if he did some tweaking or what, but its affecting all of our shows, which is a good thing since we don’t have to insert the code for each one of them. Thank you for all the help!


Fitness Universe

February 28, 2015 at 2:04 pm

UPDATE: The code moved the ticket but would not let us move on to the next step in the registration.


Dean

March 2, 2015 at 1:09 am

Hi,

The code I supplied was an example, but it was a working example. It does not affect the registration process at all. Even if there was an error in the jQuery it wouldn’t stop the process (I added a forced error to see if it caused any issues and while it stopped the swapping of the rows it did not affect the registration process). I can only assume the changes made to it by the developer have caused an issue or there is a different issue occurring.

Viewing 12 reply threads

The support post ‘EE4: Enabling duplication of additional info when exporting’ 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