Support

Home Forums Event Espresso Premium Custom Template Addon

Custom Template Addon

Posted: August 1, 2016 at 12:04 pm

Viewing 7 reply threads


Emma Hartsfield

August 1, 2016 at 12:04 pm

Hi All,

I have custom template addon installed and it is working nicely here https://icmhq.com/training/public-cmii-course-registration/

I would like to make a separate list using a different category on a different page here https://icmhq.com/purchase-cmii-standards/

Only the second list is a set of products, not events, so I need to remove the date and venue columns on the table.

Can I copy the template that is being used on the first example, rename it, modify it, and use it for the second example?

I have multiple templates in the uploads/espresso directory but can’t figure out what shortcode I’m supposed to use for each template. Please help.

Thanks,

Emma


Josh

  • Support Staff

August 1, 2016 at 1:42 pm

Can I copy the template that is being used on the first example, rename it, modify it, and use it for the second example?

Yes, and you can take this a few steps further by copying the modified template to your WordPress theme folder (uploads/espresso works but is less than ideal). First, you create a folder in the theme and you name it
‘my-custom-ee-template-yay’
Then you put your copy of the template in that folder (its name should be template.php)

The short code that uses your new template will be

[EVENT_CUSTOM_VIEW template_name=my-custom-ee-template-yay]


Emma Hartsfield

August 1, 2016 at 1:56 pm

Okay I did that and this is the message I am now getting on that page “The custom template my-custom-ee-template-yay can not be found”

Do I need to copy the other files from the custom-templates folder?


Josh

  • Support Staff

August 1, 2016 at 2:27 pm

Yes, sorry about that, there’s one more file you need to copy/modify. Continuing from the above example, you will also copy this index.php file over to your theme’s my-custom-ee-template-yay folder:

https://gist.github.com/joshfeck/886f8e1ba5970997ac3761ee2ddcf41a


Emma Hartsfield

August 1, 2016 at 2:43 pm

Works perfect! Thank you!

Is there a way to offer a discount if someone registers for multiple (specific) events? For this same page https://icmhq.com/purchase-cmii-standards/

If someone purchases all three standards, they should receive a $250 discount.

Is this possible?

I have the promo codes add on.


Josh

  • Support Staff

August 1, 2016 at 3:47 pm

There’s a Volume discounts feature that’s added by an add-on that works with EE3 + MER.

https://eventespresso.com/wiki/volume-discounts/


Emma Hartsfield

August 3, 2016 at 10:00 am

Okay I worked around that by bundling the items together. Once you add one of the standards to the cart there is time and date information. I was able to remove the “Your allowed to register a maximum” text with css but I don’t see how this can be done with the date and time and the header row of that table.

Ideally, I would hide only the date and time options for events that have Allow Group Registrations? set to No. Is this possible?

Also the time information is out of order it says “8:00 am 5:00 pmto” I can see in the code it calls it out in the right order. Any idea what could be causing it to display this way?

One more thing. On the event detail page, there is no registration link if the Display registration form? Is set to No. It did not used to be like this. If you select an event with the drop down it takes you to the detail page with no way to register. Please help. Example at bottom of page here https://icmhq.com/cmii-courseschedule-online/


Tony

  • Support Staff

August 3, 2016 at 1:22 pm

Ideally, I would hide only the date and time options for events that have Allow Group Registrations? set to No. Is this possible?

Only within the cart? Its possible but you would need to create your own custom function used to display the events within the cart.

Also the time information is out of order it says “8:00 am 5:00 pmto” I can see in the code it calls it out in the right order. Any idea what could be causing it to display this way?

That’s happening because your theme is floating all spans to the left and adding left margin – http://take.ms/yCAcX

You can use some custom CSS to fix those field, like this:

#cart-reg-details .span_event_time_value {
    float: none;
    margin-left: 0;
}

One more thing. On the event detail page, there is no registration link if the Display registration form? Is set to No. It did not used to be like this. If you select an event with the drop down it takes you to the detail page with no way to register. Please help. Example at bottom of page here https://icmhq.com/cmii-courseschedule-online/

Do you have an event set with no registration form?

I’m not sure I understand what your trying to do, if you set the event not to display the registration form then the user can not register onto that event, but you still want them to directed to the event?

Viewing 7 reply threads

The support post ‘Custom Template 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