simple AJAX live search is working on the default one but when I change to the Cleaner by Default theme
is not longer working even know I follow the path like
If you have a different template then the standard one, copy the CSS File in the folder
/catalog/view/theme/default/stylesheet/
to your theme path like
/catalog/view/theme/Cleaner by Default/stylesheet/
Open:
catalog/view/theme/Cleaner by Default/template/common/footer.tpl
Find:
</body>
Add before:
<script type="text/javascript" src="catalog/view/javascript/livesearch.js"></script>
Open:
catalog/view/theme/Cleaner by Default/template/common/header.tpl
<link rel="stylesheet" type="text/css" href="catalog/view/theme/Cleaner by Default/stylesheet/livesearch.css" />
and change all the links is not working
it works just fine on the default one
can any one help me to check what I am not doing right?
can any one help me
Thanks to all the experts who take the time to read this post
God Bless you all.
nice work Opencart team
In the header.tpl file try changing <div id="cmsearch"> to <div id="search">
and in the stylesheet change #cmsearch to #search
That might work
http://scarletandjones.com/
http://sharpdressedman.co.uk/
http://coffincompany.co.uk/
http://horsesculptures.co.uk/
If I've helped you out, why not buy me a beer? http://craigmurray.me.uk
I tried the above fix on your cleaner-2-col-left template and it fixed the problem of not being able to use the Enter key after typing in a search. Unfortunately, it moved the search box to the left of the header and lost the colored box formatting.
I'd like to get the use on the Enter key back when doing searches. Any ideas?
Marc
OpenCart v1.4.9.4
VQMod | Categories Home | Cleaner By Default - 2 Column | Speak Good English
you need to change this too.
Code: Select all
<script type="text/javascript"><!--
$('#search input').keydown(function(e) {
if (e.keyCode == 13) {
moduleSearch();
}
});
930sc ... because it is fun!
You need to change all the references to #cmsearch in the stylesheet - there's 5 or 6.
That will put the search box back and add the colour.
http://scarletandjones.com/
http://sharpdressedman.co.uk/
http://coffincompany.co.uk/
http://horsesculptures.co.uk/
If I've helped you out, why not buy me a beer? http://craigmurray.me.uk
I realise now I should have left that alone. You live and learn!
http://scarletandjones.com/
http://sharpdressedman.co.uk/
http://coffincompany.co.uk/
http://horsesculptures.co.uk/
If I've helped you out, why not buy me a beer? http://craigmurray.me.uk
I see what I did wrong. I did a search and replace using Komodo and it also renamed the cmsearchbutton, which shouldn't have been done. I got my enter button back!!!Chones wrote:You need to change all the references to #cmsearch in the stylesheet - there's 5 or 6.
Thanks,
Marc
OpenCart v1.4.9.4
VQMod | Categories Home | Cleaner By Default - 2 Column | Speak Good English
http://scarletandjones.com/
http://sharpdressedman.co.uk/
http://coffincompany.co.uk/
http://horsesculptures.co.uk/
If I've helped you out, why not buy me a beer? http://craigmurray.me.uk
Just one thing - I added a print banner to make printouts look a bit better. I just noticed you haven't changed it. In the template image file just replace print-banner.jpg with your own banner.
http://scarletandjones.com/
http://sharpdressedman.co.uk/
http://coffincompany.co.uk/
http://horsesculptures.co.uk/
If I've helped you out, why not buy me a beer? http://craigmurray.me.uk
Users browsing this forum: No registered users and 65 guests