Is it possible to move the currency selector from the top left to above the checkout? I have added flag images however customers are still not finding the currency selector. If it were above the checkout to the right of wishlist or all the way on the right side of the headers it may be more obvious.
Ocart version 2.1.0.1
Ocart version 2.1.0.1
Last edited by 1JoJo2 on Thu Sep 29, 2016 1:09 pm, edited 1 time in total.
You can get this done by editing below file.
/catalog/view/theme/default/template/common/header.php
1. Search for below code and delete it.
<?php echo $currency; ?>
2. Now, search for
<ul class="list-inline">
and add below given code after it.
<div style=" float:left; position: relative;margin: -8px;"><?php echo $currency; ?></div>
Hope it helps
/catalog/view/theme/default/template/common/header.php
1. Search for below code and delete it.
<?php echo $currency; ?>
2. Now, search for
<ul class="list-inline">
and add below given code after it.
<div style=" float:left; position: relative;margin: -8px;"><?php echo $currency; ?></div>
Hope it helps
Regards,
Knowband Team
Opencart Plugins: Knowband Store
Email: support@knowband.com
No, the shared code is correct. We have shared after testing it on fresh OCX 2.1.0.1 installation.
Are you using any other theme, can you check source code (Ctrl+U) of the page to ensure modified code is reflecting.
Are you using any other theme, can you check source code (Ctrl+U) of the page to ensure modified code is reflecting.
Regards,
Knowband Team
Opencart Plugins: Knowband Store
Email: support@knowband.com
I checked the code but it is hard to see if it is 'reflecting' since the file code and page source code look different.
Here is the .tpl file code with your advised code changes:
<div class="container">
<?php echo $language; ?>
<div id="top-links" class="nav pull-right">
<ul class="list-inline"><div style=" float:left; position: relative;margin: -8px;"><?php echo $currency; ?></div>
Here is the page source code of the same area:
<div class="container">
<div class="pull-left">
<form action="https://ssl.e-safenet.com/kangausa/ocar ... y/currency" method="post" enctype="multipart/form-data" id="currency">
<div class="btn-group">
<button class="btn btn-link dropdown-toggle" data-toggle="dropdown">
<img src="image/flags/ca.png" alt="Canada" /><img src="image/flags/us.png" alt="USA" />
<strong>$</strong>
<span class="hidden-xs hidden-sm hidden-md">Currency</span> <i class="fa fa-caret-down"></i></button>
<ul class="dropdown-menu">
<li><button class="currency-select btn btn-link btn-block" type="button" name="CAD">$ Canadian Dollar</button></li>
<li><button class="currency-select btn btn-link btn-block" type="button" name="USD">$ US Dollar</button></li>
</ul>
</div>
Here is the .tpl file code with your advised code changes:
<div class="container">
<?php echo $language; ?>
<div id="top-links" class="nav pull-right">
<ul class="list-inline"><div style=" float:left; position: relative;margin: -8px;"><?php echo $currency; ?></div>
Here is the page source code of the same area:
<div class="container">
<div class="pull-left">
<form action="https://ssl.e-safenet.com/kangausa/ocar ... y/currency" method="post" enctype="multipart/form-data" id="currency">
<div class="btn-group">
<button class="btn btn-link dropdown-toggle" data-toggle="dropdown">
<img src="image/flags/ca.png" alt="Canada" /><img src="image/flags/us.png" alt="USA" />
<strong>$</strong>
<span class="hidden-xs hidden-sm hidden-md">Currency</span> <i class="fa fa-caret-down"></i></button>
<ul class="dropdown-menu">
<li><button class="currency-select btn btn-link btn-block" type="button" name="CAD">$ Canadian Dollar</button></li>
<li><button class="currency-select btn btn-link btn-block" type="button" name="USD">$ US Dollar</button></li>
</ul>
</div>
It seems that either there is some mistake in making the suggested changes or there is some cache management on your store which is preventing code to reflect changes.
Kindly find attached header.tpl file. Make a backup of your existing header.tpl file and then replace with the attached one.
Kindly find attached header.tpl file. Make a backup of your existing header.tpl file and then replace with the attached one.
Attachments
Regards,
Knowband Team
Opencart Plugins: Knowband Store
Email: support@knowband.com
It should have worked as it is working fine for us on fresh OC installation.
Since changes are not reflected even after uploading the file that we have shared with you, it might be an issue of cache.
Since changes are not reflected even after uploading the file that we have shared with you, it might be an issue of cache.
Regards,
Knowband Team
Opencart Plugins: Knowband Store
Email: support@knowband.com
Could you please share your website URL.
Also share a screenshot of the expected result.
Also share a screenshot of the expected result.
Regards,
Knowband Team
Opencart Plugins: Knowband Store
Email: support@knowband.com
Thanks for response.
The development site is http://new.kevinkirby.com
The attached screenshot explains what Iam trying to achive.
thanks
The development site is http://new.kevinkirby.com
The attached screenshot explains what Iam trying to achive.
thanks
Attachments
Screenshot - screen.jpg (278.82 KiB) Viewed 1594 times
Who is online
Users browsing this forum: No registered users and 196 guests