I've disabled and uninstalled the currency under Extensions > Modules in OC 1.4 and currency is still showing up at the top. I want to remove both currency and language options altogether from the store end. I've tried searching the forums using "remove+currency" and I'm not finding how to do this other than to disable it in the admin area, which isn't working.
Anyone able to tell me what files to change and what coding needs to be changed? I can modify files if I need to, I just need to know which ones and what to change.
Anyone able to tell me what files to change and what coding needs to be changed? I can modify files if I need to, I just need to know which ones and what to change.
Currency doesn't have a module in 1.4.0. It was merged into the header. The remaining currency module was from your previous version before you upgraded. It is not supported so it should be uninstalled and the files deleted.goddessdeath wrote:I've disabled and uninstalled the currency under Extensions > Modules in OC 1.4 and currency is still showing up at the top. I want to remove both currency and language options altogether from the store end. I've tried searching the forums using "remove+currency" and I'm not finding how to do this other than to disable it in the admin area, which isn't working.
Anyone able to tell me what files to change and what coding needs to be changed? I can modify files if I need to, I just need to know which ones and what to change.
To disable the currency selector, you will need to remove it from the header.tpl file
I wanted to do the same thing and found it in the header.tplgoddessdeath wrote:I've disabled and uninstalled the currency under Extensions > Modules in OC 1.4 and currency is still showing up at the top. I want to remove both currency and language options altogether from the store end. I've tried searching the forums using "remove+currency" and I'm not finding how to do this other than to disable it in the admin area, which isn't working.
Anyone able to tell me what files to change and what coding needs to be changed? I can modify files if I need to, I just need to know which ones and what to change.
I deleted lines 76-111 (Remember to backup your file first and this assumed an unmodified header.tpl)
There's no need to delete the language and currency in the admin, and I'm not sure you would want to as they get tied to orders but i could be wrong about that.
Okay, so just to make sure I'm removing the right thing, I just take this out:
of the header.tpl file in admin\view\template\common. Right?
I just don't want to mess something up totally.
Thanks!
Code: Select all
<li><a href="<?php echo $language; ?>"><?php echo $text_language; ?></a></li>
<li><a href="<?php echo $currency; ?>"><?php echo $text_currency; ?></a></li>
I just don't want to mess something up totally.
Thanks!
no.. line 76 through line 111. If you aren't using it, get Notepad++, then you can see the line numbers.goddessdeath wrote:Okay, so just to make sure I'm removing the right thing, I just take this out:
of the header.tpl file in admin\view\template\common. Right?Code: Select all
<li><a href="<?php echo $language; ?>"><?php echo $text_language; ?></a></li> <li><a href="<?php echo $currency; ?>"><?php echo $text_currency; ?></a></li>
I just don't want to mess something up totally.
Thanks!
and make a backup copy of your file so if you make a mistake you can put the good one back.
Code: Select all
<?php if ($currencies) { ?>
<form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="currency_form">
<div class="switcher">
<?php foreach ($currencies as $currency) { ?>
<?php if ($currency['code'] == $currency_code) { ?>
<div class="selected"><a><?php echo $currency['title']; ?></a></div>
<?php } ?>
<?php } ?>
<div class="option">
<?php foreach ($currencies as $currency) { ?>
<a onclick="$('input[name=\'currency_code\']').attr('value', '<?php echo $currency['code']; ?>'); $('#currency_form').submit();"><?php echo $currency['title']; ?></a>
<?php } ?>
</div>
</div>
<input type="hidden" name="currency_code" value="" />
<input type="hidden" name="redirect" value="<?php echo $redirect; ?>" />
</form>
<?php } ?>
<?php if ($languages) { ?>
<form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="language_form">
<div class="switcher">
<?php foreach ($languages as $language) { ?>
<?php if ($language['code'] == $language_code) { ?>
<div class="selected"><a><img src="image/flags/<?php echo $language['image']; ?>" alt="<?php echo $language['name']; ?>" /> <?php echo $language['name']; ?></a></div>
<?php } ?>
<?php } ?>
<div class="option">
<?php foreach ($languages as $language) { ?>
<a onclick="$('input[name=\'language_code\']').attr('value', '<?php echo $language['code']; ?>'); $('#language_form').submit();"><img src="image/flags/<?php echo $language['image']; ?>" alt="<?php echo $language['name']; ?>" /> <?php echo $language['name']; ?></a>
<?php } ?>
</div>
</div>
<input type="hidden" name="language_code" value="" />
<input type="hidden" name="redirect" value="<?php echo $redirect; ?>" />
</form>
<?php } ?>
which header file is this, i can't find that code you refer to? sorry, only got opencart this week, so much to learn!Artlife wrote: I wanted to do the same thing and found it in the header.tpl
I deleted lines 76-111 (Remember to backup your file first and this assumed an unmodified header.tpl)
There's no need to delete the language and currency in the admin, and I'm not sure you would want to as they get tied to orders but i could be wrong about that.
Hello, I was trying to remove the code from the display also.
rather then removing the code I modified the CSS for
By adding the display: none; the user doesn't have the option. This solved it for me.
rather then removing the code I modified the CSS for
Code: Select all
#currency {
width: 75px;
position: absolute;
top: 15px;
left: 425px;
color: #999;
line-height: 17px;
display:none;
}
hide or remove manually
go into this directory in your open cart
public_html/catalog/view/theme/yourtheme/template/common/header.tpl
find the code bellow and remove or comment
All done
<div class="pull-right language-currency ">
<span class="currency ">
<?php echo $currency; ?>
</span>
<span class="language">
<?php echo $language; ?>
</span>
</div>
Comment if you need more help
go into this directory in your open cart
public_html/catalog/view/theme/yourtheme/template/common/header.tpl
find the code bellow and remove or comment
All done
<div class="pull-right language-currency ">
<span class="currency ">
<?php echo $currency; ?>
</span>
<span class="language">
<?php echo $language; ?>
</span>
</div>
Comment if you need more help
This solution worked for me without having to change the code and seems a more elegant solution in case one were to decide to use this feature later.
v. 3.0.3.2
Thanks!
Who is online
Users browsing this forum: Bing [Bot], Majestic-12 [Bot] and 146 guests