Remove space after the currency symbol

  • Posts: 66
  • Thank you received: 1
1 year 4 months ago #354198

-- HikaShop version -- : 4.7.5
-- Joomla version -- : 3.10.11
-- PHP version -- : 7.4.33

I have checked the currency settings in my Hikashop and we're getting a space in the cart module after the currency symbol.

This is the HTML in the module:

<div class="jl-text-large currency"><?php echo $this->currencyClass->format(@$this->total->prices[0]->price_value, $this->total->prices[0]->price_currency_id); ?></div>

This is adding a space after the currency symbol. I've checked the settings and all appears to be ok. Any ideas please?

Please Log in or Create an account to join the conversation.

  • Posts: 83007
  • Thank you received: 13400
  • MODERATOR
1 year 4 months ago #354201

Hi,

The URL you provided requires credentials to be able to access it.
Also, you didn't provide a screenshot of the settings of your currency in the System>Currencies menu.
Could you provide both so that we could better understand the situation in order to answer you ?

Please Log in or Create an account to join the conversation.

  • Posts: 66
  • Thank you received: 1
1 year 4 months ago #354218

Sorry, we've removed the security login now.

This is the space where we mean:



As for the currency configuration, please see below

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 83007
  • Thank you received: 13400
  • MODERATOR
1 year 4 months ago #354220

Hi,

You need to turn off the "Symbol and positive value space separation" setting of your currency. This setting being turned on is what is adding the space there.
Similarly, you also want to turn off the "Symbol and negative value space separation" setting for negative amounts display (for discounts for example).

Please Log in or Create an account to join the conversation.

  • Posts: 66
  • Thank you received: 1
1 year 4 months ago #354230

Thank you!

Please Log in or Create an account to join the conversation.

Time to create page: 0.072 seconds
Powered by Kunena Forum