Support

Home Forums Event Espresso Premium sidebar, css and invoice

sidebar, css and invoice

Posted: April 16, 2019 at 3:58 am


efransen

April 16, 2019 at 3:58 am

First of all, let me say we are really excited about Event Espresso! Some last questions to finish up and go online…

1. I would like to get the sidebar (Sidebar summer school) next a single event espresso (= copy from single.php from theme Bridge and paste into the child theme, renamed single-espresso_events.php). How can this be accomplished?

2. After people registered for an event (paying later with ‘bank transfer’), people can switch between ‘receipt’ and ‘invoice’.
2a/ How can we not show the button ‘switch to invoice’ at the bottom of the page? We don’t want to give invoices at all.
2b/ How can we delete the text and link ‘please make a payment’ on the ‘order confirmation’, because the organizers will send their own emails with instructions on how to pay.

3.We don’t want to show taxes at all, not on the transaction receipt, not online.

4. On ‘registration checkout’ there is a button ‘proceed to finalize registration’. How can we change this text, because the registration is final when the pay with a bank transfer.

5a/ Is there an easy way to not show the footer and widget with social media in all the template (messages > default or custom template messages)?
5b/ Is there an easy way to include the style from the website in the default or custom template messages, such as font, font size, font color?

6. How can each event has a proper url. I would like to change ‘https://www/?post_type=espresso_events&p=105&preview=true’ into ‘https://www/titleEvent’


efransen

April 16, 2019 at 3:59 am

This reply has been marked as private.


Tony

  • Support Staff

April 16, 2019 at 8:35 am

Hi there,

1. I would like to get the sidebar (Sidebar summer school) next a single event espresso (= copy from single.php from theme Bridge and paste into the child theme, renamed single-espresso_events.php). How can this be accomplished?

I’m sorry but I’m not really sure I follow the above, are those the steps you’ve taken already?

Meaning you need help with the last step of how to get your single-espresso_events.php to display a specific sidebar?

2a/ How can we not show the button ‘switch to invoice’ at the bottom of the page? We don’t want to give invoices at all.

If you are not using Invoices, you can disable them to have EE automatically remove most of the sections they are shown on.

Go to Event Espresso -> Messages -> Settings

Under the HTML tab, move the ‘Invoice’ message type over to the inactive section on the right.

That will disable invoices and automatically remove the button mentioned.

2b/ How can we delete the text and link ‘please make a payment’ on the ‘order confirmation’, because the organizers will send their own emails with instructions on how to pay.

You’ll need to edit the Receipt template:

Event Espresso -> Messages -> Default Message Templates -> Receipt.

In the ‘Main content’ section, scroll down to the payments table and remove the [OWING_STATUS_MESSAGE_*] shortcode, that will remove the link.

3.We don’t want to show taxes at all, not on the transaction receipt, not online.

Have you set your tickets as taxable at all in EE?

To remove the tax section from EE you edit the template (as above) and remove the tax table from the main content section.

4. On ‘registration checkout’ there is a button ‘proceed to finalize registration’. How can we change this text, because the registration is final when the pay with a bank transfer.

We have some documentation on changing that button here:

https://eventespresso.com/wiki/customize-checkout-registration-button-text/

5a/ Is there an easy way to not show the footer and widget with social media in all the template (messages > default or custom template messages)?

Each of the templates will need to be edited and have the sections removed, then save.

Note that each message type can have multiple ‘contexts’ and each context can be edited independently from the others, meaning you’ll need to remove those sections for each context within each message type.

For more details on working with message contexts, see:
https://eventespresso.com/wiki/messages-system-working-with-message-contexts/

5b/ Is there an easy way to include the style from the website in the default or custom template messages, such as font, font size, font color?

There’s a filter available that allows you to add additional styles to the templates if you are comfortable with PHP?

6. How can each event has a proper url. I would like to change ‘https://www/?post_type=espresso_events&p=105&preview=true’ into ‘https://www/titleEvent’

If all of your events show up with the above URL’s then none of them have been published, so will not have a ‘pretty’ URL until they have been published.


efransen

April 16, 2019 at 12:50 pm

Thanks for the clear answers, Tony!

1. I need a little help with the last step of how to get single-espresso_event.php to display a specific sidebar.

5b. Where is the filter available to add additional styles to these templates? Good you give me a link to an example, please?


Tony

  • Support Staff

April 16, 2019 at 3:08 pm

1. I need a little help with the last step of how to get single-espresso_event.php to display a specific sidebar.

Can you send me a copy of your theme so I can take a look over the code?

You’ll need to host the .zip file and post a link to it here, you can set that reply to be private if you prefer.

5b. Where is the filter available to add additional styles to these templates? Good you give me a link to an example, please?

There’s an example of how to replace the default CSS file with your own here:

https://eventespresso.com/topic/ee4-custom-message-template-how-to-link-to-custom-css-file/

Or there are more hooks you can use to add your own CSS, see:

https://eventespresso.com/topic/edit-css-for-messages/


efransen

April 16, 2019 at 4:03 pm

This reply has been marked as private.


Tony

  • Support Staff

April 16, 2019 at 4:21 pm

I assume you are talking about a copy of the single-espresso_events.php?

No, I need the full theme.

The $sidebar variable is used throughout the above but its not decalred anywhere, so I assume its from:

extract(bridge_qode_get_blog_single_params());

So I want to know what bridge_qode_get_blog_single_params is setting up.

I can guess, but better to just check the code.


efransen

April 16, 2019 at 6:01 pm

This reply has been marked as private.


efransen

April 16, 2019 at 6:05 pm

Also, at the bottom of the page on the ‘single espresso event page’ at the ‘Venue’ I would like to put the actual address next to the label ‘Address:’ (inline), and not beneath the label as it is right now. Thanks a million!


Tony

  • Support Staff

April 17, 2019 at 7:49 am

The theme’s sidebar is controlled my meta fields on the post, so ‘sidebar’ is the settings for how a sidebar should display, if at all.

In your single-espresso_events set <?php $sidebar = "1"; ?> anywhere after the first line.

Then, copy the parent themes sidebar.php file into your child theme.

Edit that and where it has:

}else {
	$bridge_qode_sidebar = "Sidebar Page";
}

Change it to be:

}elseif(is_singular('espresso_events')) {
	$bridge_qode_sidebar = "Custom Sidebar";
} else {
	$bridge_qode_sidebar = "Sidebar Page";
}

In your case “Custom Sidebar” will likely need to be ‘Sidebar summer school’ it’s the name of the custom sidebar.

That should force the theme to load that sidebar on all EE events.


efransen

April 18, 2019 at 3:04 am

This reply has been marked as private.


Tony

  • Support Staff

April 18, 2019 at 3:54 am

I did exactly as you instructed, but in the sidebar.php I found this code

}else {
	$sidebar = "Sidebar Page";
}

instead of this

}else {
	$bridge_qode_sidebar = "Sidebar Page";
}

I’m not sure what you are editing above, but as you provided login credentials I had a look at sidebar.php from your bridge parent theme.

This is what loads for me – https://monosnap.com/file/cVWxGTd6Zco8Iltw8JBbnNwPJyPVnJ

I also don’t see any changes made to single-espresso_events.php in the child theme to set $sidebar to equal ‘1’, have you now removed that or are you using meta data on the event to set it?

Also no sidebar.php copy in the child theme?

I changed

}else {
	$sidebar = "Sidebar Page";
}

into

}elseif(is_singular('espresso_events')) {
	$bridge_qode_sidebar = "Sidebar summer school";
} else {
	$bridge_qode_sidebar = "Sidebar Page";
}

That’s the correct code for the file I’ve linked above, but again, I’m not sure why you’re getting different code in sidebar.php than I.

Is it because the events are still in draft-modus?

No.


efransen

April 25, 2019 at 1:04 am

Hi, I did exactly as suggested, but the ‘sidebar.php’ won’t show up in my child’s theme, even though it is visible within Filezilla… Therefore I have contacted the people from the theme itself.

In the meantime I have made custom message templates for email (EE4 > management > messages), but it looks like the system sends the default message templates with the footer (with sociale weblinks which we don’t have). So I would like that the registrant receives ‘registration approved’ and ‘ticket notice’, based on my custom message templates.
Thanks in advanced.


Tony

  • Support Staff

April 25, 2019 at 4:15 am

Hi, I did exactly as suggested, but the ‘sidebar.php’ won’t show up in my child’s theme, even though it is visible within Filezilla… Therefore I have contacted the people from the theme itself.

Ok, but there seems to be more to it than just the sidebar not showing as the code is different, and the changes I recommend to single-espresso_events.php didn’t show when I checked that file.

In the meantime I have made custom message templates for email (EE4 > management > messages)

When you say custom templates, did you create ‘Custom Templates’ within the message system or edit the ‘Default message templates’?

The ‘Default Message templates’ are the templates used on all events by default so f the changes you’ve made are intended to apply to all events by default you would be better editing those templates.

Note that each message type can have multiple ‘contexts’ and each of those contexts can be edited independently for each message type, for more details see:

https://eventespresso.com/wiki/messages-system-working-with-message-contexts/

If you want to use ‘Custom Message Templates’, which are intended to be used for specific events, so you use the default templates for all (you can edit those) and then if you want a ‘custom’ message for a specific event you use one of those, you need to set it them on each individual event.

Edit the event and at the bottom of the editor is a notifications section, there you can select either ‘Global’ (the default message template) or you can select the ‘custom message template’ you created there.


efransen

April 25, 2019 at 4:58 am

The suggestions you made for the single-espresso_events.php I have added, but aren’t showing up. The people behind the template are suggesting it might be a ‘plugin-conflict’… to be continued…
I did overwrite the ‘default message templates’ with the ‘custom message templates’ and that did the trick. Thanks a lot for your help!

The support post ‘sidebar, css and invoice’ 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