Support

Home Forums Event Espresso Premium Remove decimal digits in ticket selector

Remove decimal digits in ticket selector

Posted: February 2, 2017 at 1:48 pm

Viewing 9 reply threads


jfchatelain

February 2, 2017 at 1:48 pm

Hi, how can I remove the decimal digits in the ticket selector. All of my prices have 00 as the decimal and its taking up some space on mobile device.

Thanks for your help.


Josh

  • Support Staff

February 2, 2017 at 2:20 pm

Hi there,

You go to Event Espresso > General Settings > Countries and set Currency Decimal Places to 0, then click “Save Country Details”.


jfchatelain

February 2, 2017 at 2:26 pm

Thanks for the fast reply. I tested that but the problem is that this setting applies to the entire site.

What I’m trying to do is remove the digits from the price of my tickets before getting to the checkout page. But I still want to see those digits when calculating the taxes. I want those zeros to be remove from and only from the ticket selector.

Thanks again


Josh

  • Support Staff

February 2, 2017 at 3:16 pm

Hi there,

That’s not really a feature that exists, but you could set the text size for the price in the ticket selector so it’s smaller so it fits. Can you post a link to the event page so we can take a look?


jfchatelain

February 2, 2017 at 4:03 pm

Here’s the link to our test enviroment: wdos

Thanks


Josh

  • Support Staff

February 2, 2017 at 5:06 pm

OK can you try adding the following to the Additional CSS section of the Customizer?

.tckt-slctr-tbl-td-price .currency-code {
display:inline-block;
}


jfchatelain

February 2, 2017 at 9:04 pm

Thanks,

this is a good try but that does not resolve my problem.

Is there any filter or template i can modify?

Thanks again

JF


Josh

  • Support Staff

February 3, 2017 at 7:56 am

No filter or template in this case, but you can make that price text smaller with some CSS. Do you need help with that?


Josh

  • Support Staff

February 3, 2017 at 9:37 am

For example, this CSS will make the text fit better on smaller screens there:

@media (max-width: 640px) {
 .tkt-slctr-tbl-wrap-dv {
font-size:0.75em;
}
.tckt-slctr-tbl-td-price .currency-code {
display:block !important;
}
}


jfchatelain

February 3, 2017 at 3:37 pm

I think i will go with that option.

Thank you very much for your help

Have a good weekend!

Viewing 9 reply threads

The support post ‘Remove decimal digits in ticket selector’ 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