Move the cart and search from menu to head slider

I want the cart and search to be moved to the head slider. I already removed the “Settings” from FRONTEND/DEFAULT/JM_CASUAL/TEMPLATE/PAGE/HTML/JMTOOLBAR.PHTML
When I copy the code that calls the cart and the search icons located in the MegaMenu frontend/default/jm_casual/template/page/html/header.phtml to the jmtoolbar.phtml neither will show up.
Also -- when anything has an “inner-toggle” it is quite annoying when scrolling your mouse down. Unless you scroll straight down and then over the box will close all by itself. The problem is that if you move your mouse at an angle it is no longer “on-hover” and closes

7 answers

Profile photo of Ziven Staff 92660.00 $tone January 7, 2015
Public

Hi Bagged,
You are missing move in XML.
Please try go to the file: \app\design\frontend\default\jm_casual\layout\page.xml at line 81,82 and move to code to line 95, 96

<block type="page/switch" name="store_language" as="store_language" template="page/switch/languages.phtml"/>
<block type="directory/currency" name="custom_currency_selector" template="currency/currency.phtml"/>

Hope it will help you.
 
Best Regards,
Ziven.

#1
Profile photo of baggednismo86 220.00 $tone January 7, 2015
Public

I removed the “settings” entirely from the head slider which includes languages and currency. none of this is needed.
 
I wont to move the cart and search to the head slider in place of settings

#2
Profile photo of vanderex 500.00 $tone April 1, 2015
Public

 frontend/default/jm_casual/template/checkout/cart/sidebar2.phtml                
 
mod to <div class=”block block-cart” >
<div class=”block-title”>
<p class=”block-close” id=”block-close” name=”block-close”>X</p>
<strong><span><?php echo $this->__(‘My Cart’) ?>
</span></strong>
</div>
 
 frontend/default/jm_casual/template/page/html/header.phtml        
add 

$(“#block-close”).click(function() {
$(“#jm-mycart”).children().removeClass(“active”);
$(“#jmoverlay”).remove();
$(this).children().removeClass(“active”);
$(this).removeClass(“active”);
$(“#jmoverlay”).remove();
});
 
/opt/bitnami/apps/magento/htdocs/skin/frontend/default/jm_casual/css/styles.css 
 
#jm-mycart .block-close {
float: right;
}

#6
Profile photo of vanderex 500.00 $tone April 1, 2015
Public

and comment the part where removeclass just a bit on top of the one you added , well you also need to mod it a bit else nothing will close 😉 easy as pie
 
pm me if need help

#7

This question is now closed

Written By

Comments