Move Cart to Header In Magento 1.8.1 Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?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
Why isn't everyone flabbergasted about Bran's "gift"?
Lights are flickering on and off after accidentally bumping into light switch
Meaning of "Not holding on that level of emuna/bitachon"
How to mute a string and play another at the same time
How to charge percentage of transaction cost?
Why aren't these two solutions equivalent? Combinatorics problem
How is an IPA symbol that lacks a name (e.g. ɲ) called?
Unix AIX passing variable and arguments to expect and spawn
Weaponising the Grasp-at-a-Distance spell
Like totally amazing interchangeable sister outfit accessory swapping or whatever
Why doesn't the university give past final exams' answers?
Can I take recommendation from someone I met at a conference?
What were wait-states, and why was it only an issue for PCs?
Why do people think Winterfell crypts is the safest place for women, children & old people?
Short story about an alien named Ushtu(?) coming from a future Earth, when ours was destroyed by a nuclear explosion
Why these surprising proportionalities of integrals involving odd zeta values?
Are bags of holding fireproof?
How to get a single big right brace?
Has a Nobel Peace laureate ever been accused of war crimes?
Grounding PCB Within Aluminum Enclosure
Is there a way to convert Wolfram Language expression to string?
What documents does someone with a long-term visa need to travel to another Schengen country?
Are there any AGPL-style licences that require source code modifications to be public?
Can Deduction Guide have an explicit(bool) specifier?
Move Cart to Header In Magento 1.8.1
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?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 3 hours ago
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 3 hours ago
magefms
2,8152528
2,8152528
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