Move Cart to Header In Magento 1.8.1How to add a Cart Icon to header?How to create Mouseover Shopping Cart Icon in right header?How to use Jquery - (Where does this code go?)Move Cart to Header in Magento 1.7How to change Cart to only show #of Products & Price?Need to edit “Continue Shopping” button to include page refreshMove Add To Cart button to right sidebarHow to add a Cart Icon to header?Share the shopping cart content between Magento multi-store websitesMagento How to include shopping cart block like this (picture)How to Limit Total Number of Items in CartHow to create Mouseover Shopping Cart Icon in right header?How to use Jquery - (Where does this code go?)How can i give condition Shopping Cart Price Rules like if selected attribute products present in the cart, no other products allowed to add cartMagento 2 :Header section modifications
Why do games have consumables?
"Whatever a Russian does, they end up making the Kalashnikov gun"? Are there any similar proverbs in English?
Is there a word for the censored part of a video?
Philosophical question on logistic regression: why isn't the optimal threshold value trained?
Is there any pythonic way to find average of specific tuple elements in array?
"The cow" OR "a cow" OR "cows" in this context
Will I lose my paid in full property
Multiple options vs single option UI
Was Dennis Ritchie being too modest in this quote about C and Pascal?
How long after the last departure shall the airport stay open for an emergency return?
Does a large simulator bay have standard public address announcements?
How important is it that $TERM is correct?
Should the Product Owner dictate what info the UI needs to display?
What *exactly* is electrical current, voltage, and resistance?
How do I check if a string is entirely made of the same substring?
How do I reattach a shelf to the wall when it ripped out of the wall?
How can I practically buy stocks?
Extracting Dirichlet series coefficients
Suing a Police Officer Instead of the Police Department
Unknown code in script
Island of Knights, Knaves and Spies
A Note on N!
Can a stored procedure reference the database in which it is stored?
Which big number is bigger?
Move Cart to Header In Magento 1.8.1
How to add a Cart Icon to header?How to create Mouseover Shopping Cart Icon in right header?How to use Jquery - (Where does this code go?)Move Cart to Header in Magento 1.7How to change Cart to only show #of Products & Price?Need to edit “Continue Shopping” button to include page refreshMove Add To Cart button to right sidebarHow to add a Cart Icon to header?Share the shopping cart content between Magento multi-store websitesMagento How to include shopping cart block like this (picture)How to Limit Total Number of Items in CartHow to create Mouseover Shopping Cart Icon in right header?How to use Jquery - (Where does this code go?)How can i give condition Shopping Cart Price Rules like if selected attribute products present in the cart, no other products allowed to add cartMagento 2 :Header section modifications
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
TOPIC:
Looking to move Shopping Cart to Header-Right in Magento 1.8.1
ATTEMPTS + OTHER POSTS:
How to add a Cart Icon to header?
Move Cart to Header in Magento 1.7
Any contribution is greatly appreciated.
Shopping Cart Icon & # Of Products In Cart - DISPLAYED AT RIGHT-HEADER is the end goal.
cart shopping-cart header
add a comment |
TOPIC:
Looking to move Shopping Cart to Header-Right in Magento 1.8.1
ATTEMPTS + OTHER POSTS:
How to add a Cart Icon to header?
Move Cart to Header in Magento 1.7
Any contribution is greatly appreciated.
Shopping Cart Icon & # Of Products In Cart - DISPLAYED AT RIGHT-HEADER is the end goal.
cart shopping-cart header
add a comment |
TOPIC:
Looking to move Shopping Cart to Header-Right in Magento 1.8.1
ATTEMPTS + OTHER POSTS:
How to add a Cart Icon to header?
Move Cart to Header in Magento 1.7
Any contribution is greatly appreciated.
Shopping Cart Icon & # Of Products In Cart - DISPLAYED AT RIGHT-HEADER is the end goal.
cart shopping-cart header
TOPIC:
Looking to move Shopping Cart to Header-Right in Magento 1.8.1
ATTEMPTS + OTHER POSTS:
How to add a Cart Icon to header?
Move Cart to Header in Magento 1.7
Any contribution is greatly appreciated.
Shopping Cart Icon & # Of Products In Cart - DISPLAYED AT RIGHT-HEADER is the end goal.
cart shopping-cart header
cart shopping-cart header
edited Apr 22 at 20:10
Lykingond
asked Oct 16 '14 at 20:54
LykingondLykingond
1091415
1091415
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
- in yourTheme/layout/local.xml
<layout>
<default>
<!-- Unset cart from sidebar -->
<reference name="right"><action method="unsetChild"><name>cart_sidebar</name></action></reference>
<!-- Insert cart in header -->
<reference name="header"><action method="insert"><blockName>cart_sidebar</blockName></action></reference>
</default>
</layout>
- in yourTheme/template/page/html/header.phtml:
// This is required to show the cart
<?php echo $this->getChildHtml('cart_sidebar'); ?>
Normaly the cart should appear in the header.
Edit yourTheme/template/checkout/cart/sidebar.phtml to give the look you want.
Hi, thank you for the post. I did not find local.xml in the Layout folder. I found a local.xml in /app/etc folder? Should I create a new local.xml in the /Layout folder or edit the one in /etc folder?
– Lykingond
Oct 17 '14 at 11:42
Create app/design/frontend/yourPackage(default?)/yourTheme/layout/local.xml. Then do every layout modifications in local.xml. This way you'll keep your customizations in case of Magento Update
– Lanks
Oct 17 '14 at 11:45
I updated my answer concerning the local.xml file. Please try again
– Lanks
Oct 17 '14 at 12:21
I changed the code to the updated one, no change :/, and flushed cache etc.
– Lykingond
Oct 17 '14 at 12:57
Please give me the exact path of your local.xml. Also did you well configurated your Magento Theme in System > Configuration > Design Tab > Package & Theme ? Maybe this link can help : magentocommerce.com/design_guide/articles/…
– Lanks
Oct 17 '14 at 13:02
|
show 19 more comments
In Local.xml add this :
<reference name="header">
<!-- add cart to header -->
<block type="checkout/cart_sidebar" name="header-cart" template="checkout/cart/header-cart.phtml">
<action method="addItemRender"><type>simple</type>
<block>checkout/cart_item_renderer</block><template>checkout/cart/sidebar/default.phtml</template></action>
<action method="addItemRender"><type>grouped</type>
<block>checkout/cart_item_renderer_grouped</block><template>checkout/cart/sidebar/default.phtml</template></action>
<action method="addItemRender"><type>configurable</type>
<block>checkout/cart_item_renderer_configurable</block><template>checkout/cart/sidebar/default.phtml</template></action>
<block type="core/text_list" name="cart_sidebar.extra_actions" as="extra_actions" translate="label" module="checkout">
<label>Shopping Cart Sidebar Extra Actions</label>
</block>
</block>
</reference>
In header.phtml add this :
<?php echo $this->getChildHtml('header-cart'); ?>
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f40430%2fmove-cart-to-header-in-magento-1-8-1%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
- in yourTheme/layout/local.xml
<layout>
<default>
<!-- Unset cart from sidebar -->
<reference name="right"><action method="unsetChild"><name>cart_sidebar</name></action></reference>
<!-- Insert cart in header -->
<reference name="header"><action method="insert"><blockName>cart_sidebar</blockName></action></reference>
</default>
</layout>
- in yourTheme/template/page/html/header.phtml:
// This is required to show the cart
<?php echo $this->getChildHtml('cart_sidebar'); ?>
Normaly the cart should appear in the header.
Edit yourTheme/template/checkout/cart/sidebar.phtml to give the look you want.
Hi, thank you for the post. I did not find local.xml in the Layout folder. I found a local.xml in /app/etc folder? Should I create a new local.xml in the /Layout folder or edit the one in /etc folder?
– Lykingond
Oct 17 '14 at 11:42
Create app/design/frontend/yourPackage(default?)/yourTheme/layout/local.xml. Then do every layout modifications in local.xml. This way you'll keep your customizations in case of Magento Update
– Lanks
Oct 17 '14 at 11:45
I updated my answer concerning the local.xml file. Please try again
– Lanks
Oct 17 '14 at 12:21
I changed the code to the updated one, no change :/, and flushed cache etc.
– Lykingond
Oct 17 '14 at 12:57
Please give me the exact path of your local.xml. Also did you well configurated your Magento Theme in System > Configuration > Design Tab > Package & Theme ? Maybe this link can help : magentocommerce.com/design_guide/articles/…
– Lanks
Oct 17 '14 at 13:02
|
show 19 more comments
- in yourTheme/layout/local.xml
<layout>
<default>
<!-- Unset cart from sidebar -->
<reference name="right"><action method="unsetChild"><name>cart_sidebar</name></action></reference>
<!-- Insert cart in header -->
<reference name="header"><action method="insert"><blockName>cart_sidebar</blockName></action></reference>
</default>
</layout>
- in yourTheme/template/page/html/header.phtml:
// This is required to show the cart
<?php echo $this->getChildHtml('cart_sidebar'); ?>
Normaly the cart should appear in the header.
Edit yourTheme/template/checkout/cart/sidebar.phtml to give the look you want.
Hi, thank you for the post. I did not find local.xml in the Layout folder. I found a local.xml in /app/etc folder? Should I create a new local.xml in the /Layout folder or edit the one in /etc folder?
– Lykingond
Oct 17 '14 at 11:42
Create app/design/frontend/yourPackage(default?)/yourTheme/layout/local.xml. Then do every layout modifications in local.xml. This way you'll keep your customizations in case of Magento Update
– Lanks
Oct 17 '14 at 11:45
I updated my answer concerning the local.xml file. Please try again
– Lanks
Oct 17 '14 at 12:21
I changed the code to the updated one, no change :/, and flushed cache etc.
– Lykingond
Oct 17 '14 at 12:57
Please give me the exact path of your local.xml. Also did you well configurated your Magento Theme in System > Configuration > Design Tab > Package & Theme ? Maybe this link can help : magentocommerce.com/design_guide/articles/…
– Lanks
Oct 17 '14 at 13:02
|
show 19 more comments
- in yourTheme/layout/local.xml
<layout>
<default>
<!-- Unset cart from sidebar -->
<reference name="right"><action method="unsetChild"><name>cart_sidebar</name></action></reference>
<!-- Insert cart in header -->
<reference name="header"><action method="insert"><blockName>cart_sidebar</blockName></action></reference>
</default>
</layout>
- in yourTheme/template/page/html/header.phtml:
// This is required to show the cart
<?php echo $this->getChildHtml('cart_sidebar'); ?>
Normaly the cart should appear in the header.
Edit yourTheme/template/checkout/cart/sidebar.phtml to give the look you want.
- in yourTheme/layout/local.xml
<layout>
<default>
<!-- Unset cart from sidebar -->
<reference name="right"><action method="unsetChild"><name>cart_sidebar</name></action></reference>
<!-- Insert cart in header -->
<reference name="header"><action method="insert"><blockName>cart_sidebar</blockName></action></reference>
</default>
</layout>
- in yourTheme/template/page/html/header.phtml:
// This is required to show the cart
<?php echo $this->getChildHtml('cart_sidebar'); ?>
Normaly the cart should appear in the header.
Edit yourTheme/template/checkout/cart/sidebar.phtml to give the look you want.
edited Apr 22 at 20:18
magefms
2,8242529
2,8242529
answered Oct 16 '14 at 22:33
LanksLanks
419417
419417
Hi, thank you for the post. I did not find local.xml in the Layout folder. I found a local.xml in /app/etc folder? Should I create a new local.xml in the /Layout folder or edit the one in /etc folder?
– Lykingond
Oct 17 '14 at 11:42
Create app/design/frontend/yourPackage(default?)/yourTheme/layout/local.xml. Then do every layout modifications in local.xml. This way you'll keep your customizations in case of Magento Update
– Lanks
Oct 17 '14 at 11:45
I updated my answer concerning the local.xml file. Please try again
– Lanks
Oct 17 '14 at 12:21
I changed the code to the updated one, no change :/, and flushed cache etc.
– Lykingond
Oct 17 '14 at 12:57
Please give me the exact path of your local.xml. Also did you well configurated your Magento Theme in System > Configuration > Design Tab > Package & Theme ? Maybe this link can help : magentocommerce.com/design_guide/articles/…
– Lanks
Oct 17 '14 at 13:02
|
show 19 more comments
Hi, thank you for the post. I did not find local.xml in the Layout folder. I found a local.xml in /app/etc folder? Should I create a new local.xml in the /Layout folder or edit the one in /etc folder?
– Lykingond
Oct 17 '14 at 11:42
Create app/design/frontend/yourPackage(default?)/yourTheme/layout/local.xml. Then do every layout modifications in local.xml. This way you'll keep your customizations in case of Magento Update
– Lanks
Oct 17 '14 at 11:45
I updated my answer concerning the local.xml file. Please try again
– Lanks
Oct 17 '14 at 12:21
I changed the code to the updated one, no change :/, and flushed cache etc.
– Lykingond
Oct 17 '14 at 12:57
Please give me the exact path of your local.xml. Also did you well configurated your Magento Theme in System > Configuration > Design Tab > Package & Theme ? Maybe this link can help : magentocommerce.com/design_guide/articles/…
– Lanks
Oct 17 '14 at 13:02
Hi, thank you for the post. I did not find local.xml in the Layout folder. I found a local.xml in /app/etc folder? Should I create a new local.xml in the /Layout folder or edit the one in /etc folder?
– Lykingond
Oct 17 '14 at 11:42
Hi, thank you for the post. I did not find local.xml in the Layout folder. I found a local.xml in /app/etc folder? Should I create a new local.xml in the /Layout folder or edit the one in /etc folder?
– Lykingond
Oct 17 '14 at 11:42
Create app/design/frontend/yourPackage(default?)/yourTheme/layout/local.xml. Then do every layout modifications in local.xml. This way you'll keep your customizations in case of Magento Update
– Lanks
Oct 17 '14 at 11:45
Create app/design/frontend/yourPackage(default?)/yourTheme/layout/local.xml. Then do every layout modifications in local.xml. This way you'll keep your customizations in case of Magento Update
– Lanks
Oct 17 '14 at 11:45
I updated my answer concerning the local.xml file. Please try again
– Lanks
Oct 17 '14 at 12:21
I updated my answer concerning the local.xml file. Please try again
– Lanks
Oct 17 '14 at 12:21
I changed the code to the updated one, no change :/, and flushed cache etc.
– Lykingond
Oct 17 '14 at 12:57
I changed the code to the updated one, no change :/, and flushed cache etc.
– Lykingond
Oct 17 '14 at 12:57
Please give me the exact path of your local.xml. Also did you well configurated your Magento Theme in System > Configuration > Design Tab > Package & Theme ? Maybe this link can help : magentocommerce.com/design_guide/articles/…
– Lanks
Oct 17 '14 at 13:02
Please give me the exact path of your local.xml. Also did you well configurated your Magento Theme in System > Configuration > Design Tab > Package & Theme ? Maybe this link can help : magentocommerce.com/design_guide/articles/…
– Lanks
Oct 17 '14 at 13:02
|
show 19 more comments
In Local.xml add this :
<reference name="header">
<!-- add cart to header -->
<block type="checkout/cart_sidebar" name="header-cart" template="checkout/cart/header-cart.phtml">
<action method="addItemRender"><type>simple</type>
<block>checkout/cart_item_renderer</block><template>checkout/cart/sidebar/default.phtml</template></action>
<action method="addItemRender"><type>grouped</type>
<block>checkout/cart_item_renderer_grouped</block><template>checkout/cart/sidebar/default.phtml</template></action>
<action method="addItemRender"><type>configurable</type>
<block>checkout/cart_item_renderer_configurable</block><template>checkout/cart/sidebar/default.phtml</template></action>
<block type="core/text_list" name="cart_sidebar.extra_actions" as="extra_actions" translate="label" module="checkout">
<label>Shopping Cart Sidebar Extra Actions</label>
</block>
</block>
</reference>
In header.phtml add this :
<?php echo $this->getChildHtml('header-cart'); ?>
add a comment |
In Local.xml add this :
<reference name="header">
<!-- add cart to header -->
<block type="checkout/cart_sidebar" name="header-cart" template="checkout/cart/header-cart.phtml">
<action method="addItemRender"><type>simple</type>
<block>checkout/cart_item_renderer</block><template>checkout/cart/sidebar/default.phtml</template></action>
<action method="addItemRender"><type>grouped</type>
<block>checkout/cart_item_renderer_grouped</block><template>checkout/cart/sidebar/default.phtml</template></action>
<action method="addItemRender"><type>configurable</type>
<block>checkout/cart_item_renderer_configurable</block><template>checkout/cart/sidebar/default.phtml</template></action>
<block type="core/text_list" name="cart_sidebar.extra_actions" as="extra_actions" translate="label" module="checkout">
<label>Shopping Cart Sidebar Extra Actions</label>
</block>
</block>
</reference>
In header.phtml add this :
<?php echo $this->getChildHtml('header-cart'); ?>
add a comment |
In Local.xml add this :
<reference name="header">
<!-- add cart to header -->
<block type="checkout/cart_sidebar" name="header-cart" template="checkout/cart/header-cart.phtml">
<action method="addItemRender"><type>simple</type>
<block>checkout/cart_item_renderer</block><template>checkout/cart/sidebar/default.phtml</template></action>
<action method="addItemRender"><type>grouped</type>
<block>checkout/cart_item_renderer_grouped</block><template>checkout/cart/sidebar/default.phtml</template></action>
<action method="addItemRender"><type>configurable</type>
<block>checkout/cart_item_renderer_configurable</block><template>checkout/cart/sidebar/default.phtml</template></action>
<block type="core/text_list" name="cart_sidebar.extra_actions" as="extra_actions" translate="label" module="checkout">
<label>Shopping Cart Sidebar Extra Actions</label>
</block>
</block>
</reference>
In header.phtml add this :
<?php echo $this->getChildHtml('header-cart'); ?>
In Local.xml add this :
<reference name="header">
<!-- add cart to header -->
<block type="checkout/cart_sidebar" name="header-cart" template="checkout/cart/header-cart.phtml">
<action method="addItemRender"><type>simple</type>
<block>checkout/cart_item_renderer</block><template>checkout/cart/sidebar/default.phtml</template></action>
<action method="addItemRender"><type>grouped</type>
<block>checkout/cart_item_renderer_grouped</block><template>checkout/cart/sidebar/default.phtml</template></action>
<action method="addItemRender"><type>configurable</type>
<block>checkout/cart_item_renderer_configurable</block><template>checkout/cart/sidebar/default.phtml</template></action>
<block type="core/text_list" name="cart_sidebar.extra_actions" as="extra_actions" translate="label" module="checkout">
<label>Shopping Cart Sidebar Extra Actions</label>
</block>
</block>
</reference>
In header.phtml add this :
<?php echo $this->getChildHtml('header-cart'); ?>
answered Oct 17 '14 at 16:35
Ahmed ElawadiAhmed Elawadi
1,438720
1,438720
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f40430%2fmove-cart-to-header-in-magento-1-8-1%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown