Support

Home Forums Event Espresso Premium Adding Space to EE4 Cart

Adding Space to EE4 Cart

Posted: September 20, 2022 at 4:58 pm


JacqK

September 20, 2022 at 4:58 pm

Hello
We have the latest EE4.

We tend to use long titles for our events and find that when an attendee registers for multiple events, it might be better if there was more space between events as they apear in the cart. I am hoping you can provide some easy css code to create an extra space between events in the cart – I will provide a screen shot
Regards, Joe


JacqK

September 20, 2022 at 5:00 pm

This reply has been marked as private.


JacqK

September 20, 2022 at 5:06 pm

PS: Wondering if another alternative would be code so that the longer titles wrap on to the next line, keeping them away from the numbers and icons on the cart?


Tony

  • Support Staff

September 21, 2022 at 5:29 am

Hi there,

So by default, EE tries to not override theme styles for most of the elements we output. We do this so that our output mostly matches the rest of your site, so when your theme styles tables in a particular way we don’t override those styles which is what is happening here.

The cart output is in a table and for many themes will look something like this:

https://monosnap.com/file/ZkUVbFog1j3idkflF60IFxkJByuYGZ

Which makes it a little clearer which section if for which event, on your site there are no table borders and row heights are reduced to be fairly close which then leads to the above.

You can try adding some additional styles to help with this, for example:

.event-cart-event-row {
    line-height: 1.2em;
    height: 4em;
    width: 50%;
    display: table-cell;
}

Which should set the event title row line height to be bigger and sets the width to be 50% to avoid showing the event title over the other fields.

Add that to Dashboard -> Appearance -> Customize -> Additional CSS.

Does that help?


JacqK

September 21, 2022 at 5:18 pm

This reply has been marked as private.


Tony

  • Support Staff

September 21, 2022 at 5:26 pm

You’re missing the . at the beginning of event-cart-event-row

The . tells CSS you are targeting a ‘class’.

You’ll also see # being used, which tells CSS you are targeting an ID.

Both of those are important in CSS so missing either will prevent it from working 🙂


JacqK

September 21, 2022 at 6:05 pm

Ahh yes, sorry Tony (I need to get some glasses). I have added this and it has worked. Wondering though whether we can add a line space between the subtotal for the last event on the list and the Event Cart Subtotal information just to separate this a bit?


JacqK

September 21, 2022 at 6:05 pm

This reply has been marked as private.


JacqK

September 21, 2022 at 8:54 pm

Hi Tony – I would grateful if you could asl provide the code the implement the same to the checkout apge and also hide the ticket name and description details like we did with the cart. I will provide a screenshot of the checkout as it is now


JacqK

September 21, 2022 at 8:55 pm

This reply has been marked as private.


Tony

  • Support Staff

September 22, 2022 at 2:06 am

Something like this:

.event-cart-total-row-sub-total {
    line-height: 1.2em;
    height: 4em;
}

Will add spacing to the subtotal.

Wrt to the checkout page, is this what you are looking for?

#event-cart-total-row {
    line-height: 1.4em;
    height: 4em;
    width: 50%;
    display: table-cell;
}


JacqK

September 22, 2022 at 2:50 am

Thanks Tony – that does it. Hoping also that you could provide the code to hide the ticket details on the checkout page like we did with the cart.

Regards, Joe


Tony

  • Support Staff

September 22, 2022 at 4:47 am

Sorry, meant to add that into the last reply, I would use something like this:

#spco-payment-info-table .item .item_l:first-of-type {
    visibility: hidden;
}


JacqK

September 23, 2022 at 10:15 pm

Thanks Tony – would be great if you could also let me know the additional code to make the cart table cells borders show (very light border).


Tony

  • Support Staff

September 27, 2022 at 4:06 am

Adding a border to all tables or just the cart table?

All tables:

table, th, td {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

Specifically the cart table:

#event-cart-wrap-dv table,
#event-cart-wrap-dv th,
#event-cart-wrap-dv td {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

If you are adding borders you’ll likely find you’ll need to change the previous CSS I gave you so that the spacing doesn’t alter how the cells look for the event name.


JacqK

September 29, 2022 at 9:54 pm

This reply has been marked as private.


Tony

  • Support Staff

October 3, 2022 at 4:14 pm

Do you mean something like this?

#spco-payment-info-table thead .jst-cntr {
    text-align: right;
}


JacqK

October 3, 2022 at 7:04 pm

That’s great, many thanks


Tony

  • Support Staff

October 4, 2022 at 4:32 am

You’re most welcome 🙂


JacqK

October 11, 2022 at 6:44 pm

This reply has been marked as private.


Tony

  • Support Staff

October 12, 2022 at 7:03 am

Some of the information in the cart is now cut off – see the below screen shot:

https://monosnap.com/file/n1aI4TZufJkSO2mtlGsZ9DPjsbJfQK

I’m not sure why PHP8 would cause that, its from some CSS on the event cart setting a min width and the content having an overflow of hidden.

Adding this should fix it:

#event-cart {
    min-width: initial;
}

We set the ticket to required and using CSS in previous posts, hid this message in the ticket selector, but would also be grateful for CSS that could hide the message in the cart

Sure:

.event-cart-required-items-notice {
    display: none;
}

And hoping to get more space between columns in this checkout page:

Like this?

#spco-payment-info-table {
    width: 100%;
}


JacqK

October 16, 2022 at 5:07 pm

This reply has been marked as private.


JacqK

October 16, 2022 at 6:39 pm

This reply has been marked as private.


Tony

  • Support Staff

October 17, 2022 at 8:50 am

* on the checkout page hide the Reg Code, Reg Status ad Primary Registrant and make the “edit info” and “resend email” bigger – see the below screen shot:

Looks like you’ve already removed those, correct?

For the text paragraph highlighted, you can use:

#espresso-thank-you-page-transaction-details-dv tr:nth-of-type(4) {
    display: none;
}

*hide the explanatory paragraph on the checkout form – see below screen shot:

This looks done already 🙂

* hide the currency on the ticket selector – see the below screen shot (shows in the screen shot as (USD)):

You can remove that with a snippet:

add_filter('FHEE__EEH_Template__format_currency__display_code', '__return_false');

You can add that to a custom functions plugin on your site, we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

Sorry Tony, I forgot to add this one – hoping to also get code so that we can bold the “Use Ateendee #1’s information for ALL Attendees” in the form – see screen shot below:

Sure:

.spco-copy-all-attendee-pg {
    font-weight: 800;
}


JacqK

October 19, 2022 at 12:03 am

This reply has been marked as private.


JacqK

October 19, 2022 at 12:06 am

This reply has been marked as private.


Tony

  • Support Staff

October 19, 2022 at 4:22 am

* On the thank you page after checkout, hoping we can make the “View Invoice” bold and a little larger.


.ee-invoice-lnk {
    font-size: 1.5em;
    font-weight: 700;
}

could it be related to all the Css we have or something else

No. CSS doesn’t slow down a site, at least not with processing requests.

You are waiting for the server to process the request and return a response, generally if that’s slow, its due to the server itself.

we are currently testing EE4 without having migrated the current database we have in EE3, which is quite large

It should do BUT… the question I would ask here is do you NEED all of that data within EE4?

The reason I ask is what we some users do is basically archive EE3 to keep their historical data and move forward with a fresh version of EE4.


JacqK

October 25, 2022 at 11:29 pm

This reply has been marked as private.


Tony

  • Support Staff

October 27, 2022 at 7:06 am

Hi Joe,

Can you link me to an event I can view this on, I’ll see what I can do.

It’s a little more tricky to do this one is separate table rows, can be done with margins but then may be a little more ‘brittle’ on other devices, but we’ll see.


JacqK

October 27, 2022 at 2:07 pm

This reply has been marked as private.


Tony

  • Support Staff

November 2, 2022 at 10:02 am

I think its time for a change of angle here, hacking up the table with CSS to move stuff around will eng up fragile.

So rather than do that, remove the CSS you are using to hide the ticket description, hide the event row and replace the ticket description with the event name:

CSS using something like:

#event-cart-total-row {
    display:none;
}

Then add a snippet like this:

https://gist.github.com/Pebblo/ed134f805973770e53b7506d50664b0a

You can add that to a custom functions plugin on your site, we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

To output something like this: https://monosnap.com/file/p1M8w4VAABmqaFHdA8Vbhh0ZY9hIuX

(That screenshot is taken from one of my test sites, but you should get a similar output)


JacqK

November 7, 2022 at 1:32 am

This reply has been marked as private.


JacqK

November 13, 2022 at 10:23 pm

Hello

We are hoping you can provide css to hide the “Price includes taxes” as it appears in the ticket selector and registration form. I will provide screen shot below

Regards
Joe


JacqK

November 13, 2022 at 10:37 pm

This reply has been marked as private.


Tony

  • Support Staff

November 14, 2022 at 4:50 am

Hi there,

My apologies, I missed your reply in your asking for this and have merged your threads together.

To hide that section in the ticket selector you can use:

.tkt-slctr-tbl-wrap-dv > p {
    display: none;
}

Hiding that section in the registration form isn’t as easy as we don’t have an selector specific for that text.

Will changing it to ‘GST’ still work?


Tony

  • Support Staff

November 14, 2022 at 5:07 am

In fact, you can use almost the same snippet to change the text to use GST or remove it:

https://gist.github.com/Pebblo/4346f1439ca349dea46c9638bcda5ef1

That snippet will change the text to “* price includes GST”, or you can change Line 8 to be:

'* price includes taxes' => '',

Which will remove the text from the output.

The support post ‘Adding Space to EE4 Cart’ 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