Jump to content

How to hide "Change Currency"?


Recommended Posts

Hello,

in my shop, we will only ever have one currency.
Still, the button to change it is always showing, only without content.

Is there a way to hide it, other than directly changing templates?

It seems to work with languages, if I have only one, the button to change it disappears.

Cheers

Link to comment
Share on other sites

4 minutes ago, bsmither said:

We can edit the template (or is that what you mean by 'change') to remove that area.

In main.php, find and remove:

{include file='templates/box.currency.php'}

 

 

Thank you, I was wondering if there was a way without changing templates?
If I remove this box from main.php (tried that already), it still shows up in the sidebar of small screens.

I can find and remove it there too, but I would much prefer a "clean" way to do it. Just like languages behave automatically if there is only one.

Link to comment
Share on other sites

Posted (edited)

Update:

In box.off_canvas.left.php there is a condition to display languages or not if there is only one.

I put a similiar condition around currencies and it works fine.
I also put the same condition into box.currency.php

I think this should be the default behavior anyway, maybe this was an oversight?

currencies.png.eaeb8642bb0f10cca8919bae424011dc.png

Edited by MostlyConfused
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...