[CUSTOM] Add Search align with Cart
Ecommerce design Joomla template to start your online business with VirtueMart and additional eshop features.
- GK User
- Mon Dec 20, 2010 1:37 am
Hi
We were request if was possible to place the search module on top position, where's the cart.
If someone wants to have this on his template, please follow this instructions:
1) We need to create a new module position. So open templateDetails.xml file and add (let's call it) "top_search" module position. Like this:
2) Next we need to place this position on frontend. Open ../gk_yourshop/layouts/blocks/top.php file and find this line:
replace with this code:
3) Set style on top_search div. Open gk_stuff.css file and add this code:
4) Go to module manager and publish mod_search on "top_search" module position. Assign to all menus.
That's it.
The result should be like this:
Enjoy
We were request if was possible to place the search module on top position, where's the cart.
If someone wants to have this on his template, please follow this instructions:
1) We need to create a new module position. So open templateDetails.xml file and add (let's call it) "top_search" module position. Like this:
- Code: Select all
<position>top_search</position>
2) Next we need to place this position on frontend. Open ../gk_yourshop/layouts/blocks/top.php file and find this line:
- Code: Select all
<?php if($this->countModules('cart')) : ?>
replace with this code:
- Code: Select all
<?php if($this->countModules('top_search')) : ?>
<div id="top_search">
<jdoc:include type="modules" name="top_search" style="none" />
</div>
<?php endif; ?>
<?php if($this->countModules('cart')) : ?>
3) Set style on top_search div. Open gk_stuff.css file and add this code:
- Code: Select all
#top_search {width: 220px;display:inline-block;float:right;margin: 37px 0 0 20px}
4) Go to module manager and publish mod_search on "top_search" module position. Assign to all menus.
That's it.
The result should be like this:
top_search.png
Enjoy
-
- Platinum Boarder
- GK User
- Tue Dec 21, 2010 7:38 am
bea-utiful !!
-
- Platinum Boarder
- GK User
- Tue Dec 28, 2010 8:08 am
Thanx!
-
- Fresh Boarder
- GK User
- Wed Jan 05, 2011 7:49 pm
Great modifikation. Thanks for that.
Unfortunately the search button behind the search field is missing:
http://www.stilpunkt-lifestyle.de/
Thanks for your help.
Unfortunately the search button behind the search field is missing:
http://www.stilpunkt-lifestyle.de/
Thanks for your help.
-
- Junior Boarder
- GK User
- Wed Jan 05, 2011 11:36 pm
stilpunkt wrote:Great modifikation. Thanks for that.
Unfortunately the search button behind the search field is missing:
http://www.stilpunkt-lifestyle.de/
Thanks for your help.
Did you enable the button on the module parameters?
Cheers
-
- Platinum Boarder
- GK User
- Fri Jan 07, 2011 2:58 pm
Great, easy, quick and neat.
Thanks again.
-
- Senior Boarder
- GK User
- Fri Jan 07, 2011 5:28 pm
Seichinha wrote:stilpunkt wrote:Great modifikation. Thanks for that.
Unfortunately the search button behind the search field is missing:
http://www.stilpunkt-lifestyle.de/
Thanks for your help.
Did you enable the button on the module parameters?
Cheers
Thanks
-
- Junior Boarder
- GK User
- Wed Jan 19, 2011 5:58 pm
Love the new forum style!
One quick question, is it possible to use this technique to move the "log-in"/"my account" virtuemart_mod_login to the same place, and use the same slick style as when clicking on "0 items" in the cart? Seems annoying that the log-in is inside the template...if I don't have slideshow on every page, the log-in box takes the whole width of the screen? How are other people using the mod_login? Any thoughts warmly welcome...Thanks
One quick question, is it possible to use this technique to move the "log-in"/"my account" virtuemart_mod_login to the same place, and use the same slick style as when clicking on "0 items" in the cart? Seems annoying that the log-in is inside the template...if I don't have slideshow on every page, the log-in box takes the whole width of the screen? How are other people using the mod_login? Any thoughts warmly welcome...Thanks
-
- Junior Boarder
- GK User
- Wed Jan 19, 2011 6:17 pm
it is posible, but will need more than just move it to get same style...
beyond our support
beyond our support
-
- Platinum Boarder
- GK User
- Fri Jun 24, 2011 1:24 am
fewleh wrote:Love the new forum style!
One quick question, is it possible to use this technique to move the "log-in"/"my account" virtuemart_mod_login to the same place, and use the same slick style as when clicking on "0 items" in the cart? Seems annoying that the log-in is inside the template...if I don't have slideshow on every page, the log-in box takes the whole width of the screen? How are other people using the mod_login? Any thoughts warmly welcome...Thanks
i join fewleh request. I love myStore login/register style. it's neat, small and elegant. would be a great feature to have that style in yourstore
-
- Junior Boarder
- GK User
- Sat Feb 18, 2012 3:36 pm
how to do that is compatible with joomla 1.7 template
thank you
thank you
-
- Fresh Boarder
- GK User
- Mon Feb 27, 2012 11:57 am
Hello,
But this does not work for joomla 2.5! How this can be solved in this version?
But this does not work for joomla 2.5! How this can be solved in this version?
-
- Fresh Boarder
- GK User
- Tue Mar 20, 2012 12:59 am
I would like to do this for 2.5 as well. I found the cart in the logo.php but I am not quite sure how to setup the search position to the file?
-
- Expert Boarder
- GK User
- Fri Apr 20, 2012 3:07 am
With a few modifications I was able to make this work with Joomla 2.5 and VM2. The only change from the mods instructions is to find and open logo.php instead of top.php.
Locate this block of code:
and just above it place this block of code:
All the other directions are the same and you should have success.
Locate this block of code:
- Code: Select all
<?php if($this->modules('cart')): ?>
<div id="gkCartBtn">
<h2><?php echo JText::_('TPL_GK_LANG_CART'); ?></h2>
<div id="gkItems">
[ <strong>0</strong> ] <?php echo JText::_('TPL_GK_LANG_ITEMS'); ?>
</div>
and just above it place this block of code:
- Code: Select all
<?php if($this->modules('top_search')) : ?>
<div id="top_search">
<jdoc:include type="modules" name="top_search" style="none" />
</div>
<?php endif; ?>
All the other directions are the same and you should have success.
-
- Expert Boarder
- GK User
- Mon Sep 17, 2012 11:05 am
I created this module position, but I want to go further and create another module position on the left side to display custom content, but when I create it,,it displays the shopping cart module,,how can I get rid of this cart module display?
Thanks
Thanks
-
- Senior Boarder
- GK User
- Mon Sep 17, 2012 11:29 am
maniiac1 wrote:...but when I create it,,it displays the shopping cart module,,how can I get rid of this cart module display?
Thanks
Hi
Go to modules manager and disable "VM - Shopping cart" module on "cart" position.
Cheers
-
- Platinum Boarder
16 posts
• Page 1 of 1